Sfoglia il codice sorgente

Change translation locations

Neal Wilson 8 anni fa
parent
commit
4f269433fb
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2
    2
      src/typica.w

+ 2
- 2
src/typica.w Vedi File

@@ -12625,12 +12625,12 @@ details, see the Qt Linguist manual.
12625 12625
 
12626 12626
 @<Load translation objects@>=
12627 12627
 QTranslator *base = new QTranslator;
12628
-if(base->load(QString("qt_%1").arg(QLocale::system().name())))
12628
+if(base->load(QString("qt_%1").arg(QLocale::system().name()), QString("%1/Translations").arg(QCoreApplication::applicationDirPath())))
12629 12629
 {
12630 12630
     installTranslator(base);
12631 12631
 }
12632 12632
 QTranslator *app = new QTranslator;
12633
-if(app->load(QString("%1_%2").arg("Typica").arg(QLocale::system().name())))
12633
+if(app->load(QString("%1_%2").arg("Typica").arg(QLocale::system().name()), QString("%1/Translations").arg(QCoreApplication::applicationDirPath())))
12634 12634
 {
12635 12635
     installTranslator(app);
12636 12636
 }

Loading…
Annulla
Salva