Skip to content

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

Open
Jackenmen wants to merge 5 commits intoCog-Creators:masterfrom
Jackenmen:support_more_keywords
Open

Support more keywords (context-dependent translations and plural forms)#11
Jackenmen wants to merge 5 commits intoCog-Creators:masterfrom
Jackenmen:support_more_keywords

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
@Jackenmen Jackenmen force-pushed the support_more_keywords branch from 7c79dfa to c9dfd5c Compare September 3, 2022 02:06
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