Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • videolan/vlc
  • chouquette/vlc
  • bakiewicz.marek122/vlc
  • devnexen/vlc
  • rohanrajpal/vlc
  • blurrrb/vlc
  • gsoc/gsoc2019/darkapex/vlc
  • b1ue/vlc
  • fkuehne/vlc
  • magsoft/vlc
  • chub/vlc
  • cramiro9/vlc
  • robUx4/vlc
  • rom1v/vlc
  • akshayaky/vlc
  • tmk907/vlc
  • akymaster/vlc
  • govind.sharma/vlc
  • psilokos/vlc
  • xjbeta/vlc
  • jahan/vlc
  • 1480c1/vlc
  • amanchande/vlc
  • aaqib/vlc
  • rist/vlc
  • apol/vlc
  • mindfreeze/vlc
  • alexandre-janniaux/vlc
  • sandsmark/vlc
  • jagannatharjun/vlc
  • gsoc/gsoc2020/matiaslgonzalez/vlc
  • gsoc/gsoc2020/jagannatharjun/vlc
  • mstorsjo/vlc
  • gsoc/gsoc2020/vedenta/vlc
  • gsoc/gsoc2020/arnav-ishaan/vlc
  • gsoc/gsoc2020/andreduong/vlc
  • fuzun/vlc
  • gsoc/gsoc2020/vatsin/vlc
  • gsoc/gsoc2020/sagid/vlc
  • yaron/vlc
  • Phoenix/vlc
  • Garf/vlc
  • ePiratWorkarounds/vlc
  • tguillem/vlc
  • jnqnfe/vlc
  • mdc/vlc
  • Vedaa/vlc
  • rasa/vlc
  • quink/vlc
  • yealo/vlc
  • aleksey_ak/vlc
  • ePirat/vlc
  • ilya.yanok/vlc
  • asenat/vlc
  • m/vlc
  • bunjee/vlc
  • BLumia/vlc
  • sagudev/vlc
  • hamedmonji30/vlc
  • nullgemm/vlc
  • DivyamAhuja/vlc
  • thesamesam/vlc
  • dag7/vlc
  • snehil101/vlc
  • haasn/vlc
  • jbk/vlc
  • ValZapod/vlc
  • mfkl/vlc
  • WangChuan/vlc
  • core1024/vlc
  • GhostVaibhav/vlc
  • dfuhrmann/vlc
  • davide.prade/vlc
  • tmatth/vlc
  • Courmisch/vlc
  • zouya/vlc
  • hpi/vlc
  • EwoutH/vlc
  • aleung27/vlc
  • hengwu0/vlc
  • saladin/vlc
  • ashuio/vlc
  • richselwood/vlc
  • verma16Ayush/vlc
  • chemicalflash/vlc
  • PoignardAzur/vlc
  • huangjieNT/vlc
  • Blake-Haydon/vlc
  • AnuthaDev/vlc
  • gsoc/gsoc2021/mpd/vlc
  • nicolas_lequec/vlc
  • sambassaly/vlc
  • thresh/vlc
  • bonniegong/vlc
  • myaashish/vlc
  • stavros.vagionitis/vlc
  • ileoo/vlc
  • louis-santucci/vlc
  • cchristiansen/vlc
  • sabyasachi07/vlc
  • AbduAmeen/vlc
  • ashishb0410/vlc
  • urbanhusky/vlc
  • davidepietrasanta/vlc
  • riksleutelstad/vlc
  • jeremyVignelles/vlc
  • komh/vlc
  • iamjithinjohn/vlc
  • JohannesKauffmann/vlc2
  • kunglao/vlc
  • natzberg/vlc
  • jill/vlc
  • cwendling/vlc
  • adufou/vlc
  • ErwanAirone/vlc
  • HasinduDilshan10/vlc
  • vagrantc/vlc
  • rafiv/macos-bigsur-icon
  • Aymeriic/vlc
  • saranshg20/vlc
  • metzlove24/vlc
  • linkfanel/vlc
  • Ds886/vlc
  • metehan-arslan/vlc
  • Skantes/vlc
  • kgsandundananjaya96/vlc
  • mitchcapper/vlc
  • advaitgupta/vlc
  • StefanBruens/vlc
  • ratajs/vlc
  • T.M.F.B.3761/vlc
  • m222059/vlc
  • casemerrick/vlc
  • joshuaword2alt/vlc
  • sjwaddy/vlc
  • dima/vlc
  • Ybalrid/vlc
  • umxprime/vlc
  • eschmidt/vlc
  • vannieuwenhuysenmichelle/vlc
  • badcf00d/vlc
  • wesinator/vlc
  • louis/vlc
  • xqq/vlc
  • EmperorYP7/vlc
  • NicoLiam/vlc
  • loveleen/vlc
  • rofferom/vlc
  • rbultje/vlc
  • TheUnamed/vlc
  • pratiksharma341/vlc
  • Saurab17/vlc
  • purist.coder/vlc
  • Shuicheng/vlc
  • mdrrubel292/vlc
  • silverbleu00/vlc
  • metif12/vlc
  • asher-m/vlc
  • jeffk/vlc
  • Brandonbr1/vlc
  • beautyyuyanli/vlc
  • rego21/vlc
  • muyangren907/vlc
  • collectionbylawrencejason/vlc
  • evelez/vlc
  • GSMgeeth/vlc
  • Oneric/vlc
  • TJ5/vlc
  • XuanTung95/vlc
  • darrenjenny21/vlc
  • Trenly/vlc
  • RockyTDR/vlc
  • mjakubowski/vlc
  • caprica/vlc
  • ForteFrankie/vlc
  • seannamiller19/vlc
  • junlon2006/vlc
  • kiwiren6666/vlc
  • iuseiphonexs/vlc
  • fenngtun/vlc
  • Rajdutt999/vlc
  • typx/vlc
  • leon.vitanos/vlc
  • robertogarci0938/vlc
  • gsoc/gsoc2022/luc65r/vlc-mpd
  • skeller/vlc
  • MCJack123/vlc
  • luc65r/vlc-mpd
  • popov895/vlc
  • claucambra/vlc
  • brad/vlc
  • matthewmurua88/vlc
  • Tomas8874/vlc
  • philenotfound/vlc
  • makita-do3/vlc
  • LZXCorp/vlc
  • mar0x/vlc
  • senojetkennedy0102/vlc
  • shaneb243/vlc
  • ahmadbader/vlc
  • rajduttcse26/vlc-audio-filters
  • Juniorzito8415/vlc
  • achernyakov/vlc
  • lucasjetgroup/vlc
  • pupdoggy666/vlc
  • gmde9363/vlc
  • alexnwayne/vlc
  • bahareebrahimi781/vlc
  • hamad633666/vlc
  • umghof3112/vlc
  • joe0199771874/vlc
  • Octocats66666666/vlc
  • jjm_223/vlc
  • btech10110.19/vlc
  • sunnykfc028/vlc-audio-filters
  • loic/vlc
  • nguyenminhducmx1/vlc
  • JanekKrueger/vlc
  • bstubbington2/vlc
  • rcombs/vlc
  • Ordissimo/vlc
  • king7532/vlc
  • noobsauce101/vlc
  • schong0525/vlc
  • myQwil/vlc
  • apisbg91/vlc
  • geeboy0101017/vlc
  • kim.faughey/vlc
  • nurupo/vlc
  • yyusea/vlc
  • 0711235879.khco/vlc
  • ialo/vlc
  • iloveyeye2/vlc
  • gdtdftdqtd/vlc
  • leandroconsiglio/vlc
  • AndyHTML2012/vlc
  • ncz/vlc
  • lucenticus/vlc
  • knr1931/vlc
  • kjoonlee/vlc
  • chandrakant100/vlc-qt
  • johge42/vlc
  • polter/vlc
  • hexchain/vlc
  • Tushwrld/vlc
  • mztea928/vlc
  • jbelloncastro/vlc
  • alvinhochun/vlc
  • ghostpiratecrow/vlc
  • ujjwaltwitx/vlc
  • alexsonarin06/vlc
  • adrianbon76/vlc
  • altsod/vlc
  • damien.lucas44/vlc
  • dmytrivtaisa/vlc
  • utk202/vlc
  • aaxhrj/vlc
  • thomas.hermes/vlc
  • structurenewworldorder/vlc
  • slomo/vlc
  • wantlamy/vlc
  • musc.o3cminc/vlc
  • thebarshablog/vlc
  • kerrick/vlc
  • kratos142518/vlc
  • leogps/vlc
  • vacantron/vlc
  • luna_koly/vlc
  • Ratio2/vlc
  • anuoshemohammad/vlc
  • apsun/vlc
  • aaa1115910/vlc
  • alimotmoyo/vlc
  • Ambossmann/vlc
  • Sam-LearnsToCode/vlc
  • Chilledheart/vlc
  • Labnann/vlc
  • ktcoooot1/vlc
  • mohit-marathe/vlc
  • johnddx/vlc
  • manstabuk/vlc
  • Omar-ahmed314/vlc
  • vineethkm/vlc
  • 9Enemi86/vlc
  • radoslav.m.panteleev/vlc
  • ashishami2002/vlc
  • Corbax/vlc
  • firnasahmed/vlc
  • pelayarmalam4/vlc
  • c0ff330k/vlc
  • shikhindahikar/vlc
  • l342723951/vlc
  • christianschwandner/vlc
  • douniwan5788/vlc
  • 7damian7/vlc
  • ferdnyc/vlc
  • f.ales1/vlc
  • pandagby/vlc
  • BaaBaa/vlc
  • jewe37/vlc
  • w00drow/vlc
  • russelltg/vlc
  • ironicallygod/vlc
  • soumyaDghosh/vlc
  • linzihao1999/vlc
  • deyayush6/vlc
  • mibi88/vlc
  • newabdallah10/vlc
  • jhorbincolombia/vlc
  • rimvihaqueshupto/vlc
  • andrewkhon98/vlc
  • fab78/vlc
  • lapaz17/vlc
  • amanna13/vlc
  • mdakram28/vlc
  • 07jw1980/vlc
  • sohamgupta/vlc
  • Eson-Jia1/vlc
  • Sumou/vlc
  • vikram-kangotra/vlc
  • chalice191/vlc
  • olivercalder/vlc
  • aaasg4001/vlc
  • zipdox/vlc
  • kwizart/vlc
  • Dragon-S/vlc
  • jdemeule/vlc
  • gabriel_lt/vlc
  • locutusofborg/vlc
  • sammirata/vlc-librist
  • another/vlc
  • Benjamin_Loison/vlc
  • ahmedmoselhi/vlc
  • petergaal/vlc
  • huynhsontung/vlc
  • dariusmihut/vlc
  • tvermaashutosh/vlc
  • buti/vlc
  • Niram7777/vlc
  • rohan-here/vlc
  • balaji-sivasakthi/vlc
  • rlindner81/vlc
  • Kakadus/vlc
  • djain/vlc
  • ABBurmeister/vlc
  • craighuggins/vlc
  • orbea/vlc
  • maxos/vlc
  • aakarshmj/vlc
  • kblaschke/vlc
  • ankitm/vlc
  • advait-0/vlc
  • mohak2003/vlc
  • yselkowitz/vlc
  • AZM999/vlc-azm
  • andrey.turkin/vlc
  • Disha-Baghel/vlc
  • nowrep/vlc
  • Apeng/vlc
  • Choucroute_melba/vlc
  • autra/vlc
  • eclipseo/vlc
  • fhuber/vlc
  • olafhering/vlc
  • sdasda7777/vlc
  • 1div0/vlc
  • skosnits/vlc-extended-playlist-support
  • dnicolson/vlc
  • Timshel/vlc
  • octopols/vlc
  • MangalK/vlc
  • nima64/vlc
  • misawai/vlc
  • Alexander-Wilms/vlc
  • Maxime2/vlc-fork-for-visualizer
  • ww/vlc
  • jeske/vlc
  • sgross-emlix/vlc
  • morenonatural/vlc
  • freakingLovesVLC/vlc
  • borisgolovnev/vlc
  • mpromonet/vlc
  • diogo.simao-marques/vlc
  • masstock/vlc
  • pratikpatel8982/vlc
  • hugok79/vlc
  • longervision/vlc
  • abhiudaysurya/vlc
  • rishabhgarg/vlc
  • tumic/vlc
  • cart/vlc
  • shubham442/vlc
  • Aditya692005/vlc
  • sammirata/vlc4
  • syrykh/vlc
  • Vvorcun/macos-new-icon
  • AyaanshC/vlc
  • nasso/vlc
  • Quark/vlc
  • sebastinas/vlc
  • rhstone/vlc
  • talregev/vlc
  • Managor/vlc
403 results
Show changes
Commits on Source (5)
Showing
with 89 additions and 94 deletions
......@@ -297,7 +297,6 @@ libqt_plugin_la_SOURCES = \
util/imageluminanceextractor.cpp util/imageluminanceextractor.hpp \
util/csdbuttonmodel.cpp util/csdbuttonmodel.hpp \
util/imagehelper.cpp util/imagehelper.hpp \
util/i18n.cpp util/i18n.hpp \
util/keyhelper.cpp util/keyhelper.hpp \
util/listcache.hxx util/listcache.hpp \
util/listcacheloader.hpp \
......@@ -461,7 +460,6 @@ nodist_libqt_plugin_la_SOURCES = \
util/color_svg_image_provider.moc.cpp \
util/imageluminanceextractor.moc.cpp \
util/csdbuttonmodel.moc.cpp \
util/i18n.moc.cpp \
util/keyhelper.moc.cpp \
util/listcache.moc.cpp \
util/locallistcacheloader.moc.cpp \
......
......@@ -36,8 +36,8 @@ ModalDialog {
function ask(text, acceptCb, rejectCb, buttons) {
//TODO: use a Promise here when dropping support of Qt 5.11
let okTxt = I18n.qtr("OK")
let cancelTxt = I18n.qtr("cancel")
let okTxt = qsTr("OK")
let cancelTxt = qsTr("cancel")
if (buttons) {
if (buttons.cancel) {
cancelTxt = buttons.cancel
......
......@@ -183,7 +183,7 @@ Item {
property real layoutWidth: layout.width
Accessible.role: Accessible.AlertMessage
Accessible.name: I18n.qtr("error popup")
Accessible.name: qsTr("error popup")
RowLayout {
id: layout
......@@ -217,7 +217,7 @@ Item {
Widgets.TextToolButton {
id: detailsBtn
text: I18n.qtr("Show Details")
text: qsTr("Show Details")
colorContext.colorSet: ColorContext.ButtonAccent
......@@ -233,7 +233,7 @@ Item {
id: closeBtn
font.pixelSize: VLCStyle.icon_normal
text: VLCIcons.clear
description: I18n.qtr("Dismiss")
description: qsTr("Dismiss")
Layout.rightMargin: VLCStyle.margin_xxsmall
color: closeBtn.colorContext.fg.negative
......@@ -281,7 +281,7 @@ Item {
}
Text {
text: I18n.qtr("User")
text: qsTr("User")
color: loginContentTheme.fg.primary
font.pixelSize: VLCStyle.fontSize_normal
}
......@@ -300,7 +300,7 @@ Item {
}
Text {
text: I18n.qtr("Password")
text: qsTr("Password")
color: loginContentTheme.fg.primary
font.pixelSize: VLCStyle.fontSize_normal
}
......@@ -319,7 +319,7 @@ Item {
}
Text {
text: I18n.qtr("Save password")
text: qsTr("Save password")
color: loginContentTheme.fg.primary
font.pixelSize: VLCStyle.fontSize_normal
}
......@@ -355,7 +355,7 @@ Item {
Widgets.TextToolButton {
id: loginCancel
Layout.fillWidth: true
text: I18n.qtr("cancel")
text: qsTr("cancel")
Navigation.upItem: savePassword
Navigation.rightItem: loginOk
......@@ -371,7 +371,7 @@ Item {
Widgets.TextToolButton {
id: loginOk
Layout.fillWidth: true
text: I18n.qtr("Ok")
text: qsTr("Ok")
focus: true
Navigation.upItem: savePassword
......
......@@ -90,19 +90,19 @@ Item {
TextMetrics {
id: leftMetric
text: I18n.qtr("L E F T")
text: qsTr("L E F T")
font.pixelSize: VLCStyle.fontSize_xxlarge
}
TextMetrics {
id: centerMetric
text: I18n.qtr("C E N T E R")
text: qsTr("C E N T E R")
font.pixelSize: VLCStyle.fontSize_xxlarge
}
TextMetrics {
id: rightMetric
text: I18n.qtr("R I G H T")
text: qsTr("R I G H T")
font.pixelSize: VLCStyle.fontSize_xxlarge
}
......@@ -266,7 +266,7 @@ Item {
Widgets.MenuCaption {
Layout.margins: VLCStyle.margin_xxsmall
text: I18n.qtr("Drag items below to add them above: ")
text: qsTr("Drag items below to add them above: ")
color: buttonList.colorContext.fg.primary
}
......
......@@ -35,7 +35,7 @@ WindowDialog {
minimumHeight: 400
modal: true
title: I18n.qtr("Toolbar Editor")
title: qsTr("Toolbar Editor")
signal unload()
......@@ -81,7 +81,7 @@ WindowDialog {
Layout.minimumWidth: implicitWidth
color: root.colorContext.fg.primary
text: I18n.qtr("Select profile:")
text: qsTr("Select profile:")
}
Widgets.ComboBoxExt {
......@@ -136,18 +136,18 @@ WindowDialog {
MainCtx.controlbarProfileModel.selectedProfile = currentIndex
}
Accessible.name: I18n.qtr("Profiles")
Accessible.name: qsTr("Profiles")
}
Widgets.IconToolButton {
description: I18n.qtr("New Profile")
description: qsTr("New Profile")
text: VLCIcons.profile_new
onClicked: {
const npDialog = DialogsProvider.getTextDialog(null,
I18n.qtr("Profile Name"),
I18n.qtr("Please enter the new profile name:"),
I18n.qtr("Profile %1").arg(comboBox.count + 1))
qsTr("Profile Name"),
qsTr("Please enter the new profile name:"),
qsTr("Profile %1").arg(comboBox.count + 1))
if (!npDialog.ok)
return
......@@ -159,7 +159,7 @@ WindowDialog {
Widgets.IconToolButton {
id: useDefaultButton
description: I18n.qtr("Use Default")
description: qsTr("Use Default")
text: VLCIcons.history
onClicked: {
......@@ -168,7 +168,7 @@ WindowDialog {
}
Widgets.IconToolButton {
description: I18n.qtr("Delete the current profile")
description: qsTr("Delete the current profile")
text: VLCIcons.del
onClicked: {
......
......@@ -35,7 +35,6 @@
#include "util/item_key_event_filter.hpp"
#include "util/imageluminanceextractor.hpp"
#include "util/i18n.hpp"
#include "util/keyhelper.hpp"
#include "style/systempalette.hpp"
#include "util/navigation_history.hpp"
......@@ -142,7 +141,6 @@ MainUI::MainUI(qt_intf_t *p_intf, MainCtx *mainCtx, QWindow* interfaceWindow, Q
SingletonRegisterHelper<DialogErrorModel>::setInstance( DialogErrorModel::getInstance<false>() );
SingletonRegisterHelper<NavigationHistory>::setInstance( new NavigationHistory(this) );
SingletonRegisterHelper<I18n>::setInstance( new I18n(this) );
SingletonRegisterHelper<SystemPalette>::setInstance( new SystemPalette(this) );
SingletonRegisterHelper<QmlKeyHelper>::setInstance( new QmlKeyHelper(this) );
SingletonRegisterHelper<SVGColorImage>::setInstance( new SVGColorImage(this) );
......@@ -236,7 +234,6 @@ void MainUI::registerQMLTypes()
qmlRegisterSingletonType<NavigationHistory>(uri, versionMajor, versionMinor, "History", SingletonRegisterHelper<NavigationHistory>::callback);
qmlRegisterSingletonType<PlayerController>(uri, versionMajor, versionMinor, "Player", SingletonRegisterHelper<PlayerController>::callback);
qmlRegisterSingletonType<I18n>(uri, versionMajor, versionMinor, "I18n", SingletonRegisterHelper<I18n>::callback);
qmlRegisterSingletonType<DialogsProvider>(uri, versionMajor, versionMinor, "DialogsProvider", SingletonRegisterHelper<DialogsProvider>::callback);
qmlRegisterSingletonType<DialogErrorModel>(uri, versionMajor, versionMinor, "DialogErrorModel", SingletonRegisterHelper<DialogErrorModel>::callback);
qmlRegisterSingletonType<QmlKeyHelper>(uri, versionMajor, versionMinor, "KeyHelper", SingletonRegisterHelper<QmlKeyHelper>::callback);
......
......@@ -141,7 +141,7 @@ T.ToolBar {
id: history_back
font.pixelSize: VLCStyle.icon_banner
text: VLCIcons.back
description: I18n.qtr("Previous")
description: qsTr("Previous")
height: VLCStyle.bannerButton_height
width: VLCStyle.bannerButton_width
onClicked: History.previous()
......@@ -263,7 +263,7 @@ T.ToolBar {
height: VLCStyle.bannerButton_height
font.pixelSize: VLCStyle.icon_banner
text: MainCtx.gridView ? VLCIcons.list : VLCIcons.grid
description: I18n.qtr("List/Grid")
description: qsTr("List/Grid")
onClicked: MainCtx.gridView = !MainCtx.gridView
enabled: true
}
......@@ -407,7 +407,7 @@ T.ToolBar {
font.pixelSize: VLCStyle.icon_banner
text: VLCIcons.playlist
description: I18n.qtr("Playlist")
description: qsTr("Playlist")
width: VLCStyle.bannerButton_width
height: VLCStyle.bannerButton_height
highlighted: MainCtx.playlistVisible
......@@ -461,7 +461,7 @@ T.ToolBar {
visible: !MainCtx.hasToolbarMenu
font.pixelSize: VLCStyle.icon_banner
text: VLCIcons.more
description: I18n.qtr("Menu")
description: qsTr("Menu")
width: VLCStyle.bannerButton_width
height: VLCStyle.bannerButton_height
checked: contextMenu.shown
......
......@@ -107,31 +107,31 @@ FocusScope {
readonly property var pageModel: [
{
listed: MainCtx.mediaLibraryAvailable,
displayText: I18n.qtr("Video"),
displayText: qsTr("Video"),
icon: VLCIcons.topbar_video,
name: "video",
url: "qrc:///medialibrary/VideoDisplay.qml"
}, {
listed: MainCtx.mediaLibraryAvailable,
displayText: I18n.qtr("Music"),
displayText: qsTr("Music"),
icon: VLCIcons.topbar_music,
name: "music",
url: "qrc:///medialibrary/MusicDisplay.qml"
}, {
listed: !MainCtx.mediaLibraryAvailable,
displayText: I18n.qtr("Home"),
displayText: qsTr("Home"),
icon: VLCIcons.home,
name: "home",
url: "qrc:///main/NoMedialibHome.qml"
}, {
listed: true,
displayText: I18n.qtr("Browse"),
displayText: qsTr("Browse"),
icon: VLCIcons.topbar_network,
name: "network",
url: "qrc:///network/BrowseDisplay.qml"
}, {
listed: true,
displayText: I18n.qtr("Discover"),
displayText: qsTr("Discover"),
icon: VLCIcons.topbar_discover,
name: "discover",
url: "qrc:///network/DiscoverDisplay.qml"
......
......@@ -26,7 +26,7 @@ FocusScope {
id: root
Accessible.role: Accessible.Client
Accessible.name: I18n.qtr("Home view")
Accessible.name: qsTr("Home view")
//behave like a Page
property var pagePrefix: []
......@@ -50,13 +50,13 @@ FocusScope {
Widgets.MenuLabel {
anchors .horizontalCenter: parent.horizontalCenter
text: I18n.qtr("Drop some content here")
text: qsTr("Drop some content here")
color: theme.fg.secondary
}
Widgets.ActionButtonPrimary {
id: openFileButton
text: I18n.qtr("Open File")
text: qsTr("Open File")
focus: true
anchors.horizontalCenter: parent.horizontalCenter
onClicked: DialogsProvider.simpleOpenDialog()
......
......@@ -39,7 +39,7 @@ FocusScope {
implicitHeight: VLCStyle.artistBanner_height
Accessible.role: Accessible.Pane
Accessible.name: I18n.qtr("Artist banner")
Accessible.name: qsTr("Artist banner")
function setCurrentItemFocus(reason) {
playActionBtn.forceActiveFocus(reason);
......@@ -137,7 +137,7 @@ FocusScope {
Widgets.SubtitleLabel {
Layout.fillWidth: true
text: artist.name || I18n.qtr("No artist")
text: artist.name || qsTr("No artist")
color: theme.fg.primary
Layout.maximumWidth: parent.width
......@@ -148,7 +148,7 @@ FocusScope {
Layout.topMargin: VLCStyle.margin_xxxsmall
text: I18n.qtr("%1 Songs").arg(artist.nb_tracks)
text: qsTr("%1 Songs").arg(artist.nb_tracks)
color: theme.fg.secondary
}
......@@ -166,7 +166,7 @@ FocusScope {
Widgets.ActionButtonPrimary {
id: playActionBtn
iconTxt: VLCIcons.play
text: I18n.qtr("Play all")
text: qsTr("Play all")
focus: true
//we probably want to keep this button like the other action buttons
......@@ -178,7 +178,7 @@ FocusScope {
Widgets.ActionButtonOverlay {
id: enqueueActionBtn
iconTxt: VLCIcons.enqueue
text: I18n.qtr("Enqueue all")
text: qsTr("Enqueue all")
onClicked: MediaLib.addToPlaylist( artist.id )
}
}
......
......@@ -31,8 +31,8 @@ Widgets.GridItem {
image: model.cover || ""
fallbackImage: VLCStyle.noArtAlbumCover
title: model.title || I18n.qtr("Unknown title")
subtitle: model.main_artist || I18n.qtr("Unknown artist")
title: model.title || qsTr("Unknown title")
subtitle: model.main_artist || qsTr("Unknown artist")
pictureWidth: VLCStyle.gridCover_music_width
pictureHeight: VLCStyle.gridCover_music_height
playCoverBorderWidth: VLCStyle.gridCover_music_border
......
......@@ -50,10 +50,10 @@ MainInterface.MainViewLoader {
model: albumModelId
sortModel: [
{ text: I18n.qtr("Alphabetic"), criteria: "title"},
{ text: I18n.qtr("Duration"), criteria: "duration" },
{ text: I18n.qtr("Date"), criteria: "release_year" },
{ text: I18n.qtr("Artist"), criteria: "main_artist" },
{ text: qsTr("Alphabetic"), criteria: "title"},
{ text: qsTr("Duration"), criteria: "duration" },
{ text: qsTr("Date"), criteria: "release_year" },
{ text: qsTr("Artist"), criteria: "main_artist" },
]
grid: gridComponent
......@@ -186,7 +186,7 @@ MainInterface.MainViewLoader {
subCriterias: [ "main_artist", "duration" ],
text: I18n.qtr("Title"),
text: qsTr("Title"),
headerDelegate: tableColumns.titleHeaderDelegate,
colDelegate: tableColumns.titleDelegate,
......@@ -201,7 +201,7 @@ MainInterface.MainViewLoader {
model: {
criteria: "title",
text: I18n.qtr("Title"),
text: qsTr("Title"),
headerDelegate: tableColumns.titleHeaderDelegate,
colDelegate: tableColumns.titleDelegate,
......@@ -214,7 +214,7 @@ MainInterface.MainViewLoader {
model: {
criteria: "main_artist",
text: I18n.qtr("Artist")
text: qsTr("Artist")
}
}, {
size: 1,
......@@ -222,7 +222,7 @@ MainInterface.MainViewLoader {
model: {
criteria: "duration",
text: I18n.qtr("Duration"),
text: qsTr("Duration"),
showSection: "",
......@@ -277,7 +277,7 @@ MainInterface.MainViewLoader {
id: emptyLabelComponent
Widgets.EmptyLabelButton {
text: I18n.qtr("No albums found\nPlease try adding sources, by going to the Browse tab")
text: qsTr("No albums found\nPlease try adding sources, by going to the Browse tab")
Navigation.parentItem: root
cover: VLCStyle.noArtAlbumCover
}
......
......@@ -29,7 +29,7 @@ MusicAlbums {
header: Widgets.ViewHeader {
view: root
text: I18n.qtr("Albums")
text: qsTr("Albums")
}
searchPattern: MainCtx.search.pattern
......
......@@ -66,9 +66,9 @@ FocusScope {
const count = Helpers.get(model, "nb_tracks", 0);
if (count < 2)
return I18n.qtr("%1 track").arg(count);
return qsTr("%1 track").arg(count);
else
return I18n.qtr("%1 tracks").arg(count);
return qsTr("%1 tracks").arg(count);
}
readonly property ColorContext colorContext: ColorContext {
......@@ -158,7 +158,7 @@ FocusScope {
id: _playActionBtn
iconTxt: VLCIcons.play
text: I18n.qtr("Play")
text: qsTr("Play")
onClicked: MediaLib.addAndPlay( root.model.id )
onActiveFocusChanged: {
......@@ -176,7 +176,7 @@ FocusScope {
id: _enqueueActionBtn
iconTxt: VLCIcons.enqueue
text: I18n.qtr("Enqueue")
text: qsTr("Enqueue")
onClicked: MediaLib.addToPlaylist( root.model.id )
}
}
......@@ -240,7 +240,7 @@ FocusScope {
Widgets.SubtitleLabel {
id: expand_infos_title_id
text: Helpers.get(root.model, "title", I18n.qtr("Unknown title"))
text: Helpers.get(root.model, "title", qsTr("Unknown title"))
color: theme.fg.primary
......@@ -264,8 +264,8 @@ FocusScope {
color: theme.fg.secondary
width: parent.width
text: I18n.qtr("%1 - %2 - %3 - %4")
.arg(Helpers.get(root.model, "main_artist", I18n.qtr("Unknown artist")))
text: qsTr("%1 - %2 - %3 - %4")
.arg(Helpers.get(root.model, "main_artist", qsTr("Unknown artist")))
.arg(Helpers.get(root.model, "release_year", ""))
.arg(_getStringTrack())
.arg((root.model && root.model.duration) ? root.model.duration.formatHMS() : 0)
......@@ -398,7 +398,7 @@ FocusScope {
}
Widgets.CaptionLabel {
text: I18n.qtr("Title")
text: qsTr("Title")
color: theme.fg.secondary
}
}
......@@ -434,7 +434,7 @@ FocusScope {
visible: true,
text: I18n.qtr("Title"),
text: qsTr("Title"),
showSection: "",
......@@ -449,7 +449,7 @@ FocusScope {
visible: true,
text: I18n.qtr("Duration"),
text: qsTr("Duration"),
showSection: "",
......
......@@ -54,8 +54,8 @@ MainInterface.MainViewLoader {
}
sortModel: [
{ text: I18n.qtr("Alphabetic"), criteria: "name" },
{ text: I18n.qtr("Tracks Count"), criteria: "nb_tracks" }
{ text: qsTr("Alphabetic"), criteria: "name" },
{ text: qsTr("Tracks Count"), criteria: "nb_tracks" }
]
grid: gridComponent
......@@ -108,8 +108,8 @@ MainInterface.MainViewLoader {
image: model.cover || ""
fallbackImage: VLCStyle.noArtArtistSmall
title: model.name || I18n.qtr("Unknown artist")
subtitle: model.nb_tracks > 1 ? I18n.qtr("%1 songs").arg(model.nb_tracks) : I18n.qtr("%1 song").arg(model.nb_tracks)
title: model.name || qsTr("Unknown artist")
subtitle: model.nb_tracks > 1 ? qsTr("%1 songs").arg(model.nb_tracks) : qsTr("%1 song").arg(model.nb_tracks)
pictureRadius: VLCStyle.artistGridCover_radius
pictureHeight: VLCStyle.artistGridCover_radius
pictureWidth: VLCStyle.artistGridCover_radius
......@@ -152,7 +152,7 @@ MainInterface.MainViewLoader {
subCriterias: [ "nb_tracks" ],
text: I18n.qtr("Name"),
text: qsTr("Name"),
headerDelegate: tableColumns.titleHeaderDelegate,
colDelegate: tableColumns.titleDelegate,
......@@ -167,7 +167,7 @@ MainInterface.MainViewLoader {
model: {
criteria: "name",
text: I18n.qtr("Name"),
text: qsTr("Name"),
headerDelegate: tableColumns.titleHeaderDelegate,
colDelegate: tableColumns.titleDelegate,
......@@ -180,7 +180,7 @@ MainInterface.MainViewLoader {
model: {
criteria: "nb_tracks",
text: I18n.qtr("Tracks")
text: qsTr("Tracks")
}
}]
......@@ -223,7 +223,7 @@ MainInterface.MainViewLoader {
id: emptyLabelComponent
Widgets.EmptyLabelButton {
text: I18n.qtr("No artists found\nPlease try adding sources, by going to the Browse tab")
text: qsTr("No artists found\nPlease try adding sources, by going to the Browse tab")
Navigation.parentItem: root
cover: VLCStyle.noArtArtistCover
}
......
......@@ -121,7 +121,7 @@ FocusScope {
bottomPadding: VLCStyle.layoutTitle_bottom_padding -
(MainCtx.gridView ? 0 : VLCStyle.gridItemSelectedBorder)
text: I18n.qtr("Albums")
text: qsTr("Albums")
}
Loader {
......@@ -176,7 +176,7 @@ FocusScope {
image: model.cover || ""
fallbackImage: VLCStyle.noArtAlbumCover
title: model.title || I18n.qtr("Unknown title")
title: model.title || qsTr("Unknown title")
subtitle: model.release_year || ""
textAlignHCenter: true
x: selectedBorderWidth
......@@ -217,7 +217,7 @@ FocusScope {
leftPadding: VLCStyle.margin_xlarge
topPadding: 0
text: I18n.qtr("Tracks")
text: qsTr("Tracks")
}
}
}
......@@ -443,7 +443,7 @@ FocusScope {
subCriterias: [ "duration", "album_title" ],
text: I18n.qtr("Title"),
text: qsTr("Title"),
headerDelegate: tableColumns.titleHeaderDelegate,
colDelegate: tableColumns.titleDelegate
......@@ -456,7 +456,7 @@ FocusScope {
model: {
criteria: "title",
text: I18n.qtr("Title"),
text: qsTr("Title"),
headerDelegate: tableColumns.titleHeaderDelegate,
colDelegate: tableColumns.titleDelegate
......@@ -467,7 +467,7 @@ FocusScope {
model: {
criteria: "album_title",
text: I18n.qtr("Album")
text: qsTr("Album")
}
}, {
size: 1,
......@@ -475,7 +475,7 @@ FocusScope {
model: {
criteria: "duration",
text: I18n.qtr("Duration"),
text: qsTr("Duration"),
showSection: "",
......
......@@ -185,7 +185,7 @@ T.ItemDelegate {
}
text: (model.name) ? model.name
: I18n.qtr("Unknown artist")
: qsTr("Unknown artist")
color: theme.fg.primary
}
......
......@@ -39,8 +39,8 @@ FocusScope {
property int rightPadding: 0
property var sortModel: [
{ text: I18n.qtr("Alphabetic"), criteria: "title" },
{ text: I18n.qtr("Release Year"), criteria: "release_year" }
{ text: qsTr("Alphabetic"), criteria: "title" },
{ text: qsTr("Release Year"), criteria: "release_year" }
]
property int initialIndex: 0
......@@ -189,7 +189,7 @@ FocusScope {
topPadding: VLCStyle.margin_xlarge
bottomPadding: VLCStyle.margin_small
text: I18n.qtr("Artists")
text: qsTr("Artists")
}
Widgets.MLDragItem {
......@@ -255,7 +255,7 @@ FocusScope {
anchors.fill: parent
visible: !artistModel.loading && (artistModel.count <= 0)
focus: visible
text: I18n.qtr("No artists found\nPlease try adding sources, by going to the Browse tab")
text: qsTr("No artists found\nPlease try adding sources, by going to the Browse tab")
Navigation.parentItem: root
}
}
......@@ -51,7 +51,7 @@ Widgets.PageLoader {
header: Widgets.ViewHeader {
view: artistsView
text: I18n.qtr("Artists")
text: qsTr("Artists")
}
searchPattern: MainCtx.search.pattern
......
......@@ -30,27 +30,27 @@ Widgets.PageLoader {
id: root
Accessible.role: Accessible.Client
Accessible.name: I18n.qtr("Music view")
Accessible.name: qsTr("Music view")
pageModel: [{
displayText: I18n.qtr("Artists"),
displayText: qsTr("Artists"),
name: "artists",
default: true,
url: "qrc:///medialibrary/MusicArtistsDisplay.qml"
}, {
displayText: I18n.qtr("Albums"),
displayText: qsTr("Albums"),
name: "albums",
url: "qrc:///medialibrary/MusicAlbumsDisplay.qml"
}, {
displayText: I18n.qtr("Tracks"),
displayText: qsTr("Tracks"),
name: "tracks" ,
url: "qrc:///medialibrary/MusicTracksDisplay.qml"
}, {
displayText: I18n.qtr("Genres"),
displayText: qsTr("Genres"),
name: "genres" ,
url: "qrc:///medialibrary/MusicGenresDisplay.qml"
}, {
displayText: I18n.qtr("Playlists"),
displayText: qsTr("Playlists"),
name: "playlists" ,
url: "qrc:///medialibrary/MusicPlaylistsDisplay.qml"
}
......