Title: Translation problem
Last modified: February 3, 2021

---

# Translation problem

 *  Resolved [krysiek](https://wordpress.org/support/users/krysiek/)
 * (@krysiek)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/translation-problem-162/)
 * Hello
    I have a problem with translation. I’m using Loco Translate. On the rating
   system i have change vote to “oceny” (polish) and votes to “ocen”. if the post/
   recipe has one vote it is shown properly (ex 5 z 1 oceny), but if there are more
   votes, it shows in english “5 z 2 votes”
 * ex with one vote: [https://wypiekibeaty.com.pl/ciasto-gora-lodowa/](https://wypiekibeaty.com.pl/ciasto-gora-lodowa/)
 * more votes: [https://wypiekibeaty.com.pl/szybkie-ciasto-czekoladowe/](https://wypiekibeaty.com.pl/szybkie-ciasto-czekoladowe/)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ftranslation-problem-162%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Brecht](https://wordpress.org/support/users/brechtvds/)
 * (@brechtvds)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/translation-problem-162/#post-13997653)
 * Can you send me a screenshot of how you have that set up in Loco Translate? It
   should allow for both translations there.
 *  Thread Starter [krysiek](https://wordpress.org/support/users/krysiek/)
 * (@krysiek)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/translation-problem-162/#post-13997801)
 * [https://pasteboard.co/JMET7LH.png](https://pasteboard.co/JMET7LH.png)
 *  Plugin Author [Brecht](https://wordpress.org/support/users/brechtvds/)
 * (@brechtvds)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/translation-problem-162/#post-13998130)
 * If you click on “vote” you should be able to set both the single and plural translation,
   like in this example:
    [https://pasteboard.co/JMFiQBX.png](https://pasteboard.co/JMFiQBX.png)
 *  Thread Starter [krysiek](https://wordpress.org/support/users/krysiek/)
 * (@krysiek)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/translation-problem-162/#post-13998241)
 * i thought this was the case here, but i don’t have single and plural form there
   🙁
    [https://pasteboard.co/JMFqbRC.png](https://pasteboard.co/JMFqbRC.png)
 * This is part of the source file
 * #: templates/admin/translations.php:349
    #: includes/public/deprecated/class-
   wprm-template-helper.php:232 #: includes/public/shortcodes/recipe/class-wprm-
   sc-rating.php:151 msgid “vote” msgstr “oceny” #: templates/admin/translations.
   php:350 msgid “votes” msgstr “ocen”
 *  Thread Starter [krysiek](https://wordpress.org/support/users/krysiek/)
 * (@krysiek)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/translation-problem-162/#post-13998276)
 * I have changed the code to this:
    #: templates/admin/translations.php:349 #: 
   includes/public/deprecated/class-wprm-template-helper.php:232 #: includes/public/
   shortcodes/recipe/class-wprm-sc-rating.php:151 msgid “vote” msgid_plural “votes”
   msgstr[0] “oceny” msgstr[1] “ocen”
 * #: templates/admin/translations.php:350
    msgid “votes” msgstr “ocen”
 * If shows now the singular and plural form in Loco, but still no change in the
   rating system 🙁
 *  Plugin Author [Brecht](https://wordpress.org/support/users/brechtvds/)
 * (@brechtvds)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/translation-problem-162/#post-13998296)
 * Instead of editing the files directly. Try using the “Sync” button in Loco Translate.
 * My screenshot is from Loco Translate as well, so it should definitely work.
 *  Thread Starter [krysiek](https://wordpress.org/support/users/krysiek/)
 * (@krysiek)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/translation-problem-162/#post-13998303)
 * i did use the sync many times 🙁 – it’s third day i’m trying to figure it out.
   
   even if i change it in the source file, after the sync i’m getting the previous
   version (no plural form) in the Loco
 *  Thread Starter [krysiek](https://wordpress.org/support/users/krysiek/)
 * (@krysiek)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/translation-problem-162/#post-13998314)
 * Vote is from that:
    includes/public/shortcodes/recipe/class-wprm-sc-rating.php:
   151 includes/public/deprecated/class-wprm-template-helper.php:232 templates/admin/
   translations.php:349
 * Votes only from
    templates/admin/translations.php:350
 * Update1:
    I have checked the other languages. Plural form is available, the entri
   is from non existing file : includes/public/class-wprm-template-helper.php:120
   [https://pasteboard.co/JMFGHkp.png](https://pasteboard.co/JMFGHkp.png)
 * When I clikc sync, the votes are added and singular/plural form is misisng.
    
   [https://pasteboard.co/JMFH2Yr.png](https://pasteboard.co/JMFH2Yr.png)
 * Edit2:
    Sync is breaking the translation file the entry for “votes” needs to 
   be like this
 * #: includes/public/class-wprm-template-helper.php:120
    msgid “vote” msgid_plural“
   votes” msgstr[0] “oceny” msgstr[1] “ocen” msgstr[2] “ocen”
 * When I have entered that to the translation file, it started to work!
    -  This reply was modified 5 years, 5 months ago by [krysiek](https://wordpress.org/support/users/krysiek/).
    -  This reply was modified 5 years, 5 months ago by [krysiek](https://wordpress.org/support/users/krysiek/).
    -  This reply was modified 5 years, 5 months ago by [krysiek](https://wordpress.org/support/users/krysiek/).
 *  Plugin Author [Brecht](https://wordpress.org/support/users/brechtvds/)
 * (@brechtvds)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/translation-problem-162/#post-13998756)
 * Happy to hear things are working now! Do let me know if you experience any further
   issues at all.
 *  [znork](https://wordpress.org/support/users/znork/)
 * (@znork)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/translation-problem-162/#post-14109947)
 * I cant get that to work 😀 I did solve the “Equipment” issue with Loco, but also
   Swedish does not have the option of plural, but German and Italian has. And maybe
   others, I did not check.
 * However, I have no clue how the previous user solved it, I don’t understand a
   thing. Any chance someone could make it little easier? 🙂
 * Thanks!
 *  Moderator [tobifjellner (Tor-Bjorn “Tobi” Fjellner)](https://wordpress.org/support/users/tobifjellner/)
 * (@tobifjellner)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/translation-problem-162/#post-14109998)
 * > but also Swedish does not have the option of plural,
 * You need to check in the po-file that the plural setting for Swedish is correct.
   I’ve never used Loco, but translate directly on translate.wordpress.org and in
   poedit, so I don’t know how to handle it specifically in Loco.
 * `"Plural-Forms: nplurals=2; plural=n != 1;\n"`

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

The topic ‘Translation problem’ is closed to new replies.

 * ![](https://ps.w.org/wp-recipe-maker/assets/icon-256x256.png?rev=2967063)
 * [WP Recipe Maker](https://wordpress.org/plugins/wp-recipe-maker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-recipe-maker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-recipe-maker/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-recipe-maker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-recipe-maker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-recipe-maker/reviews/)

 * 11 replies
 * 4 participants
 * Last reply from: [tobifjellner (Tor-Bjorn “Tobi” Fjellner)](https://wordpress.org/support/users/tobifjellner/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/translation-problem-162/#post-14109998)
 * Status: resolved