Diaspora/Diaspora
-
%{actors} vam je poslalo poruku. %{actors} vam je poslalo poruku. %{actors} vam je poslalo poruku. %{actors} vam je poslalo poruku. %{actors} su vam poslali poruku. ZeroThis plural form is used for numbers like: 0%{actors} vam je poslalo poruku.
oneThis plural form is used for numbers like: n mod 10 is 1 and n mod 100 is not 11%{actors} vam je poslalo poruku.
fewThis plural form is used for numbers like: n mod 10 in 2..4 and n mod 100 not in 12..14%{actors} vam je poslalo poruku.
manyThis plural form is used for numbers like: n mod 10 is 0 or n mod 10 in 5..9 or n mod 100 in 11..14%{actors} vam je poslalo poruku.
otherThis plural form is used for numbers like: everything else%{actors} su vam poslali poruku.
-
I assume that "n" gender is for a neuter? We should use "n:ło" then, not "n:ł/ła" then. Unless I'm wrong and "n" stands for a case when we cannot determine user's gender (eg. he hasn't filled this field in pofile)?
-
i18n-inflector-rails documentation: https://github.com/siefca/i18n-inflector-rails#in-a-yaml-file
-
the other problem is: does it relate to the gender of the user that created the content or to the user that's reading it?
-
The gender is currently rudimentarily guessed from the profile data, https://github.com/diaspora/diaspora/blob/develop/app/controllers/application_controller.rb#L97 and only set for the currently signed in user. i18n-inflector supports passing multiple kinds on a per key basis, but this is basically nowhere integrated. Also note that the application is more and more ported to the client side with client side rendering and that our client side i18n support has no integration with the inlfection system at all.
-
Also note that the application is more and more ported to
the client side with client side rendering and that our client
side i18n support has no integration with the inlfection
system at all.So if at all possible, we should avoid using inflection support. Shame, but possible to work around.
Thanks!
-
Note that we totally would accept any contributions to improve the inflection support in any of those areas though!
-
would love to help, but I neither have the time to work on yet another code base (far too many projects on backburner :) nor am I comfortable enough with ruby or JavaScript to write library code
History
-
-
-
%{actors} vam je poslalo poruku. %{actors} vam je poslalo poruku. %{actors} vam je poslalo poruku. %{actors} vam je poslalo poruku. %{actors} su vam poslali poruku.%{actors} vam je poslalo poruku. %{actors} vam je poslalo poruku. %{actors} vam je poslalo poruku. %{actors} vam je poslalo poruku. %{actors} su vam poslali poruku. ZeroThis plural form is used for numbers like: 0%{actors} vam je poslalo poruku.
oneThis plural form is used for numbers like: n mod 10 is 1 and n mod 100 is not 11%{actors} vam je poslalo poruku.
fewThis plural form is used for numbers like: n mod 10 in 2..4 and n mod 100 not in 12..14%{actors} vam je poslalo poruku.
manyThis plural form is used for numbers like: n mod 10 is 0 or n mod 10 in 5..9 or n mod 100 in 11..14%{actors} vam je poslalo poruku.
otherThis plural form is used for numbers like: everything else%{actors} su vam poslali poruku.