mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +01:00
Can now load long locale named qt translation file. (ex. qt_zh_CN.qm)
- patch by Mladen Pejaković, see #128 - also updated Polish and Dutch translations
This commit is contained in:
parent
d3ea77f8f1
commit
890e8f0cdf
Binary file not shown.
Binary file not shown.
BIN
bin/locale/qt_zh_CN.qm
Normal file
BIN
bin/locale/qt_zh_CN.qm
Normal file
Binary file not shown.
|
@ -484,6 +484,7 @@ void MainApplication::translateApp()
|
||||||
settings.beginGroup("Language");
|
settings.beginGroup("Language");
|
||||||
QString file = settings.value("language", locale.name() + ".qm").toString();
|
QString file = settings.value("language", locale.name() + ".qm").toString();
|
||||||
QString shortLoc = file.left(2);
|
QString shortLoc = file.left(2);
|
||||||
|
QString longLoc = file.left(5);
|
||||||
|
|
||||||
if (file == "" || !QFile::exists(TRANSLATIONSDIR + file)) {
|
if (file == "" || !QFile::exists(TRANSLATIONSDIR + file)) {
|
||||||
return;
|
return;
|
||||||
|
@ -493,7 +494,10 @@ void MainApplication::translateApp()
|
||||||
app->load(TRANSLATIONSDIR + file);
|
app->load(TRANSLATIONSDIR + file);
|
||||||
QTranslator* sys = new QTranslator();
|
QTranslator* sys = new QTranslator();
|
||||||
|
|
||||||
if (QFile::exists(TRANSLATIONSDIR + "qt_" + shortLoc + ".qm")) {
|
if (QFile::exists(TRANSLATIONSDIR + "qt_" + longLoc + ".qm")) {
|
||||||
|
sys->load(TRANSLATIONSDIR + "qt_" + longLoc + ".qm");
|
||||||
|
}
|
||||||
|
else if (QFile::exists(TRANSLATIONSDIR + "qt_" + shortLoc + ".qm")) {
|
||||||
sys->load(TRANSLATIONSDIR + "qt_" + shortLoc + ".qm");
|
sys->load(TRANSLATIONSDIR + "qt_" + shortLoc + ".qm");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3829,7 +3829,7 @@ Na het toevoegen of verwijderen van paden, is het noodzakelijk om de browser te
|
||||||
<location filename="../src/webview/siteinfowidget.cpp" line="51"/>
|
<location filename="../src/webview/siteinfowidget.cpp" line="51"/>
|
||||||
<location filename="../src/webview/siteinfowidget.cpp" line="70"/>
|
<location filename="../src/webview/siteinfowidget.cpp" line="70"/>
|
||||||
<source>This is your <b>%1</b> visit of this site.</source>
|
<source>This is your <b>%1</b> visit of this site.</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>Dit is uw <b>%1</b> bezoek aan deze site.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/webview/siteinfowidget.cpp" line="55"/>
|
<location filename="../src/webview/siteinfowidget.cpp" line="55"/>
|
||||||
|
@ -4330,42 +4330,42 @@ Na het toevoegen of verwijderen van paden, is het noodzakelijk om de browser te
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/webview/webview.cpp" line="520"/>
|
<location filename="../src/webview/webview.cpp" line="520"/>
|
||||||
<source>This frame</source>
|
<source>This frame</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>Dit frame</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/webview/webview.cpp" line="521"/>
|
<location filename="../src/webview/webview.cpp" line="521"/>
|
||||||
<source>Show &only this frame</source>
|
<source>Show &only this frame</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>Toon &alleen dit frame</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/webview/webview.cpp" line="522"/>
|
<location filename="../src/webview/webview.cpp" line="522"/>
|
||||||
<source>Show this frame in new &tab</source>
|
<source>Show this frame in new &tab</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>Toon dit frame in nieuw &tabblad</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/webview/webview.cpp" line="525"/>
|
<location filename="../src/webview/webview.cpp" line="525"/>
|
||||||
<source>Print frame</source>
|
<source>Print frame</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>Druk frame af</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/webview/webview.cpp" line="527"/>
|
<location filename="../src/webview/webview.cpp" line="527"/>
|
||||||
<source>Zoom &in</source>
|
<source>Zoom &in</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>Zoom &in</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/webview/webview.cpp" line="528"/>
|
<location filename="../src/webview/webview.cpp" line="528"/>
|
||||||
<source>&Zoom out</source>
|
<source>&Zoom out</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>&Zoom uit</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/webview/webview.cpp" line="529"/>
|
<location filename="../src/webview/webview.cpp" line="529"/>
|
||||||
<source>Reset</source>
|
<source>Reset</source>
|
||||||
<translation type="unfinished">Herstart</translation>
|
<translation>Zet terug</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/webview/webview.cpp" line="531"/>
|
<location filename="../src/webview/webview.cpp" line="531"/>
|
||||||
<source>Show so&urce of frame</source>
|
<source>Show so&urce of frame</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation>Toon &bron van frame</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/webview/webview.cpp" line="548"/>
|
<location filename="../src/webview/webview.cpp" line="548"/>
|
||||||
|
|
|
@ -2050,7 +2050,7 @@
|
||||||
<location filename="../src/preferences/preferences.ui" line="111"/>
|
<location filename="../src/preferences/preferences.ui" line="111"/>
|
||||||
<source>Tabs</source>
|
<source>Tabs</source>
|
||||||
<translation>Karty</translation>
|
<translation>Karty</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../src/preferences/preferences.ui" line="262"/>
|
<location filename="../src/preferences/preferences.ui" line="262"/>
|
||||||
<location filename="../src/preferences/preferences.ui" line="410"/>
|
<location filename="../src/preferences/preferences.ui" line="410"/>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user