How to translate numeric plurals

Hello, how do I translate this label: admin.issuesettings.statuses.workflows.count in JIRA Core, when there is used numeric choice for plural in this case? Basically, I do not understand the format used:

  • {0,choice,0#No associated workflows|1#1 associated workflow|1<{0,number} associated workflows}. 

Could you give me some hints, please, on how to formulate a version for Slovak, where we have these plural forms: 0, 5+ / 1 / 2-4 ?

Please, and also verify that there is not a bug in the translation string provided. Using it without modification as a translation corrupts the rendering, only "1 associated workflow" is printed then regardless of the count.

Note: the string can be found in Administration / Issues / Issue attributes / Statuses form in a particular column in the list of statuses.

Thank you very much in advance.

3 answers

1 accepted

0 votes
Accepted answer

The actual solution was this

{0,choice,0#Nepoužitý v žiadnom|1#1 priradený postup|2#{0,number} priradené postupy|5#{0,number} priradených postupov}

It is based on the documentation to the ChoiceFormat.

Can you try 

{0,choice,0#No associated workflows|1#1 associated workflow|1&lt;{0,number} associated workflows 2-4|5 associated workflows|5&lt;{0,number} workflows 5+}

Thank you, however, there are some problems with your answer:

  1. the section for 5 does not have any 5# prefix, so I assume it won't work
  2. I was also looking for the explanation of the format
  3. the question stated we have 3 plural forms, not 4 (5+ was meant 5,6,7,...)
  4. I tried and it did not work sad

Hi, Ľudovít, you are right, the section for 5 is missing #5, and the whole section is unnecessary. Maybe you could try the following

{0,choice,0#No associated workflows|1#1 associated workflow|1&lt;{0,number} associated workflows 2-4|4&lt;{0,number} workflows 5+}

The syntax used is the one for MessageFormat and in particular the ChoiceFormat clauses.


Hi Peter, thank you for the clarification. Unfortunately your suggested format did not work either. The ChoiceFormat link is also a bit misleading as it goes to some irrelevant anchor in the page. However, you have helped me to find the solution, so +1 for you smile

Kindest regards,

The only working solution for me so far is the following boilerplate...

{0,choice,0#Nepoužité v žiadnom|1#1 priradený|2#2 priradené|3#3 priradené|4#4 priradené|5&lt;{0,number} priradených}

Suggest an answer

Log in or Sign up to answer
Community showcase
Asked Thursday in Jira Ops

I'm John Allspaw, Ask Me Anything about incident analysis and postmortems

I'm John Allspaw, co-founder of   Adaptive Capacity Labs, where we help teams use their incidents to learn and improve. We bring research-driven methods and approaches to drive effective inciden...

5,446 views 21 17
View question

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you