• Resolved rkwpu

    (@rkwpu)


    Hi

    Do i understand correctly that under directory /usr/local/www/domain.com/http/wp-content/plugins/owm-weather/lang is possible to add custom language? I have new language with poedit but it does not show up in menu as option to choose. Also if i edit some other language file then custom translation does not show up. Still takes somewhere else. OWM? Can you clarify development process for language files please

Viewing 8 replies - 16 through 23 (of 23 total)
  • Plugin Author Uwe Jacobs

    (@uwejacobs)

    Thanks for the screenshot, that was helpful. I created a new version that should address all your issues.

    The phrase “scattered clouds” comes from OpenWeatherMap. Since they don’t offer the Estonian language, there was no way for you to translate them. I pulled the roughly 50 different condition descriptions now into OWM Weather so that you can translate them.

    I also found quite a few hardcoded labels and day names in OWM Weather which I changed so they can be translated. Keep in mind that some of the generic labels like “Wind” or “Humidity” will be several times on the po file; make sure to translate them all.

    Please let me know if that works now for you.

    Thread Starter rkwpu

    (@rkwpu)

    Hi

    Here is what i tried:

    * Translated from owm-weather.po
    * Set translation file language to Estonian (et)
    * Set language in WP to Eesti
    * Tried first with filenames owm-weather-et_EE.po/owm-weather-et_EE.mo
    * Then tried owm-weather-et.po/owm-weather-et.mo
    * Then tried to keep file named owm-weather.po/owm-weather.mo

    None of these methods did give translated estonian final OWM weather page 🙁

    PS! Thank you for your work so far. When this gets fixed i will donate more

    • This reply was modified 4 years, 3 months ago by rkwpu.
    Plugin Author Uwe Jacobs

    (@uwejacobs)

    The steps look all correct (it should be ‘et’, not ‘et-EE’).

    I started an Estonian translation file with PoEdit Pro and added it to the plugin. The automatic pre-translation hit all phrases that appear on the output. When I set the site language to Eesti, all translations were showing up, see https://imgur.com/2y10Mrt.

    Please update to version 5.1.5 and set your site language to Eesti. Then generate a weather output with the default or card templates.

    Thread Starter rkwpu

    (@rkwpu)

    Hi

    Now works. 🙂 As regular file name. Thank you very, very much!

    Thread Starter rkwpu

    (@rkwpu)

    Hi

    Just few things more. I have translated all strings but these wont translate (no effect).. I mean these are translated but no effect

    Temperature
    Cloud Cover
    Gust
    Min Temperature
    Max Temperature

    https://ibb.co/NYTbFh6

    Plugin Author Uwe Jacobs

    (@uwejacobs)

    I created version 5.1.6 where everything in the Estonian translation that’s visible on the frontend is now covered.

    Please note that an update will overwrite your version under wp-content/plugins/owm-weather/lang/. It would be a good idea to move your .po/.mo files to wp-content/languages/plugins before you update to 5.1.6. That might have been the reason why your translations for Temperature, Cloud Cover and so on disappeared.

    Thread Starter rkwpu

    (@rkwpu)

    Hi

    Now it is working. Thank you very much!

    Plugin Author Uwe Jacobs

    (@uwejacobs)

    Great. I gladly add your translation to the plugin should you make any additions or corrections.

    Thank you very much for your generous donation to the plugin. Much appreciated!

Viewing 8 replies - 16 through 23 (of 23 total)

The topic ‘Custom language’ is closed to new replies.