-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regular expressions - range. #635
Comments
Those are substitutions, not regular expressions. |
You might need to use |
So if I want to apply this to all three options it would look like this? "А" "B" "D" |
"А" "B" |
Thanks for your help. |
Briefly:
I want a particular translation to apply to a particular number
Detail:
Almost every word can have a plural applied to it. This changes the ending. There are usually two variants “Day”, “Days”. In English, usually only an “S” is added at the end of the word. (I'm not very good at English and I don't know all the subtleties yet).
But in Russian there can be several endings depending on the dependent word. “1 день” “2 дня” ”5 дней”
What I want to do:
Let's say in regular expressions there are digits from 1 to 20. I want to make a range of digits to which one of the given translations will be applied.
For example
The translation “A” will be applied to digit 1.
To digits from 2→4 the translation “B” will be applied.
To digits 5→20 the translation “D”.
“А” = 1
デッキあと{{A}}枚必要 同カード{{B}}枚まで=We need another {{A}} card. Stack of cards {{B}}
“В” = 2→4
デッキあと{{A}}枚必要 同カード{{B}}枚まで=Want more {{A}} cardS. Stack of cards {{B}}
“Д” = 5→20
デッキあと{{A}}枚必要 同カード{{B}}枚まで=Need more {{A}} cardS. Stack of cards {{B}}
{{A}} and {{B}} is an included regular expression to the numbers so as not to duplicate the translation. You already know that.
I will duplicate the examples in Russian so that you can notice the difference in the endings.
"А" = 1
デッキあと{{A}}枚必要 同カード{{B}}枚まで=Нужно еще {{A}} картА. Стак карт {{B}}
"В" = 2→4
デッキあと{{A}}枚必要 同カード{{B}}枚まで=Нужно еще {{A}} картЫ. Стак карт {{B}}
"Д" = 5→20
デッキあと{{A}}枚必要 同カード{{B}}枚まで=Нужно еще {{A}} карт. Стак карт {{B}}
The text was updated successfully, but these errors were encountered: