Some selectordinal strings strings either throw an error
or are not recognized as ICU contructs at all
Some selectordinal strings strings either throw an error
or are not recognized as ICU contructs at all
Hello @grega_smf
I’m sorry to hear that you have problems with ICU recognition.
Your file looks different from the one we present as a sample in our Store:
Is there a chance you can share your file with me, so I can review the full structure and consult with developers in case of need?
php file, relevant content:
// Ordinal numbers.
$txt[‘ordinal’] = ‘{0, selectordinal,
one {#st}
two {#nd}
few {#rd}
other {#th}
}’;
// Interprets negative ordinal numbers as counting from the end. For example, “-2” becomes “2nd to last”.
$txt[‘ordinal_last’] = ‘{0, selectordinal,
=-1 {last}
one {{0, number, :: sign-never}st to last}
two {{0, number, :: sign-never}nd to last}
few {{0, number, :: sign-never}rd to last}
other {{0, number, :: sign-never}th to last}
}’;
// Interprets negative ordinal numbers as counting from the end, but spelling out values less than 10. For example, “-2” becomes “second to last”, but “-22” becomes “22nd to last”.
$txt[‘ordinal_spellout_last’] = ‘{0, selectordinal,
=-1 {last}
=-2 {second to last}
=-3 {third to last}
=-4 {fourth to last}
=-5 {fifth to last}
=-6 {sixth to last}
=-7 {seventh to last}
=-8 {eighth to last}
=-9 {ninth to last}
one {{0, number, :: sign-never}st to last}
two {{0, number, :: sign-never}nd to last}
few {{0, number, :: sign-never}rd to last}
other {{0, number, :: sign-never}th to last}
}’;
Hello @grega_smf
Thanks for the file. Kindly check my comments below:
Ordinal - not all languages support Ordinal, you can double-check it here:
Language Plural Rules
:: sign never - these things are not supported right now, but we have a task on the matter (36627), in case we receive more requests we will start working on the implementation.
Thank you for the explanation!
Hi,
Developer here from the software in question that @grega_smf is working with.
We are working on our next major version and we did a few things to our internationalization support to address issues we have with translations. One of them was to introduce ICU support, to handle things like plurars. I hope that in the future Crowdin can support :: sign-never
since it is in the ICU standard.
Is there a workaround we can use for now that handles this?
Hi @jdarwood007,
The task for improvement has already been created, but we are not sure when this will be implemented. I will also check with our developers for the workaround, and if there is any, I will let you know.
Meanwhile, wish you a lovely rest of the day!