瀏覽代碼

Change translation locations

Neal Wilson 8 年之前
父節點
當前提交
4f269433fb
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      src/typica.w

+ 2
- 2
src/typica.w 查看文件

@@ -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…
取消
儲存