This commit is contained in:
arm64v8a
2023-07-19 11:39:30 +09:00
5 changed files with 1659 additions and 0 deletions

View File

@@ -307,6 +307,7 @@ set_target_properties(nekoray PROPERTIES
set(TS_FILES set(TS_FILES
translations/zh_CN.ts translations/zh_CN.ts
translations/fa_IR.ts translations/fa_IR.ts
translations/ru_RU.ts
) )
if (${QT_VERSION_MAJOR} GREATER_EQUAL 6) if (${QT_VERSION_MAJOR} GREATER_EQUAL 6)
qt_add_lupdate(nekoray TS_FILES ${TS_FILES}) qt_add_lupdate(nekoray TS_FILES ${TS_FILES})

View File

@@ -236,6 +236,9 @@ int main(int argc, char* argv[]) {
case 3: case 3:
locale = "fa_IR"; // farsi(iran) locale = "fa_IR"; // farsi(iran)
break; break;
case 4:
locale = "ru_RU"; // Russian
break;
default: default:
locale = QLocale().name(); locale = QLocale().name();
} }

1649
translations/ru_RU.ts Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -2,5 +2,6 @@
<qresource prefix="/translations"> <qresource prefix="/translations">
<file>zh_CN.qm</file> <file>zh_CN.qm</file>
<file>fa_IR.qm</file> <file>fa_IR.qm</file>
<file>ru_RU.qm</file>
</qresource> </qresource>
</RCC> </RCC>

View File

@@ -340,6 +340,11 @@
<string notr="true">فارسی</string> <string notr="true">فارسی</string>
</property> </property>
</item> </item>
<item>
<property name="text">
<string notr="true">Русский</string>
</property>
</item>
</widget> </widget>
</item> </item>
</layout> </layout>