The International Simutrans Forum

 

Author Topic: Translations are not updated when changing languages  (Read 912 times)

0 Members and 1 Guest are viewing this topic.

Offline Yona-TYT

  • Devotee
  • *
  • Posts: 1822
    • Simutrans-BLOG
  • Languages: ES
Translations are not updated when changing languages
« on: May 28, 2020, 08:24:05 AM »

I have noticed that when changing the language the translations that come from "tab" files (like es.tab) do not update, they only do it after reloading the scenario.

Offline Yona-TYT

  • Devotee
  • *
  • Posts: 1822
    • Simutrans-BLOG
  • Languages: ES
Re: Translations are not updated when changing languages
« Reply #1 on: July 07, 2020, 04:27:24 PM »
Can you replicate this?
This appears to affect links.

To replicate load the scenario with the language in English, once loaded change the language to Spanish.script:
https://www.mediafire.com/file/kyxbetzfi26ph6j/tutorial_pak64v-1.4.00-test-4.zip/file
You will notice the following:
The text of links "This is a town center, This is a factory, This is a station, This is a link" should change to the Spanish language.

If you load the scenario again "keeping the language in Spanish" the texts appear correctly translated.

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4944
  • Languages: EN, DE, AT
Re: Translations are not updated when changing languages
« Reply #2 on: July 09, 2020, 06:33:18 PM »
It seems that the script does not recompute some strings. In these get_*_text all strings need to be recomputed.

Offline Yona-TYT

  • Devotee
  • *
  • Posts: 1822
    • Simutrans-BLOG
  • Languages: ES
Re: Translations are not updated when changing languages
« Reply #3 on: July 09, 2020, 08:34:39 PM »
I suppose it is a problem with the script? In this case I am not sure how to solve.