My english is bad, and I'll write in Russian in this thread.
Перевод НЕ машинный, но переводила девочка совершенно не знающая что переводит - возможны смысловые неточности. Сам я буду исправлять совсем в другой плоскости(на сленг) , поэтому вам не подойдет. Прошу если вы внесли исправления, улучшения - отправьте исправленный вариант мне в личку и я проверив его обновлю тут. Спасибо за участие!
Hi!
I am new to this. Just loaded the module and trying to play around with it. Looks great! Need to figure out now if I can easily make a good use of it on my site.
My site is 4-lingual, including Russian. I am native Russian too.
I was wondering if someone is still taking care of the Russian translation? Does it have to be started from scratch?
Well, at any rate, please let me know what are the outstanding pieces and how can I contribute.
Slowly, but surely I am confident that we can add the Russian to your list of languages before long.
Best regards,
Mike
Thanks, Steven!
I will do exactly that - start translating while trying to integrate your module on my site.
Will let you know if I hit a roadblock or something...
Mike
Here is one thing, Steven. Not overly important, but still.
In order for translation to look good and not like machine translated, the words following the cardinal numbers have different forms in Russian. In English it's just "one day" or "many dayS".
In Russian it differs for "one", "two", "five" etc. In this example there are 3 different word forms used.
I was wondering is it too much work to make the translation module just slightly more flexible when it comes to number/noun combinations?
Regards,
Mike
I'm very happy to make any changes to improve the translations.
Just to clarify, are you talking about the comment date (17 hours ago, 2 days ago etc)?
If so it already seems quite flexible to me. If you want to remove the word 'ago' at the end, you could just change that to an empty value ''. Then with all of the values below it e.g. '%d days' you can move the '%d' bit if you need to. For example 'days %d'.
Hi, Steven!
Yes, this is what I mean, you got it right.
There are no issues with "ago".
But in Russian there are three different declension forms for words like "day", "year", "hour", "minute" etc.
They go with the number ranges like this:
1) 1, 21, nnn1
2) 2, 3, 4, 22, 23, 24, nnn2, nnn3, nnn4
3) 5, 6, 7, 8, 9, 10, 11, 12 ... 20, 25...30, 35...40, nnn5...nnn0
Not sure about other languages, but this is how it is in Russian.
The order of "%d days" is good, and yes, I understand that I can change it if needed.
I wouldn't mind writing the logic for this case myself, but I don't know where and if it's possible at all. If it is you can jut give me a pointer.
Thanks!
Commentics uses a jQuery plugin called Timeago to handle the dates. I had a look at their documentation about locales and they appear to have a good solution for the Russian language.
If you open /frontend/view/default/javascript/common.js and search for 'timeago' you should see this section:
It will need a bit of work to keep it dynamic so the user can still switch languages but it's a good starting point. I'll be able to revisit it in a few days if you have any issues.