Event repetition dialog uses naive numbering and concatenation preventing quality translation

Bug #1405605 reported by Jernej Virag
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Maya
Fix Released
High
Corentin Noël

Bug Description

The event repetition dialog when creating new event uses hard-coded preset forms of number/noun combinations for singular and plural only. This prevents quality translation for languages which use more complex forms of pluralization.

Example: "Every... " field has only "1 week", "2+ weeks" form, where for example Slovenian and other slavic languages have to localize that to "1 teden", "2 tedna", "3 tedne", "4 tedne" ... etc. This is an issue for each of "Every ..." dialog fields. Using gettext pluralization utility when rendering the word would fix this issue.

The other issue is concatenating "Every <day>" strings when "Repeat monthly" is selected. Right now a string "Every" and day name is concatenated to form "Every Monday", "Every Tuesday", ... etc. However, in Slavic languages the form of word "Every" has to change depending on day name, e.g.: "Vsak ponedeljek", "Vsak torek", "Vsaka sreda", ... "Vsaka nedelja".

Converting concatenation into a single string from both words would make quality translation possible.

Related branches

Corentin Noël (tintou)
Changed in maya:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Corentin Noël (tintou)
Revision history for this message
Corentin Noël (tintou) wrote :

Oh my god, I wasn't aware that it was like this in Slavic languages.
I just pushed a change for both issues.
Translation template has been refreshed in rev. 714 and I've put the right parameters in the slovenian translation file that were not set at all (and so fallbacks to english-style)
(parameter extracted from https://www.gnu.org/software/gettext/manual/html_node/Plural-forms.html )

Revision history for this message
Jernej Virag (jernej) wrote :

Awesome, thanks for fast response :)

Welcome to terrible world of internationalisation -_-

Changed in maya:
status: Confirmed → In Progress
milestone: none → loki-beta1
lexsurkov (lexsurkov)
Changed in maya:
status: In Progress → Fix Released
Changed in maya:
milestone: loki-beta1 → loki-alpha1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.