Show the desktop shell in Chinese under zh_CN

This commit is contained in:
ZacharyZhang-NY committed 2026-10-06 21:29:39 -04:00
1 parent e590f22de6
commit e236713d9f
55 files changed
+867 -331

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
.pragma library
.import "I18nZh.js" as Zh
// Shell text in the session's language; QML reaches this through the I18n singleton, plain JS imports it.
var chinese = Qt.locale().name.indexOf("zh_CN") === 0
function tr(text) {
var out = chinese && Zh.table[text] !== undefined ? Zh.table[text] : text
for (var i = 1; i < arguments.length; i++) out = out.split("%" + i).join(String(arguments[i]))
return out
}