Replies: 2 comments 3 replies
-
I don’t believe there’s any way to do that, there’s simply the “singular” and “plural” options. Is there a more verbose way to say “one or more than one” in Czech? It doesn’t need to be a word for word translation as long as the meaning is clear.
… On Mar 21, 2022, at 12:48 PM, Štěpán Kulík ***@***.***> wrote:
Hello, community,
I'm creating a Czech translation (cs) and I've encountered a limitation that I don't know how to solve. I'll show it with an example for better understanding.
In resource/lang/cs.json on line 2 there is a translation for the number of available updates. There is an option to translate singular and plural using |. I totally understand this, but the problem is in the Czech.
In Czech, it should correctly be like this
Singular
en - 1 update available
cs - 1 dostupná aktualizace
Plural
en - :count updates available
cs - :count dostupné aktualizace (if count 2 to 4)
cs - :count dostupných aktualizací (if count 5 to unlimited)
Perhaps the example makes it more understandable.
Is there any way to ensure that the correct translation is displayed based on the quantity in the plural?
For example:
{
"1 update available|:count updates available": "1 dostupná aktualizace|:count(2-4) dostupné aktualizace|:count(5-∞) dostupných aktualizací",
}
Thank you for your reply. And if anything is not clear to you, I will try to explain it better.
—
Reply to this email directly, view it on GitHub <#5587>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAAK5Q6WJJVTXXXZKYPCJLLVBCR7LANCNFSM5RIJC4NQ>.
You are receiving this because you are subscribed to this thread.
|
Beta Was this translation helpful? Give feedback.
1 reply
-
You're syntax was close! Something like this should work:
The docs for Laravel's range syntax can be found here: https://laravel.com/docs/9.x/localization#pluralization |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, community,
I'm creating a Czech translation (
cs
) and I've encountered a limitation that I don't know how to solve. I'll show it with an example for better understanding.In
resource/lang/cs.json
on line2
there is a translation for the number of available updates. There is an option to translate singular and plural using|.
I totally understand this, but the problem is in the Czech.In Czech, it should correctly be like this
Singular
en - 1 update available
cs - 1 dostupná aktualizace
Plural
en - :count updates available
cs - :count dostupné aktualizace (if count 2 to 4)
cs - :count dostupných aktualizací (if count 5 to unlimited)
Perhaps the example makes it more understandable.
Is there any way to ensure that the correct translation is displayed based on the quantity in the plural?
For example:
Thank you for your reply. And if anything is not clear to you, I will try to explain it better.
Beta Was this translation helpful? Give feedback.
All reactions