Call the default language preference setting "Use system setting".
That more correctly describes it - it doesn't do any form of automatic detection of anything, it just picks up the system settings from wherever Qt picks them up. Change-Id: I62d40719728cc9735e3b8f3e4202b7e61fc3f43b Reviewed-on: https://code.wireshark.org/review/5165 Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
parent
28e19b6b23
commit
72c70b6abe
|
@ -96,7 +96,7 @@ MainWindowPreferencesFrame::MainWindowPreferencesFrame(QWidget *parent) :
|
|||
ui->languageComboBox->addItem(ico, lang, locale);
|
||||
}
|
||||
|
||||
ui->languageComboBox->setItemData(0, "auto");
|
||||
ui->languageComboBox->setItemData(0, "system");
|
||||
ui->languageComboBox->model()->sort(0);
|
||||
|
||||
for (int i = 0; i < ui->languageComboBox->count(); i += 1) {
|
||||
|
|
|
@ -312,7 +312,7 @@
|
|||
</property>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Auto</string>
|
||||
<string>Use system setting</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
|
|
|
@ -883,7 +883,7 @@ void WiresharkApplication::loadLanguage(const QString& newLanguage)
|
|||
QLocale locale;
|
||||
QString localeLanguage;
|
||||
|
||||
if (newLanguage.isEmpty() || newLanguage == "auto") {
|
||||
if (newLanguage.isEmpty() || newLanguage == "system") {
|
||||
localeLanguage = QLocale::system().name();
|
||||
} else {
|
||||
localeLanguage = newLanguage;
|
||||
|
|
|
@ -3005,7 +3005,7 @@ live packets from your network</source>
|
|||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Auto-Detect</source>
|
||||
<source>Use system setting</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
|
|
|
@ -3780,7 +3780,7 @@ more about Wireshark</source>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="main_window_preferences_frame.ui" line="315"/>
|
||||
<source>Auto-Detect</source>
|
||||
<source>Use system setting</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
|
|
|
@ -3907,8 +3907,8 @@ Voulez-vous arrêter la capture et enregistrer les paquets capturés</translatio
|
|||
</message>
|
||||
<message>
|
||||
<location filename="main_window_preferences_frame.ui" line="315"/>
|
||||
<source>Auto-Detect</source>
|
||||
<translation>Auto-Dectection</translation>
|
||||
<source>Use system setting</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_preferences_frame.ui" line="320"/>
|
||||
|
|
|
@ -5981,8 +5981,8 @@ altro su Wireshark</translation>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="main_window_preferences_frame.ui" line="315"/>
|
||||
<source>Auto-Detect</source>
|
||||
<translation>Rileva automaticamente</translation>
|
||||
<source>Use system setting</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_preferences_frame.ui" line="320"/>
|
||||
|
|
|
@ -5837,8 +5837,8 @@ more about Wireshark</source>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="main_window_preferences_frame.ui" line="315"/>
|
||||
<source>Auto-Detect</source>
|
||||
<translation>自動検出</translation>
|
||||
<source>Use system setting</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="main_window_preferences_frame.ui" line="320"/>
|
||||
|
|
|
@ -4746,8 +4746,8 @@ more about Wireshark</source>
|
|||
<translation>Główny pasek stylów:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Auto-Detect</source>
|
||||
<translation>Wykryj język</translation>
|
||||
<source>Use system setting</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>English</source>
|
||||
|
|
|
@ -3881,7 +3881,7 @@ Wireshark 的更多信息</translation>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="main_window_preferences_frame.ui" line="315"/>
|
||||
<source>Auto-Detect</source>
|
||||
<source>Use system setting</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
|
|
Loading…
Reference in New Issue