Title: Localization
Last modified: August 24, 2016

---

# Localization

 *  Resolved [Natali_Z](https://wordpress.org/support/users/natali_z/)
 * (@natali_z)
 * [11 years ago](https://wordpress.org/support/topic/localization-85/)
 * I translated your plugin into Russian. But the translation was not quite correct,
   because the Russian language has a different system singular and plural forms:
 * 1 minute – 1 минутА
    2, 3, 4 minutes – 2, 3, 4 минутЫ 5, 6, 7, 8, 9, 10, 11 …
   20 minutes – 5, 6, 7, 8, 9, 10, 11 … 20 минут
 * 21 (31, 41, 51) minutes – 21 минута
    22, 23, 24 (and othes tens) minutes – 22,
   23, 24 минутЫ 25, 26, 27, 28, 29, 30 minutes – 25, 26, 27, 28, 29, 30 минут
 * Similar situation with seconds.
    If You fix that then – I’ll wait and correct
   the translation. If not, can you provide a link for downloading the files .PO
   and .MO.
 * [https://wordpress.org/plugins/simple-comment-editing/](https://wordpress.org/plugins/simple-comment-editing/)

Viewing 14 replies - 1 through 14 (of 14 total)

 *  Plugin Author [Ronald Huereca](https://wordpress.org/support/users/ronalfy/)
 * (@ronalfy)
 * [11 years ago](https://wordpress.org/support/topic/localization-85/#post-6131879)
 * Thank you so much for the translation.
 * If you can provide a link to your .po file, I can download it and test it out.
   There’s some work I need to do on my end to make sure it accounts for the various
   forms of plural.
 * I’ve included this link below mostly for my reference:
 * [http://wordpress.stackexchange.com/questions/33312/how-to-translate-plural-forms-for-themes-plugins-with-poedit](http://wordpress.stackexchange.com/questions/33312/how-to-translate-plural-forms-for-themes-plugins-with-poedit)
 * Thanks.
 *  Thread Starter [Natali_Z](https://wordpress.org/support/users/natali_z/)
 * (@natali_z)
 * [11 years ago](https://wordpress.org/support/topic/localization-85/#post-6131916)
 * [https://yadi.sk/d/DBQ768nYgdrgW](https://yadi.sk/d/DBQ768nYgdrgW)
 *  Plugin Author [Ronald Huereca](https://wordpress.org/support/users/ronalfy/)
 * (@ronalfy)
 * [11 years ago](https://wordpress.org/support/topic/localization-85/#post-6131934)
 * Thanks!
 * This one is going to be a tough one for me to figure out. If it’s just PHP, I
   can just use the _n function and all is well. But the time is in JavaScript. 
   I’ll ponder this one for a bit.
 *  Plugin Author [Ronald Huereca](https://wordpress.org/support/users/ronalfy/)
 * (@ronalfy)
 * [11 years ago](https://wordpress.org/support/topic/localization-85/#post-6131938)
 * Again for my reference. One person’s approach to localized Russian time variables.
 * [http://keith-wood.name/js/jquery.countdown-ru.js](http://keith-wood.name/js/jquery.countdown-ru.js)
 * [http://stackoverflow.com/questions/12121515/multiple-plural-forms-in-gettext](http://stackoverflow.com/questions/12121515/multiple-plural-forms-in-gettext)
 *  Thread Starter [Natali_Z](https://wordpress.org/support/users/natali_z/)
 * (@natali_z)
 * [11 years ago](https://wordpress.org/support/topic/localization-85/#post-6131942)
 * Yes, I understand. I’ll think about this also.
 *  Plugin Author [Ronald Huereca](https://wordpress.org/support/users/ronalfy/)
 * (@ronalfy)
 * [11 years ago](https://wordpress.org/support/topic/localization-85/#post-6131962)
 * Okay, I’ve thought about this for a bit, and I think I know what I need to do
   to make this happen.
 * A lot of countdown scripts with internationalization have a separate JS file 
   that “configures” this script. Which I guess is fine, if you have a pure JS solution,
   which this is not.
 * Since there’s a mixture of PHP and JS translations that need to happen, what 
   I can do is generate a JS look-up table for certain localizations that have languages
   with multiple plurality.
 * So for Russian, I can look at the locale, and if it’s in Russian, generate a 
   look-up table for the seconds/minutes. For 5 minutes, there’s just 5,4,3,2,1,
   and seconds (59-0). So for the default time, a look-up table for about roughly
   64 instances.
 * Where it gets weird is I have a filter that allows a person to set the number
   of minutes of the countdown timer. To ease all sanity, I’m going to limit this
   to 90 minutes. 90 minutes in itself is a bit excessive, so I think anything above
   that will be limited.
 * This will limit the look-up table to (my apologies if my math is wrong), 90 (
   minute variables) and 59 (second variables).
 * I’ll save these as a transient every to expire every 24 hours for the explicit
   locale. All these variables might seem a bit much, but when minimized using JSON,
   won’t take up that much space. It’ll be more PHP processing, which is the reason
   for the transient.
 * When one of the locales is detected, I use the look-up table, if not, then regular
   minutes vs seconds is used.
 * I think this is the best short-term solution, and should have the least impact
   on backwards compatibility, and shouldn’t require the translator any significant
   extra effort besides using poedit to add all the pluralities (a word I discovered
   today).
 * I’ll try to have something testable this weekend on GitHub. If you’d like to 
   help me test it, please let me know.
 *  Thread Starter [Natali_Z](https://wordpress.org/support/users/natali_z/)
 * (@natali_z)
 * [11 years ago](https://wordpress.org/support/topic/localization-85/#post-6132097)
 * It’s too difficult for me. I’m not friends with scripts, so wait for a turnkey
   solution. But if you need help to check something – I’m happy.
 *  Plugin Author [Ronald Huereca](https://wordpress.org/support/users/ronalfy/)
 * (@ronalfy)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/localization-85/#post-6132252)
 * I finally got around to adding this in. If you have time, can you test out the
   translation using this file? [https://github.com/ronalfy/simple-comment-editing/archive/master.zip](https://github.com/ronalfy/simple-comment-editing/archive/master.zip)
 * I also added the scrolling effect you wanted.
 *  Thread Starter [Natali_Z](https://wordpress.org/support/users/natali_z/)
 * (@natali_z)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/localization-85/#post-6132254)
 * Yes, with the translation all the problems resolved. Thank you very much. Fixed
   Russian translation files:
 * [https://yadi.sk/d/3KDesv8ThKAMH](https://yadi.sk/d/3KDesv8ThKAMH)
    [https://yadi.sk/d/YoCuHF2_hKADV](https://yadi.sk/d/YoCuHF2_hKADV)
 * With scroll effect turned out not the way I wanted. The page still jumps, but
   smoothly now. In any case it is better than it was. When jumps dramatically –
   it seems some errors or imperfections, and when smoothly – have effect. )) Thanks.
 *  Plugin Author [Ronald Huereca](https://wordpress.org/support/users/ronalfy/)
 * (@ronalfy)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/localization-85/#post-6132255)
 * Cool, thanks for checking!
 * I’ll try to push out a release with the updates tomorrow or Friday.
 *  Thread Starter [Natali_Z](https://wordpress.org/support/users/natali_z/)
 * (@natali_z)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/localization-85/#post-6132256)
 * Ok.)
 *  Plugin Author [Ronald Huereca](https://wordpress.org/support/users/ronalfy/)
 * (@ronalfy)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/localization-85/#post-6132257)
 * Should be resolved with version 1.3.0.
 *  Thread Starter [Natali_Z](https://wordpress.org/support/users/natali_z/)
 * (@natali_z)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/localization-85/#post-6132260)
 * Just in case, my name is Nataliya Zav’yalova (Наталия Завьялова). 🙂
 *  Plugin Author [Ronald Huereca](https://wordpress.org/support/users/ronalfy/)
 * (@ronalfy)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/localization-85/#post-6132261)
 * Ah, cool. I’ll fix the readme with your updated name in a few days. I need to
   try to get all of the other translations up to date.

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘Localization’ is closed to new replies.

 * ![](https://ps.w.org/simple-comment-editing/assets/icon-256x256.png?rev=2863851)
 * [Comment Edit Core - Simple Comment Editing](https://wordpress.org/plugins/simple-comment-editing/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-comment-editing/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-comment-editing/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-comment-editing/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-comment-editing/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-comment-editing/reviews/)

 * 14 replies
 * 2 participants
 * Last reply from: [Ronald Huereca](https://wordpress.org/support/users/ronalfy/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/localization-85/#post-6132261)
 * Status: resolved