Add French language support and update docs

Introduces French (fr) as a supported language across the workflow, installation script, translation utility, and documentation. Updates language selection menus, README files, and adds a new French README. Also bumps shell_version to 2.6.1 and improves language selection logic.

Update translate.py

Update translate.py

Update README instructions and links in EN/FR

Added a link to the background story of 'idleleo' in both English and French README files. Updated the Simplified Chinese link in the French README and replaced the Telegram group link with a clickable version.

Update README.md

Update Backstory links in README translations

Changed the 'idleleo' background story links in the main and translated README files to point to specific anchor sections for improved navigation.
This commit is contained in:
yunshu
2025-07-18 21:49:36 +08:00
committed by yunshu
parent c80a70ffc9
commit a897edc84f
9 changed files with 144 additions and 40 deletions
+5 -5
View File
@@ -55,7 +55,7 @@ jobs:
- name: Setup directories
run: |
mkdir -p po
mkdir -p languages/{en,fa,ru,zh_CN,ko}/LC_MESSAGES
mkdir -p languages/{en,fa,ru,zh_CN,ko,fr}/LC_MESSAGES
- name: Extract strings from specified scripts
run: |
@@ -77,7 +77,7 @@ jobs:
- name: Update/Create PO files
run: |
rm -f po/*.po
for lang in zh_CN en fa ru ko; do
for lang in zh_CN en fa ru ko fr; do
msginit --no-translator --locale=$lang --input=po/xray_install.pot --output=po/$lang.po
done
@@ -89,7 +89,7 @@ jobs:
- name: Compile MO files if necessary
run: |
needs_compile=false
for lang in en fa ru ko; do
for lang in en fa ru ko fr; do
if [ ! -f "po/${lang}.po.no-update" ]; then
needs_compile=true
if ! msgfmt --check -v --statistics -o languages/${lang}/LC_MESSAGES/xray_install.mo po/${lang}.po; then
@@ -108,7 +108,7 @@ jobs:
- name: Run i18nspector checks on MO files if compiled
run: |
for lang in en fa ru ko; do
for lang in en fa ru ko fr; do
if [ ! -f "po/${lang}.po.no-update" ] && [ -f "languages/${lang}/LC_MESSAGES/xray_install.mo" ]; then
i18nspector check-binary languages/${lang}/LC_MESSAGES/xray_install.mo
fi
@@ -128,7 +128,7 @@ jobs:
- name: Commit changes if necessary
run: |
needs_commit=false
for lang in en fa ru ko; do
for lang in en fa ru ko fr; do
if [ ! -f "po/${lang}.po.no-update" ]; then
needs_commit=true
break