Expose new translations and improve language code.

This commit is contained in:
sledgehammer999
2013-10-20 19:31:01 +03:00
parent 88c64ccf0a
commit 2b9f79fafe
7 changed files with 26 additions and 15 deletions

View File

@@ -270,7 +270,9 @@
<legend>_(Language)</legend>
<label for="locale_select">_(User Interface Language:)</label>
<select id="locale_select">
<option value="en_GB">English</option>
<option value="en">English</option>
<option value="en_AU">English(Australia)</option>
<option value="en_GB">English(United Kingdom)</option>
<option value="fr_FR">Français</option>
<option value="de_DE">Deutsch</option>
<option value="hu_HU">Magyar</option>

View File

@@ -155,7 +155,7 @@ void prefjson::setPreferences(const QString& json)
if (translator->load(QString::fromUtf8(":/lang/qbittorrent_") + locale)) {
qDebug("%s locale recognized, using translation.", qPrintable(locale));
}else{
qDebug("%s locale unrecognized, using default (en_GB).", qPrintable(locale));
qDebug("%s locale unrecognized, using default (en).", qPrintable(locale));
}
qApp->installTranslator(translator);