diff --git a/.gitignore b/.gitignore index d3fec56..ed6769f 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ qcma.pro.user* +*.qm +.directory \ No newline at end of file diff --git a/configwidget.ui b/configwidget.ui index 14f524d..8cc29a7 100644 --- a/configwidget.ui +++ b/configwidget.ui @@ -42,6 +42,9 @@ + + This is the location your Screenshots and Pictures are Saved to/Imported from. + Photo Folder @@ -51,6 +54,9 @@ + + This is the location your Screenshots and Pictures are Saved to/Imported from. + true @@ -71,6 +77,9 @@ + + This is the location your Videos are Saved to/Imported from. + Video Folder @@ -80,6 +89,9 @@ + + This is the location your Videos are Saved to/Imported from. + true @@ -100,6 +112,9 @@ + + This is the location your Music is Saved to/Imported from. + Music Folder @@ -109,6 +124,9 @@ + + This is the location your Music is Saved to/Imported from. + true @@ -129,6 +147,9 @@ + + This is the location your Games, Apps, Savegames, and System Backups are Saved to/Imported from. + Applications / Backups @@ -138,6 +159,9 @@ + + This is the location your Games, Apps, Savegames, and System Backups are Saved to/Imported from. + true @@ -158,6 +182,9 @@ + + This is the location your Software Updates and Browser Data is Saved to/Imported from. + Updates / Web content @@ -167,6 +194,9 @@ + + This is the location your Software Updates and Browser Data is Saved to/Imported from. + true diff --git a/main.cpp b/main.cpp index 7a26f62..23a857a 100644 --- a/main.cpp +++ b/main.cpp @@ -74,6 +74,13 @@ int main(int argc, char *argv[]) QTranslator translator; QString locale = QLocale().system().name(); qDebug("Current locale: %s", locale.toUtf8().data()); + if(app.arguments().contains("--set-locale")) { + int index = app.arguments().indexOf("--set-locale"); + if(index+1 < app.arguments().length()) { + qDebug("Enforcing locale: %s", app.arguments().at(index+1).toUtf8().data()); + locale = app.arguments().at(index+1); + } + } if(translator.load("qcma." + locale, ":/main/resources/translations")) { app.installTranslator(&translator); } diff --git a/resources/translations/qcma.es.ts b/resources/translations/qcma.es.ts index a8f0a86..5bf5a76 100644 --- a/resources/translations/qcma.es.ts +++ b/resources/translations/qcma.es.ts @@ -146,80 +146,110 @@ + + This is the location your Screenshots and Pictures are Saved to/Imported from. + + + + Photo Folder Directorio de Fotos - - - - - + + + + + Browse... Buscar... - + + + This is the location your Videos are Saved to/Imported from. + + + + Video Folder Directorio de Videos - + + + This is the location your Music is Saved to/Imported from. + + + + Music Folder Directorio de Música - + + + This is the location your Games, Apps, Savegames, and System Backups are Saved to/Imported from. + + + + Applications / Backups Aplicaciones / Juegos / Respaldos - + + + This is the location your Software Updates and Browser Data is Saved to/Imported from. + + + + Updates / Web content Actualizaciones / Contenido Web - + Other Otros - + <html><head/><body><p align="center"><span style=" font-size:14pt; font-weight:600;">Advanced settings</span></p></body></html> - + Offline Mode - + Skip metadata extraction - + Update database automatically when files on the PC are changed - + Disable USB monitoring - + Disable Wi-Fi monitoring - + Database backend - + In Memory diff --git a/resources/translations/qcma.ja.ts b/resources/translations/qcma.ja.ts index 0d70d37..c17daf9 100644 --- a/resources/translations/qcma.ja.ts +++ b/resources/translations/qcma.ja.ts @@ -146,80 +146,110 @@ + + This is the location your Screenshots and Pictures are Saved to/Imported from. + + + + Photo Folder フォト - - - - - + + + + + Browse... 参照... - + + + This is the location your Videos are Saved to/Imported from. + + + + Video Folder ビデオ - + + + This is the location your Music is Saved to/Imported from. + + + + Music Folder ミュージック - + + + This is the location your Games, Apps, Savegames, and System Backups are Saved to/Imported from. + + + + Applications / Backups アプリケーション/バックアップファイル - + + + This is the location your Software Updates and Browser Data is Saved to/Imported from. + + + + Updates / Web content アップデート/Webコンテンツ - + Other その他 - + <html><head/><body><p align="center"><span style=" font-size:14pt; font-weight:600;">Advanced settings</span></p></body></html> <html><head/><body><p align="center"><span style=" font-size:14pt; font-weight:600;">詳細設定</span></p></body></html> - + Offline Mode オフラインモード - + Skip metadata extraction メタデータの展開をスキップする - + Update database automatically when files on the PC are changed PCのファイルが変更された際にデータベースを自動的に更新する - + Disable USB monitoring USBの監視を無効にする - + Disable Wi-Fi monitoring Wi-Fiの監視を無効にする - + Database backend データベース保存 - + In Memory メモリ内