The International Simutrans Forum

 

Author Topic: Problems with help text encodings  (Read 3437 times)

0 Members and 1 Guest are viewing this topic.

Offline sanna

  • *
  • Posts: 234
Problems with help text encodings
« on: April 16, 2009, 03:28:49 PM »
I am having some problems with the character encoding of the help texts. So far I have translated only two of them (airtools.txt and depot.txt). Both of them I translated by downloading the English help texts, and using an offline editor, making sure I was using utf-8. I then manually copy-pasted the content into the edit box at SimuTranslator and saved. The help texts show up just fine at SimuTranslator, but when I want to test them in game I am having difficulties.

First of all, I cannot "redownload" them from SimuTranslator. If I try to export the help texts for Swedish I get:
Code: [Select]
Generated file airtools.txt
Generated file depot.txt
Creating the Package
zip error: Nothing to do! (try: zip -6 -r -q /tmp/translator/sv_help_files.zip . -i *)

Therefore I resorted to using the text files I originally worked on, created a /usr/share/games/simutrans/text/sv/ directory and copied my two files into and restarted SimuTrans. And the help texts come out mangled char encoding-wise....åäö are corrupted. I would very much appreciate advise on how to proceed before continuing with the remaining help texts.

I attach the two files I have translated.

/Sanna

Offline vilvoh

  • One of the good guys
  • Administrator (Inactive)
  • *
  • Posts: 4504
  • I'm the constructor, the architect
    • Escala real
Re: Problems with help text encodings
« Reply #1 on: April 16, 2009, 03:36:39 PM »
I've found this quote from the archive (link)
Quote
.. Do not save the help file as UTF-8, save it as Latin!

Offline Frank

  • Inactive/Retired
  • *
  • Posts: 1431
  • Languages: DE
Re: Problems with help text encodings
« Reply #2 on: April 16, 2009, 03:41:34 PM »
sorry, I have not time at the moment for this
______________________________

input in Translator is utf-8

for export the text convert to ISO-8859-1 for sv

http://simutrans-germany.com/translator/data/tab/sv_help_files.zip
« Last Edit: April 16, 2009, 04:01:50 PM by Frank »

Offline sanna

  • *
  • Posts: 234
Re: Problems with help text encodings
« Reply #3 on: April 16, 2009, 04:03:39 PM »
Thank you! That worked like a charm.

I've found this quote from the archive (link)