Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I18N support #455

Draft
wants to merge 8 commits into
base: develop
Choose a base branch
from
Draft

I18N support #455

wants to merge 8 commits into from

Conversation

123jimin
Copy link

@123jimin 123jimin commented Apr 14, 2021

The purpose for this PR is to create a system where string literals can be translated.

  • Read and use PO files to translate text
    • libintl was quite unfriendly to use, so I created a simple PO file parser instead.
  • Added Language game settings for language selection
  • Added CPP and Lua functions for translation
    • _("foo"): translates 'foo'
    • _("foo", "bar): translates 'foo' with context 'bar'
  • Added Korean translations for game-related parts, for testing
  • Added Korean translations for settings

Non-goals for this PR:

  • Provide full translations for other languages (current translations are more 'testy' than 'complety')
  • Determine which string is translatable and which is not

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant