Skip to content

Add Selected gettext method for instant translation #23

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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

BrunoMine
Copy link
Contributor

This allows you to select the language of the translated string.
Can you test with intltest.
Referenced Issue

doc/developer.md Outdated
@@ -36,6 +36,14 @@ string to be translated has singular and plural forms. For example:
-- The second `count` is the actual replacement.
print(NS("You have one item.", "You have @1 items.", count, count))

The `SS` and `SNS` are equivalent to `S` and `SNS` respectively,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo, should be NS.

@ShadowNinja
Copy link
Member

I don't know if I like this. It can never be fully functional -- there are only a few things that can be translated dynamically.

@BrunoMine
Copy link
Contributor Author

Sorry for the wrong word (word and no world) at commit.

there are only a few things that can be translated dynamically.

I think that there are only a few things that can not be translated dynamically.
Some relevant examples:
doc <=(That is enough to justify)
adventures
PVP games (for all see the rules)

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.

2 participants