-
-
Notifications
You must be signed in to change notification settings - Fork 835
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
Translation of Tags #527
Comments
Oh, after a while of thinking first solution would be too messy. So I left only second solution as proposal of solution. |
Gotcha, looks doable. Pinging @dcsjapan in case he has any thoughts. |
Uff, nice to hear it's not too big problem. Please remember about Gender plugin and translation support. It's really needed here. Should I create another issue for this? Anytime soon? |
Another issue would be good. We'll try and get it in within a few weeks. |
Thanks @tobscure ... of course I haven't looked at the Tags extension at all yet, and am still trying to get up to speed on YML. But I wondering if it's really necessary to move the "tags" out of the first string. Would this sort of thing be possible?
In other words, is the number context applied recursively? EDIT: Come to think of it, the version proposed by @amdad is applying it recursively, so I guess this version should work too! If it isn't, then what @amdad proposes looks great. (I'm guessing the first proposal involved abstracting the word "tag" from all the {action} strings?) |
Yes, first proposal was about placing {username} and {tags} in one string. Like your example is OK, but in this line is error: added_tags: ~~"added the {tags}"~~ // This should be removed
one: "added(sing) the {tags}"
two: "added(dual) the {tags}"
other: "added(plur) the {tags}" I used, one, two and other because of my localization working on this. app.translator.plural = function(count) {
if (count == 1) {
return 'one';
}
else if (count > 1 && count < 5) {
return 'two';
}
else {
return 'other';
}
}; And I use this second rule almost everywhere. But rules can be different for each language. Though, I think not many languages have such expanded grammar as mine 😄 |
Thanks, I thought I had removed that string from the line you pointed out. Fixed! 😄 Which language are you localizing for @amdad ? |
Taking on Chat. Thanks for interest dcsjapan |
Glad to help! It seems there's two issues happening at once here:
That was getting me confused. I'm thinking that if @tobscure can solve the first problem, the second will take care of itself, as the translator can handle that on their end. |
Update after chatting with @tobscure ...
Example ( credit to @tobscure ):
|
Oh, all was mainly in my first proposal, which I removed. Because I worry about:
But if this will on board it will be all great. Just to be sure, of course, in your arrangement added_tags: and removed_tags: will allow for full pluralization? added_tags:
one: added the {tags} tag
two: added the {tags} tags
other: ...
removed_tags:
one: removed the {tags} tag
other: ... |
Yes :) |
Great Thank You! |
Thanks, it will as well fix the French translation which is affected by that. |
This have been fixed and can be closed now. |
Not quite ... the necessary strings are there, but Toby still needs to do a bit of coding to support them. (See the comments in DiscussionTaggedPost.js for details.) It should be very soon, though. 😉 |
We already have in English
Unfortunately, strings logic in sentence is too strict. I've tried in many ways, but I cannot form correct phrase in my language with this.
I need pluralization for {action} part.
It would be like:
Of course this is not English grammar/logic. Just example of structure in my localization.
Edit : Removed whole first proposed solution.
The text was updated successfully, but these errors were encountered: