-
Notifications
You must be signed in to change notification settings - Fork 154
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
Handling grammatical gender with Angular-Gettext #39
Comments
Not currently. Gettext doesn't natively support that. That being said, my inspiration partly comes from vernacular, which does do that: https://github.com/rdio/vernacular Might be interesting to see how vernacular does it and whether or not that's something we can apply to angular-gettext. So far, I haven't had clients requesting gender support, nor have I felt inclined to add it myself: most gender-handling solutions quickly turn the translation support into something enormously complex. I'd love to have it, but only if a really simple and usable system can be found. |
We are using angular-gettext, and we very quickly hit gender translation problems on a relatively simple project. Currently we are getting push-back from our l10n team about the appraoch we are using because of this very issue. It seems to me that having a declarative framework to handle gender the way that plural is handled would be pointless and bad--the same word often has different genders in different languages, or even for different choices of word. For example, when translating "girl" into German, you could choose Fraulein, which is female, or Maedschen, which is neutral. It seems to me that angular-gettext would really benefit from some generic way to specify context, rather than a specific way to specify gender. That way, when we hit words or phrases that are the same in English, but need to be translated differently in other languages like "all" or "none" or "delete it", we can add some context that will split the uasages into 2 or more translation targets. So, you could add an additional attribute value that would help to distinguish the context like so: This feature is already supported in other implementations of gettext: |
#103 is flexible enough to handle this case. We just need a little more work on the grunt tools part to extract the contexts from filters. |
Closing as this is a duplicate of #53. |
a solution with context: without gender: with gender: html: translation.js: the '$$noContext' is for simple invocation: soved ! |
Hi,
We are starting a big project and thinking seriously about using Angular-Gettext. Our only concern is about handling gender. Is there a simple-proper-elegant way to do it ?
Thank you very much!
The text was updated successfully, but these errors were encountered: