• Resolved Amr Ali

    (@amr3li)


    Hello

    Dimension units (CM, M and MM) and weight units (G and KG) are not translated on product additional information tab. Regardless which theme is in use.

    Its a single (RTL – Arabic) website. And official WooCommerce arabic translation files (.po, .mo & .json) are downloaded and showing the correct translation everywhere except (Units of measurments). I doubted my self and seached everywhere for answer, Could not find any!

    Using Twenty Twelve theme and here is a screenshot of the issue Screenshot

    Your help is much appreciated

    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Amr Ali

    (@amr3li)

    I tried moving translation files from default location woocommerce/i18n/languages/ to recommended custom location wp-content/languages/woocommerce, Still not working.

    Installed Loco Translation and used Loco custom location wp-content/languages/loco/plugins, Still not working.

    Completely cleared browser cache files everytime I made a chage, Still not working.

    And the issue is not limited to RTL or arabic. Units of measurements translation not showing in other languages as well. I tried changing site language to English then edited the english translation for few strings, Translation worked for everything except these strings (m, mm, cm, in, yd) & (kg, g, lbs, oz), they didnt show my translation.

    Checked the code in class-wc-settings-products.php (line: 356) to narrow down the issue but I could not.

    Thank you

    I couldn’t get the dimensions to translate, but adding a custom unit of measurement did the job. This page shows how:
    https://docs.woocommerce.com/document/woocommerce-measurement-price-calculator-developer-documentation/

    The example uses “league’ which is 3 miles, but you can use your own string. Then choose your custom unit at Settings > Product tab.

    Your function goes in functions.php for your child theme.

    Thread Starter Amr Ali

    (@amr3li)

    Thank you for confirming this issue.

    I am already translating strings with code snippets, I just dont like workaroud.
    But will try adding custom units and see how it goes.

    thank you

    Plugin Support Thu P. a11n

    (@thup90)

    Hi there,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Units of measurments not translated’ is closed to new replies.