mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 22:25:04 -04:00
Added and modified patch from waseihou
Added support for external translation files for the main application and the plugins LinksCloud and VOIP. The following files are loaded from the directory <executable dir>/translations - retroshare_*.qm - LinksCloud_*.qm - VOIP_*.qm git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5664 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
cc84a0338e
commit
8c5fd1d124
3 changed files with 12 additions and 5 deletions
|
@ -164,7 +164,10 @@ QTranslator* VOIPPlugin::qt_translator(QApplication */*app*/, const QString& lan
|
|||
}
|
||||
|
||||
QTranslator* translator = new QTranslator();
|
||||
if (translator->load(":/lang/VOIP_" + languageCode + ".qm")) {
|
||||
|
||||
if (translator->load(QCoreApplication::applicationDirPath() + "/translations/VOIP_" + languageCode + ".qm")) {
|
||||
return translator;
|
||||
} else if (translator->load(":/lang/VOIP_" + languageCode + ".qm")) {
|
||||
return translator;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue