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

Support more keywords (context-dependent translations and plural forms) #11

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

Conversation

Jackenmen
Copy link
Member

@Jackenmen Jackenmen commented Sep 3, 2022

Adds support for xgettext's keyword specification (and allows using keyword specified in this format) bringing support for more arbitrary keyword names and argument counts. This brings support for context-dependent translations and plural forms on redgettext's side. Most of the work here was really the keyword specification parser.


Depends on rewrite in #9 and depends on #10 (though that can be avoided if there were a reason to first use this PR but I think #10 is more trivial)
Additionally, it would be good to have a working implementation of ngettext (plural support) in Red before proceeding with this.

Fixes #12

@Jackenmen Jackenmen added this to the 4.0.0 milestone Sep 3, 2022
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.

[ENHANCEMENT/TODO] Make keywords an option
1 participant