Added some help messages to the Settings window; --set-locale switch
This commit is contained in:
		
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@@ -1 +1,2 @@
 | 
			
		||||
qcma.pro.user*
 | 
			
		||||
*.qm
 | 
			
		||||
 
 | 
			
		||||
@@ -42,6 +42,9 @@
 | 
			
		||||
            <layout class="QVBoxLayout" name="verticalLayout_3">
 | 
			
		||||
             <item>
 | 
			
		||||
              <widget class="QLabel" name="label_2">
 | 
			
		||||
               <property name="whatsThis">
 | 
			
		||||
                <string>This is the location your Screenshots and Pictures are Saved to/Imported from.</string>
 | 
			
		||||
               </property>
 | 
			
		||||
               <property name="text">
 | 
			
		||||
                <string>Photo Folder</string>
 | 
			
		||||
               </property>
 | 
			
		||||
@@ -51,6 +54,9 @@
 | 
			
		||||
              <layout class="QHBoxLayout" name="horizontalLayout_7">
 | 
			
		||||
               <item>
 | 
			
		||||
                <widget class="QLineEdit" name="photoPath">
 | 
			
		||||
                 <property name="toolTip">
 | 
			
		||||
                  <string>This is the location your Screenshots and Pictures are Saved to/Imported from.</string>
 | 
			
		||||
                 </property>
 | 
			
		||||
                 <property name="readOnly">
 | 
			
		||||
                  <bool>true</bool>
 | 
			
		||||
                 </property>
 | 
			
		||||
@@ -71,6 +77,9 @@
 | 
			
		||||
            <layout class="QVBoxLayout" name="verticalLayout_4">
 | 
			
		||||
             <item>
 | 
			
		||||
              <widget class="QLabel" name="label_3">
 | 
			
		||||
               <property name="whatsThis">
 | 
			
		||||
                <string>This is the location your Videos are Saved to/Imported from.</string>
 | 
			
		||||
               </property>
 | 
			
		||||
               <property name="text">
 | 
			
		||||
                <string>Video Folder</string>
 | 
			
		||||
               </property>
 | 
			
		||||
@@ -80,6 +89,9 @@
 | 
			
		||||
              <layout class="QHBoxLayout" name="horizontalLayout_8">
 | 
			
		||||
               <item>
 | 
			
		||||
                <widget class="QLineEdit" name="videoPath">
 | 
			
		||||
                 <property name="toolTip">
 | 
			
		||||
                  <string>This is the location your Videos are Saved to/Imported from.</string>
 | 
			
		||||
                 </property>
 | 
			
		||||
                 <property name="readOnly">
 | 
			
		||||
                  <bool>true</bool>
 | 
			
		||||
                 </property>
 | 
			
		||||
@@ -100,6 +112,9 @@
 | 
			
		||||
            <layout class="QVBoxLayout" name="verticalLayout_5">
 | 
			
		||||
             <item>
 | 
			
		||||
              <widget class="QLabel" name="label_4">
 | 
			
		||||
               <property name="whatsThis">
 | 
			
		||||
                <string>This is the location your Music is Saved to/Imported from.</string>
 | 
			
		||||
               </property>
 | 
			
		||||
               <property name="text">
 | 
			
		||||
                <string>Music Folder</string>
 | 
			
		||||
               </property>
 | 
			
		||||
@@ -109,6 +124,9 @@
 | 
			
		||||
              <layout class="QHBoxLayout" name="horizontalLayout_9">
 | 
			
		||||
               <item>
 | 
			
		||||
                <widget class="QLineEdit" name="musicPath">
 | 
			
		||||
                 <property name="toolTip">
 | 
			
		||||
                  <string>This is the location your Music is Saved to/Imported from.</string>
 | 
			
		||||
                 </property>
 | 
			
		||||
                 <property name="readOnly">
 | 
			
		||||
                  <bool>true</bool>
 | 
			
		||||
                 </property>
 | 
			
		||||
@@ -129,6 +147,9 @@
 | 
			
		||||
            <layout class="QVBoxLayout" name="verticalLayout_7">
 | 
			
		||||
             <item>
 | 
			
		||||
              <widget class="QLabel" name="label_6">
 | 
			
		||||
               <property name="whatsThis">
 | 
			
		||||
                <string>This is the location your Games, Apps, Savegames, and System Backups are Saved to/Imported from.</string>
 | 
			
		||||
               </property>
 | 
			
		||||
               <property name="text">
 | 
			
		||||
                <string>Applications / Backups</string>
 | 
			
		||||
               </property>
 | 
			
		||||
@@ -138,6 +159,9 @@
 | 
			
		||||
              <layout class="QHBoxLayout" name="horizontalLayout_2">
 | 
			
		||||
               <item>
 | 
			
		||||
                <widget class="QLineEdit" name="appPath">
 | 
			
		||||
                 <property name="toolTip">
 | 
			
		||||
                  <string>This is the location your Games, Apps, Savegames, and System Backups are Saved to/Imported from.</string>
 | 
			
		||||
                 </property>
 | 
			
		||||
                 <property name="readOnly">
 | 
			
		||||
                  <bool>true</bool>
 | 
			
		||||
                 </property>
 | 
			
		||||
@@ -158,6 +182,9 @@
 | 
			
		||||
            <layout class="QVBoxLayout" name="verticalLayout_6">
 | 
			
		||||
             <item>
 | 
			
		||||
              <widget class="QLabel" name="label_5">
 | 
			
		||||
               <property name="whatsThis">
 | 
			
		||||
                <string>This is the location your Software Updates and Browser Data is Saved to/Imported from.</string>
 | 
			
		||||
               </property>
 | 
			
		||||
               <property name="text">
 | 
			
		||||
                <string>Updates / Web content</string>
 | 
			
		||||
               </property>
 | 
			
		||||
@@ -167,6 +194,9 @@
 | 
			
		||||
              <layout class="QHBoxLayout" name="horizontalLayout_10">
 | 
			
		||||
               <item>
 | 
			
		||||
                <widget class="QLineEdit" name="urlPath">
 | 
			
		||||
                 <property name="toolTip">
 | 
			
		||||
                  <string>This is the location your Software Updates and Browser Data is Saved to/Imported from.</string>
 | 
			
		||||
                 </property>
 | 
			
		||||
                 <property name="readOnly">
 | 
			
		||||
                  <bool>true</bool>
 | 
			
		||||
                 </property>
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										9
									
								
								main.cpp
									
									
									
									
									
								
							
							
						
						
									
										9
									
								
								main.cpp
									
									
									
									
									
								
							@@ -74,6 +74,15 @@ 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);
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
@@ -146,80 +146,110 @@
 | 
			
		||||
    </message>
 | 
			
		||||
    <message>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="46"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="58"/>
 | 
			
		||||
        <source>This is the location your Screenshots and Pictures are Saved to/Imported from.</source>
 | 
			
		||||
        <translation type="unfinished"></translation>
 | 
			
		||||
    </message>
 | 
			
		||||
    <message>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="49"/>
 | 
			
		||||
        <source>Photo Folder</source>
 | 
			
		||||
        <translation>Directorio de Fotos</translation>
 | 
			
		||||
    </message>
 | 
			
		||||
    <message>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="62"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="91"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="120"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="149"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="178"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="68"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="103"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="138"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="173"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="208"/>
 | 
			
		||||
        <source>Browse...</source>
 | 
			
		||||
        <translation>Buscar...</translation>
 | 
			
		||||
    </message>
 | 
			
		||||
    <message>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="75"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="81"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="93"/>
 | 
			
		||||
        <source>This is the location your Videos are Saved to/Imported from.</source>
 | 
			
		||||
        <translation type="unfinished"></translation>
 | 
			
		||||
    </message>
 | 
			
		||||
    <message>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="84"/>
 | 
			
		||||
        <source>Video Folder</source>
 | 
			
		||||
        <translation>Directorio de Videos</translation>
 | 
			
		||||
    </message>
 | 
			
		||||
    <message>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="104"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="116"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="128"/>
 | 
			
		||||
        <source>This is the location your Music is Saved to/Imported from.</source>
 | 
			
		||||
        <translation type="unfinished"></translation>
 | 
			
		||||
    </message>
 | 
			
		||||
    <message>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="119"/>
 | 
			
		||||
        <source>Music Folder</source>
 | 
			
		||||
        <translation>Directorio de Música</translation>
 | 
			
		||||
    </message>
 | 
			
		||||
    <message>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="133"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="151"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="163"/>
 | 
			
		||||
        <source>This is the location your Games, Apps, Savegames, and System Backups are Saved to/Imported from.</source>
 | 
			
		||||
        <translation type="unfinished"></translation>
 | 
			
		||||
    </message>
 | 
			
		||||
    <message>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="154"/>
 | 
			
		||||
        <source>Applications / Backups</source>
 | 
			
		||||
        <translation>Aplicaciones / Juegos / Respaldos</translation>
 | 
			
		||||
    </message>
 | 
			
		||||
    <message>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="162"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="186"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="198"/>
 | 
			
		||||
        <source>This is the location your Software Updates and Browser Data is Saved to/Imported from.</source>
 | 
			
		||||
        <translation type="unfinished"></translation>
 | 
			
		||||
    </message>
 | 
			
		||||
    <message>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="189"/>
 | 
			
		||||
        <source>Updates / Web content</source>
 | 
			
		||||
        <translation>Actualizaciones / Contenido Web</translation>
 | 
			
		||||
    </message>
 | 
			
		||||
    <message>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="192"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="222"/>
 | 
			
		||||
        <source>Other</source>
 | 
			
		||||
        <translation>Otros</translation>
 | 
			
		||||
    </message>
 | 
			
		||||
    <message>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="200"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="230"/>
 | 
			
		||||
        <source><html><head/><body><p align="center"><span style=" font-size:14pt; font-weight:600;">Advanced settings</span></p></body></html></source>
 | 
			
		||||
        <translation type="unfinished"></translation>
 | 
			
		||||
    </message>
 | 
			
		||||
    <message>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="210"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="240"/>
 | 
			
		||||
        <source>Offline Mode</source>
 | 
			
		||||
        <translation type="unfinished"></translation>
 | 
			
		||||
    </message>
 | 
			
		||||
    <message>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="223"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="253"/>
 | 
			
		||||
        <source>Skip metadata extraction</source>
 | 
			
		||||
        <translation type="unfinished"></translation>
 | 
			
		||||
    </message>
 | 
			
		||||
    <message>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="233"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="263"/>
 | 
			
		||||
        <source>Update database automatically when files on the PC are changed</source>
 | 
			
		||||
        <translation type="unfinished"></translation>
 | 
			
		||||
    </message>
 | 
			
		||||
    <message>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="243"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="273"/>
 | 
			
		||||
        <source>Disable USB monitoring</source>
 | 
			
		||||
        <translation type="unfinished"></translation>
 | 
			
		||||
    </message>
 | 
			
		||||
    <message>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="253"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="283"/>
 | 
			
		||||
        <source>Disable Wi-Fi monitoring</source>
 | 
			
		||||
        <translation type="unfinished"></translation>
 | 
			
		||||
    </message>
 | 
			
		||||
    <message>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="262"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="292"/>
 | 
			
		||||
        <source>Database backend</source>
 | 
			
		||||
        <translation type="unfinished"></translation>
 | 
			
		||||
    </message>
 | 
			
		||||
    <message>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="273"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="303"/>
 | 
			
		||||
        <source>In Memory</source>
 | 
			
		||||
        <translation type="unfinished"></translation>
 | 
			
		||||
    </message>
 | 
			
		||||
 
 | 
			
		||||
@@ -146,80 +146,110 @@
 | 
			
		||||
    </message>
 | 
			
		||||
    <message>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="46"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="58"/>
 | 
			
		||||
        <source>This is the location your Screenshots and Pictures are Saved to/Imported from.</source>
 | 
			
		||||
        <translation type="unfinished"></translation>
 | 
			
		||||
    </message>
 | 
			
		||||
    <message>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="49"/>
 | 
			
		||||
        <source>Photo Folder</source>
 | 
			
		||||
        <translation>フォト</translation>
 | 
			
		||||
    </message>
 | 
			
		||||
    <message>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="62"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="91"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="120"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="149"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="178"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="68"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="103"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="138"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="173"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="208"/>
 | 
			
		||||
        <source>Browse...</source>
 | 
			
		||||
        <translation>参照...</translation>
 | 
			
		||||
    </message>
 | 
			
		||||
    <message>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="75"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="81"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="93"/>
 | 
			
		||||
        <source>This is the location your Videos are Saved to/Imported from.</source>
 | 
			
		||||
        <translation type="unfinished"></translation>
 | 
			
		||||
    </message>
 | 
			
		||||
    <message>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="84"/>
 | 
			
		||||
        <source>Video Folder</source>
 | 
			
		||||
        <translation>ビデオ</translation>
 | 
			
		||||
    </message>
 | 
			
		||||
    <message>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="104"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="116"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="128"/>
 | 
			
		||||
        <source>This is the location your Music is Saved to/Imported from.</source>
 | 
			
		||||
        <translation type="unfinished"></translation>
 | 
			
		||||
    </message>
 | 
			
		||||
    <message>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="119"/>
 | 
			
		||||
        <source>Music Folder</source>
 | 
			
		||||
        <translation>ミュージック</translation>
 | 
			
		||||
    </message>
 | 
			
		||||
    <message>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="133"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="151"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="163"/>
 | 
			
		||||
        <source>This is the location your Games, Apps, Savegames, and System Backups are Saved to/Imported from.</source>
 | 
			
		||||
        <translation type="unfinished"></translation>
 | 
			
		||||
    </message>
 | 
			
		||||
    <message>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="154"/>
 | 
			
		||||
        <source>Applications / Backups</source>
 | 
			
		||||
        <translation>アプリケーション/バックアップファイル</translation>
 | 
			
		||||
    </message>
 | 
			
		||||
    <message>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="162"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="186"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="198"/>
 | 
			
		||||
        <source>This is the location your Software Updates and Browser Data is Saved to/Imported from.</source>
 | 
			
		||||
        <translation type="unfinished"></translation>
 | 
			
		||||
    </message>
 | 
			
		||||
    <message>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="189"/>
 | 
			
		||||
        <source>Updates / Web content</source>
 | 
			
		||||
        <translation>アップデート/Webコンテンツ</translation>
 | 
			
		||||
    </message>
 | 
			
		||||
    <message>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="192"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="222"/>
 | 
			
		||||
        <source>Other</source>
 | 
			
		||||
        <translation>その他</translation>
 | 
			
		||||
    </message>
 | 
			
		||||
    <message>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="200"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="230"/>
 | 
			
		||||
        <source><html><head/><body><p align="center"><span style=" font-size:14pt; font-weight:600;">Advanced settings</span></p></body></html></source>
 | 
			
		||||
        <translation><html><head/><body><p align="center"><span style=" font-size:14pt; font-weight:600;">詳細設定</span></p></body></html></translation>
 | 
			
		||||
    </message>
 | 
			
		||||
    <message>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="210"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="240"/>
 | 
			
		||||
        <source>Offline Mode</source>
 | 
			
		||||
        <translation>オフラインモード</translation>
 | 
			
		||||
    </message>
 | 
			
		||||
    <message>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="223"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="253"/>
 | 
			
		||||
        <source>Skip metadata extraction</source>
 | 
			
		||||
        <translation>メタデータの展開をスキップする</translation>
 | 
			
		||||
    </message>
 | 
			
		||||
    <message>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="233"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="263"/>
 | 
			
		||||
        <source>Update database automatically when files on the PC are changed</source>
 | 
			
		||||
        <translation>PCのファイルが変更された際にデータベースを自動的に更新する</translation>
 | 
			
		||||
    </message>
 | 
			
		||||
    <message>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="243"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="273"/>
 | 
			
		||||
        <source>Disable USB monitoring</source>
 | 
			
		||||
        <translation>USBの監視を無効にする</translation>
 | 
			
		||||
    </message>
 | 
			
		||||
    <message>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="253"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="283"/>
 | 
			
		||||
        <source>Disable Wi-Fi monitoring</source>
 | 
			
		||||
        <translation>Wi-Fiの監視を無効にする</translation>
 | 
			
		||||
    </message>
 | 
			
		||||
    <message>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="262"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="292"/>
 | 
			
		||||
        <source>Database backend</source>
 | 
			
		||||
        <translation>データベース保存</translation>
 | 
			
		||||
    </message>
 | 
			
		||||
    <message>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="273"/>
 | 
			
		||||
        <location filename="../../configwidget.ui" line="303"/>
 | 
			
		||||
        <source>In Memory</source>
 | 
			
		||||
        <translation>メモリ内</translation>
 | 
			
		||||
    </message>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user