The International Simutrans Forum

 

Author Topic: Text upload -- " "(space) at first  (Read 476 times)

0 Members and 1 Guest are viewing this topic.

Offline Phystam jp

  • *
  • Posts: 259
  • Pak256.Ex developer
  • Languages: JP, EN, EO
Text upload -- " "(space) at first
« on: September 17, 2019, 08:29:53 PM »
Hi,

I found an error. When the " "(space) letter is at first of the string, it is treated as nothing.
This selfish act may cause several errors.

--

ps

Text exporter works presisely. The problem is only in Object guide.

Online makie de

  • *
  • Posts: 97
    • Homepage PAK128-German
  • Languages: DE
Re: Text upload -- " "(space) at first
« Reply #1 on: September 18, 2019, 08:13:33 AM »
object name or translation ?

can you give me a example?

if object name, it is only allowed if obj= is one  in this table

$object_text[0] = 'message_text';
$object_text[1] = 'button_text';
$object_text[2] = 'climates_text';
$object_text[3] = 'error_text';
$object_text[4] = 'help_text';
$object_text[5] = 'menu_text';
$object_text[6] = 'program_text';
$object_text[7] = 'record_text';
$object_text[8] = 'ki_text';
$object_text[9] = 'help_file';
$object_text[10] = 'dummy_info';
$object_text[11] = 'tilecutter';
$object_text[12] = 'translator';
$object_text[13] = 'win_installer';
$object_text[14] = 'onlinedat';
$object_text[15] = 'unnecessary_text';
$object_text[16] = 'serverlist';
$object_text[17] = 'webpage';
$object_text[18] = 'scenario_text';
$object_text[19] = 'scenario_textfile';
$object_text[20] = 'squirrel_text';
$object_text[21] = 'web_site';