[win-nix] added Serbian (Cyrilic) lang

This commit is contained in:
maxkadushkin
2024-05-27 17:45:15 +03:00
parent 7ba73b8ec3
commit 68d2e50adf
6 changed files with 8 additions and 3 deletions

View File

@ -185,6 +185,8 @@
<script src="../locale/zh-CN.js"></script>
<script src="../locale/zh-TW.js"></script>
<script src="../locale/ar-SA.js"></script>
<script src="../locale/sr-Latn-RS.js"></script>
<script src="../locale/sr-Cyrl-RS.js"></script>
<script src="../noconnect/code.js"></script>
<script src="../noconnect/l10n/ru.js"></script>

View File

@ -160,7 +160,7 @@ function loadLocale(lang) {
};
function correctLang(lang) {
return lang.replace('-', '_');
return lang.replaceAll('-', '_');
}
function translate(str, lang) {

View File

@ -49,7 +49,8 @@ TRANSLATIONS = ./langs/en.ts \
./langs/zh_TW.ts \
./langs/si.ts \
./langs/ar_SA.ts \
./langs/sr_Latn_RS.ts
./langs/sr_Latn_RS.ts \
./langs/sr_Cyrl_RS.ts
CORE_ROOT_DIR = $$PWD/../../core

Binary file not shown.

View File

@ -214,6 +214,7 @@
<file alias="sk-SK.qm">langs/sk.qm</file>
<file alias="sl-SI.qm">langs/sl.qm</file>
<file alias="sr-Latn-RS.qm">langs/sr_Latn_RS.qm</file>
<file alias="sr-Cyrl-RS.qm">langs/sr_Cyrl_RS.qm</file>
<file alias="sv-SE.qm">langs/sv.qm</file>
<file alias="tr-TR.qm">langs/tr.qm</file>
<file alias="uk-UA.qm">langs/uk.qm</file>

View File

@ -198,7 +198,8 @@ private:
,{"gl-ES", "Galego"}
,{"si-LK", "සිංහල"}
,{"ar-SA", "اَلْعَرَبِيَّة"}
,{"sr-Latn-RS", "Srpski"}
,{"sr-Latn-RS", "Srpski (Latin)"}
,{"sr-Cyrl-RS", "Српски (Ћирилица)"}
};
};