luigifab / openmage-translations
从 Magento 1/2 和旧语言包中为 OpenMage 提供的翻译。
v2024.6
2024-02-10 16:57 UTC
Requires
- openmage/magento-lts: >=19.4.0
README
停止俄罗斯战争。 🇺🇦 乌克兰自由!
在 OpenMage 中的安装
- 删除所有
app/locales/*/Mage_*.csv
- 运行:
composer require luigifab/openmage-translations
翻译者的安装
git clone git@github.com:luigifab/openmage-translations.git xyz
cd xyz/
git clone git@github.com:OpenMage/magento-lts.git src-openmage
cd src-openmage/
git apply ../1359.diff
cd ../
- 请阅读 translate.php 中的第 150 行以获取额外的语言包
翻译者的使用
- 从 M2 下载 CSV 文件:
php translate.php downloadm2
- 更新 OpenMage 的 CSV 文件:
php translate.php update
您将在 src-untranslated/
目录中找到缺失的翻译。
您可以在 src-untranslated/
中更新 CSV 文件,然后运行: php translate.php update
(使用 PHP 7.2 / 7.3 / 7.4 / 8.0 / 8.1 / 8.2 / 8.3) 以更新 locales/
中的文件。