• Resolved lesi2000

    (@lesi2000)


    Hi everyone

    I am trying to manually translate a string from the woocomerce pot. file. i am using po edite and i downloaded it from the wooocmmerce page. I am trying to change this string:

    https://prnt.sc/wOBpmD8jdWwp

    Which in english corresponds to “subtotal:”. It is already translated in Bulgarian (My target labuage) however i want the translation to be different. Thats why i just translated the pot. file from the woocommerce translation page (i found the string, and translated only it. )

    https://prnt.sc/Y8LrBSpmIJx3

    However even after i uploaded the translation this string didnt change. What am i doing worng?

    For the record i renamed the files woocommerce-bg_BG (.po .mo) and i uploaded them in languages/plugins following the documentation.

    • This topic was modified 9 months ago by lesi2000.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support RK a11n

    (@riaanknoetze)

    Hi @lesi2000

    When it comes to translations, the easiest solution would be to translate the strings directly on your site using the Loco Translate plugin. This allows you to translate strings immediately without needing to upload any .po/.mo files as these are created automatically.

    If, however, you’d like to continue using POEdit for translations, you can follow these steps:

    1. Open the WooCommerce.pot file in POEdit
    2. Click on “Create new translation” and select Bulgarian from the dropdown list
    3. Locate all instances of subtotal: in the .pot file (there might be more than one) and add your translation.
    4. Using an FTP tool (e.g. FileZilla for Windows, or Transmit for Mac) and upload the generated .po / .mo files (the .pot file won’t do anything) to /public/wp-content/languages/plugins/.

    Hope it helps!

    Thread Starter lesi2000

    (@lesi2000)

    I think i do exactly this. However:

    1. i download the bulgarian tranlsation (.po) from here: https://translate.www.ads-software.com/locale/bg/default/wp-plugins/woocommerce/
    2. I change the string i want https://prnt.sc/Y8LrBSpmIJx3
    3. i upload it here /public/wp-content/languages/plugins/ (together with the .mo file). I call them Woocommerce-bg_BG.po (+ .mo)
    4. And it is not wokring….

    So i have a few questions regrading your method

    I want to keep other translations made by the Bulgarian team. If i translate the Woo Commerce pot file only the string i want, how the other Bulgarian string will appear?

    • This reply was modified 9 months ago by lesi2000.
    Plugin Support RK a11n

    (@riaanknoetze)

    It does sound like you’re following the correct procedure so far. To troubleshoot this further:

    • Are you sure that the .pot file being used in the Bulgarian community translation, is the latest version? I often seen that Bulgarian strings are shown as 100% translated but the underlying template is then outdated (this is something that can be fixed/updated by using the “Sync” button on Loco Translate)
    • Are you sure that you’re translatd all instances of “Subtotal”? I’m asking as when I look at the .pot template file using Loco Translate on my testing site, there are 3+ entries for the same word (albeit being used in different areas in WooCommerce)
    • Have you ruled out any caching plugins on the front-end? It could simply be that the strings have been translated but the HTML being rendered on the front-end are still outdated/cached.
    Thread Starter lesi2000

    (@lesi2000)

    Thank you for your reply.

    Just for the record i downloaded .po file, not .pot here is the screenshot of the file:

    https://prnt.sc/7akIIXVBdMKR

    https://prnt.sc/47MFXJxuSRxD

    does this matter? As far as i see is the latest release.

    and also another interesting thing is that in this file i see only 1 “Subtotal:” and not 3+ entries as you said. I have no idea why?

    Plugin Support omarfpg a11n

    (@omarfpg)

    Hi @lesi2000,

    Have you tried syncing the file as mentioned by my colleague?

    Alternatively, you can try using the “Say What?” plugin to quickly edit strings in plugins or themes for customization or translation purposes, you can learn more about it here:?https://woocommerce.com/document/woocommerce-localization/#translate-or-replace-default-text.

    Additionally, if you find a translation is missing or isn’t accurate in your language, you can contribute to the translation for it by following this guide! https://woocommerce.com/document/woocommerce-localization/#translating-woocommerce-into-your-language.

    Finally, please keep in mind that translations for WooCommerce are done by the community—WooCommerce.com does not maintain them directly.

    I hope this helps!
    -OP

    Thread Starter lesi2000

    (@lesi2000)

    Hi and thank you for your reply

    Have you tried?syncing?the file as mentioned by my colleague?

    as far as i see this is part of the loco translate documentation and i am not using the plugin. In fact I would like to have as less plugins as possible on this site, and that’s why i would like to translate it manually uploading files. to the language folder.

    Additionally, if you find a translation is missing or isn’t accurate in your language, you can contribute to the translation for it by following this guide!?https://woocommerce.com/document/woocommerce-localization/#translating-woocommerce-into-your-language.

    The translation is just fine, but it is not suitable for my needs.

    Finally, please keep in mind that translations for WooCommerce are done by the community—WooCommerce.com does not maintain them directly.

    The community did great! I appreciate all translations they did. All i want to do is manually translate one string.


    So do you gave any ideas where i may be doing wrong? Do i need to upload to po mo files in another directory?

    anastas10s

    (@anastas10s)

    Thank you for reaching back, clarifying things further @lesi2000 .

    Best to proceed by perusing the official documentation on translating WooCommerce, if the chance to do so did not appear already; linked here, for your convenience.

    It includes various options one can take, to suit their particular site’s needs.

    I trust that points you in the right direction, but if you have more questions, let us know.

    We’re happy to help.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘manually translating some text strings – no way’ is closed to new replies.