Questions about translations and pluralization

20 views
Skip to first unread message

Константин Комков

unread,
Jul 30, 2019, 8:04:36 AM7/30/19
to web...@googlegroups.com
1. If I want use plural for book without numbers what I need to do?
I want to write word - books.

2. If I write
T("You have %s %%{book}", symbols=10)
I get: You have 10 books
If I want to change language, like 
T.force('ru')
I get: 'You have 10 book'. I want to get: 'У меня есть 10 книг'
What I need to write in laguages/ru.py?

3. If I add two words in laguages/ru.py, like:
'add':'добавить',
'word':'слово',
I wrote:
T.force('ru')
T
("add word")
I got: 'add word'
If I write:
T("add")+" "+T("word")
I get: 'добавить слово'. Are there way to translate both words in time?

4. If I want to get uppercase letter I tried use something like that:
%%{[<modifier>]<word>[<parameter>]}
but nothing work. How can I get: 'Add' or 'Добавить'?

Thank you!





Reply all
Reply to author
Forward
0 new messages