Author Topic: Error traslate wc-forecast.php  (Read 569 times)

0 Members and 1 Guest are viewing this topic.

Offline CarlosLSev

  • Member
  • *
  • Posts: 28
Error traslate wc-forecast.php
« on: February 21, 2021, 04:35:09 AM »
Hi I use WC-forecast.php as I forecast weather. There are single untranslated words. I have tried to add in the following files  plaintext-parser-lang-es.txt language-es.txt and
/AWLang/plaintext-parser-lang-es.txt Putting it like this
lang | Showers | Showers | and so langlookup | Showers | Showers | And they don't translate My language is Spanish
Hello me!

Enviado desde mi M2007J20CG mediante Tapatalk

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 8716
  • Saratoga, CA, USA Weather - free PHP scripts
Re: Error traslate wc-forecast.php
« Reply #1 on: February 21, 2021, 03:53:29 PM »
For the weather conditions description, the translation needs to be in language-es.txt after the 'conditions|begin||' marker like
Code: [Select]
langlookup|Light rain|Lluvia débil|

The plaintext-parser-lang-es.txt is not used here -- it is only used if you are using WXSIM for forecasts.

The Spanish text for the forecasts in WC-forecast.php is provided by TWC/WU via the API.  Further translation is not available using the template's language-es.txt .. sorry.

Ken True/Saratoga, CA, USA main site:
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline CarlosLSev

  • Member
  • *
  • Posts: 28
Re: Error traslate wc-forecast.php
« Reply #2 on: February 21, 2021, 04:30:30 PM »
Thank you, then I can do little. by the way congratulations for your templates saratoga.