Thread Locked This thread is locked - replies are not allowed.



Permlink Replies: 5 - Pages: 1 - Last Post: 23 Jan 24, 14:45 Last Post By: brango
brango

Posts: 20
Registered: 15-Aug-2017
Tiger 5.1.0 - plural forms
Posted: 21 Nov 23, 06:20
Attachment plural-forms.patch (98.1 KB)
In some languages (e.g. the Slavic ones) there are the different plural forms for the counts less then 5 and greater or equal 5.

Example:
English
1 video
2 videos
6 videos

Slovak
1 video
2 videĆ”
6 videĆ­

I have adapted the skin JS files and text files to distinguish these plural forms and I have tested it on my site. See the attached patch file.


Please, consider to merge this patch.

Laza

Posts: 1,500
Registered: 6-Sep-2005
Re: Tiger 5.1.0 - plural forms
Posted: 21 Nov 23, 16:59   in response to: brango in response to: brango
Thanks, I wasn't aware there are languages that have a middle version between plural and singular.
brango

Posts: 20
Registered: 15-Aug-2017
Re: Tiger 5.1.0 - plural forms
Posted: 23 Jan 24, 11:01   in response to: Laza in response to: Laza
Hi,

is there a plan to merge these changes to the skin. Otherwise I have to patch the installation each time the skin or the jAlbum is updated.

Best regards,
Braninslav
Laza

Posts: 1,500
Registered: 6-Sep-2005
Re: Tiger 5.1.0 - plural forms
Posted: 23 Jan 24, 14:16   in response to: brango in response to: brango
I don't like that with this patch all translators will have to add the 2-4 plurals, even though no such exists in most languages. I will see how this can be improved.
JeffTucker

Posts: 8,297
Registered: 31-Jan-2006
Re: Tiger 5.1.0 - plural forms
Posted: 23 Jan 24, 14:31   in response to: Laza in response to: Laza
1 vid
2 vid
6 vid

:)
brango

Posts: 20
Registered: 15-Aug-2017
Re: Tiger 5.1.0 - plural forms
Posted: 23 Jan 24, 14:45   in response to: Laza in response to: Laza
Maybe it would be possible to use the same mechanism as it is used in the gettext. There it is possible to define number of plurals:
https://www.gnu.org/software/gettext/manual/html_node/Plural-forms.html
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums