• Luca Giambonini's avatar
    akabei enable translations · 96fd05e7
    Luca Giambonini authored
    akabeicore and akabeiclient provides already the translated strings, with this patch akabei is also translated.
    
    akabei help shows the translated strings
    LANG="de_DE.UTF-8" akabei help
    
    does not work:
    translator->load("akabei_" + QLocale::system().name() + ".qm", "/usr/share/akabei/translations/");
    
    it works:
    translator->load("akabei_de.qm", "/usr/share/akabei/translations/");
    translator->load("akabei_de_DE.qm", "/usr/share/akabei/translations/");
    
    QLocale::system().name()  returns it_CH here, and the italian translation is not available currently.
    So I expect that with a german locale must return de_DE.
    
    QTranslator must search for:
    /opt/foolib/foo.fr_ca.qm
    /opt/foolib/foo.fr_ca
    /opt/foolib/foo.fr.qm
    /opt/foolib/foo.fr
    /opt/foolib/foo.qm
    /opt/foolib/foo
    96fd05e7
Name
Last commit
Last update
.tx Loading commit data...
cmake/modules Loading commit data...
docs Loading commit data...
licenses Loading commit data...
scripts Loading commit data...
tools Loading commit data...
translations Loading commit data...
.reviewboardrc Loading commit data...
CMakeLists.txt Loading commit data...
Messages.sh Loading commit data...
README Loading commit data...
akabei.kdev4 Loading commit data...
akabeiaboutdata.cpp Loading commit data...
akabeiaboutdata.h Loading commit data...
akabeienums.h Loading commit data...
akabeilicensepath.h.cmake Loading commit data...
akabeioptions.cpp Loading commit data...
akabeioptions.h Loading commit data...
akabeiparser.cpp Loading commit data...
akabeiparser.h Loading commit data...
apm.cpp Loading commit data...
apm.h Loading commit data...
fieldnames.cpp Loading commit data...
fieldnames.h Loading commit data...
main.cpp Loading commit data...
pakabeiparser.cpp Loading commit data...
pakabeiparser.h Loading commit data...
parser.cpp Loading commit data...
parser.h Loading commit data...
parsingexceptions.h Loading commit data...
performoperation.cpp Loading commit data...
performoperation.h Loading commit data...
progressbar.cpp Loading commit data...
progressbar.h Loading commit data...
queryoperation.cpp Loading commit data...
queryoperation.h Loading commit data...
queueoperation.cpp Loading commit data...
queueoperation.h Loading commit data...
removeoperation.cpp Loading commit data...
removeoperation.h Loading commit data...
sync-transifex.sh Loading commit data...
syncoperation.cpp Loading commit data...
syncoperation.h Loading commit data...
upgradeoperation.cpp Loading commit data...
upgradeoperation.h Loading commit data...
utils.cpp Loading commit data...
utils.h Loading commit data...