文件最后提交记录最后更新时间
Update l10n docs6 个月前
Add 'resources/translations/' from commit '822b73086d50f4dc5eb938d30f29349d10f91c70' git-subtree-dir: resources/translations git-subtree-mainline: ca332588b8e7a27c3156b841ecdfef19ee645225 git-subtree-split: 822b73086d50f4dc5eb938d30f29349d10f91c70 7 个月前
Fix #5471: Use pocketmine. prefixed key for spawnpoint success (#6899) 6 个月前
Fix #5471: Use pocketmine. prefixed key for spawnpoint success (#6899) 6 个月前
Merge branch 'stable' into minor-next 5 个月前
Fix #5471: Use pocketmine. prefixed key for spawnpoint success (#6899) 6 个月前
Add 'resources/translations/' from commit '822b73086d50f4dc5eb938d30f29349d10f91c70' git-subtree-dir: resources/translations git-subtree-mainline: ca332588b8e7a27c3156b841ecdfef19ee645225 git-subtree-split: 822b73086d50f4dc5eb938d30f29349d10f91c70 7 个月前
New translations from Crowdin (stable) (#6986) Co-authored-by: pmmp-admin-bot[bot] <188621379+pmmp-admin-bot[bot]@users.noreply.github.com>4 个月前
Fix #5471: Use pocketmine. prefixed key for spawnpoint success (#6899) 6 个月前
New translations from Crowdin (stable) (#7025) Co-authored-by: pmmp-admin-bot[bot] <188621379+pmmp-admin-bot[bot]@users.noreply.github.com>2 个月前
Fix #5471: Use pocketmine. prefixed key for spawnpoint success (#6899) 6 个月前
Fix #5471: Use pocketmine. prefixed key for spawnpoint success (#6899) 6 个月前
Merge 'stable' into 'minor-next' Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/20529404080 4 个月前
New translations from Crowdin (minor-next) (#6968) Co-authored-by: pmmp-admin-bot[bot] <188621379+pmmp-admin-bot[bot]@users.noreply.github.com>4 个月前
Fix #5471: Use pocketmine. prefixed key for spawnpoint success (#6899) 6 个月前
New translations from Crowdin (minor-next) (#6994) Co-authored-by: pmmp-admin-bot[bot] <188621379+pmmp-admin-bot[bot]@users.noreply.github.com>4 个月前
README.md

PocketMine-Language

These files contain translation strings used in PocketMine-MP.

Contributing translations (non-English)

To contribute translations, please use the Crowdin Translation Page, select the language you want to translate and go to PocketMine-MP and select "PocketMine core strings". There may be multiple branches available - if in doubt, stick with stable.

For maintainers

Adding new strings

Caution

Only eng.ini should be modified directly.

Do not modify any of the other languages manually. They are managed by Crowdin, and any changes you make to them will be overwritten.

To add new strings, add them ONLY to eng.ini.

  • Vanilla strings should use the same keys as used by Mojang. However, PocketMine-MP currently uses {%paramName} for parameters instead of %1$s %2$s etc, so you can't copy-paste them directly. Make sure to adapt these.
  • Strings specifically for PocketMine-MP can have any keys you like, but they must start with pocketmine.

Tip

You don't need to worry about translating newly added strings into other languages. Just make sure that eng.ini is correct, and translators will handle other languages via Crowdin.

Once you update eng.ini, run composer update-codegen to regenerate KnownTranslationFactory et al. This will generate a function that you can use to create a parameterised Translatable instance for the string.

Crowdin will synchronize eng.ini every time it's updated on stable, minor-next and major-next to put up new strings for translation.

Pitfalls

  • If you have issues with translation files being deleted, add a language mapping in the Crowdin config. Some issues arose with Chinese due to Chinese Simplified and Chinese Traditional both mapping to zho, requiring a mapping to zho-cn for simplified.