The International Simutrans Forum

 

Author Topic: Base texts for Simutrans-Extended  (Read 2910 times)

0 Members and 1 Guest are viewing this topic.

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 17573
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Base texts for Simutrans-Extended
« on: February 15, 2017, 11:53:22 PM »
I have just uploaded a set of revised base texts for what is now Simutrans-Extended (formerly Simutrans-Experimental) to Simutranslator. If anyone would like to help with translating Simutrans-Extended, there are now up-to-date texts with which to do so: see Simutranslator to get started.

I hope to upload the updated pakset texts soon.

In the meantime, would anyone contributing to Simutrans-Extended's code please note that any new texts added to the game should in future be in a new base text .dat file (one for each set of new texts), as the old "base_texts_experimental-passenger-generation.dat", now having been uploaded, is deprecated. The plan is to keep Simutranslator more constantly up to date in future.

Finally, Frank, I should be very grateful if you could change references to "Exp" or "Experimental" on Simutranslator to "Extended" to reflect the recent change of name for this fork. Thank you very much.

Offline Phystam jp

  • *
  • Posts: 130
  • (=*^ω^*=)
  • Languages: JP, EN
Re: Base texts for Simutrans-Extended
« Reply #1 on: February 24, 2018, 12:00:19 PM »
Hello, James.

I almost finished translating the program_texts in Simutrans-Extended to Japanese.
However I found some missing texts in Simutranslator, and other texts in Simutranslator cannot be found in the game.
The attached image shows it is registered in Simutranslator but I cannot find in the game.

I will report some missing texts in Simutranslator later.

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 17573
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Base texts for Simutrans-Extended
« Reply #2 on: February 24, 2018, 01:40:08 PM »
Thank you very much for your work on Japanese translation: that is most helpful. Do let me know when you have uploaded the translations to Simutranslator so that I can distribute them with the standard distribution.

The texts above are in the game so far as I am aware (I have searched for most of them in the code, and all those that I have sought appear to be there so far), although I think that passenger_routing_packet_size is one of the texts in the advanced settings window that needs to use the actual string in simuconf.tab rather than a translation, and thus is not actually translated.

Do let me know of the missing texts, and I will add them to Simutranslator.

Offline Frank

  • *
  • Posts: 1408
  • Languages: DE
Re: Base texts for Simutrans-Extended
« Reply #3 on: February 24, 2018, 02:58:52 PM »
For Extended the texts of Standard and Extended are exported together.

This avoids duplicate texts. But it also leads to the need to include unnecessary text from Standard to Extended.

Offline Phystam jp

  • *
  • Posts: 130
  • (=*^ω^*=)
  • Languages: JP, EN
Re: Base texts for Simutrans-Extended
« Reply #4 on: February 24, 2018, 05:31:19 PM »
I listed the missing texts which I could find easily, in attached images.
Please add them into Simutranslator :)

Offline Frank

  • *
  • Posts: 1408
  • Languages: DE
Re: Base texts for Simutrans-Extended
« Reply #5 on: February 24, 2018, 05:39:56 PM »
Passengers %d %c, %d %c, %d no route, %d too slow

in Standard this strings

Quote
Passengers %d %c, %d %c, %d no route      
Passengers %d %s, %d %s, %d no route

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 17573
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Base texts for Simutrans-Extended
« Reply #6 on: February 24, 2018, 06:06:50 PM »
Thank you very much for that. In relation to the missing-3.jpg, this part is unchanged from Standard (Frank - is that what you were referring to?). Did you want to be able to translate the happy face or the comma?

Offline Phystam jp

  • *
  • Posts: 130
  • (=*^ω^*=)
  • Languages: JP, EN
Re: Base texts for Simutrans-Extended
« Reply #7 on: February 24, 2018, 06:15:29 PM »
@Frank,
"%d too slow" part is a unique text for Extended version. "Passengers %d %c, %d %c, %d no route" will not be applied.

@james,
happy face: no, I will not change the faces. ( too hard to translate ??? )

Offline Frank

  • *
  • Posts: 1408
  • Languages: DE
Re: Base texts for Simutrans-Extended
« Reply #8 on: February 24, 2018, 06:18:13 PM »
%c <-> %s

the text exists but does not work

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 17573
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Base texts for Simutrans-Extended
« Reply #9 on: February 24, 2018, 06:19:56 PM »
Phystam - can I clarify, in that case, what the upper arrow was intending to point to in the third image?

Offline Phystam jp

  • *
  • Posts: 130
  • (=*^ω^*=)
  • Languages: JP, EN
Re: Base texts for Simutrans-Extended
« Reply #10 on: February 24, 2018, 06:43:18 PM »
third image --- missing-2.JPG?
the upper arrow points "radius".

if you mentioned missing-3.JPG, the upper arrow shows
Code: [Select]
Passengers %d %s, %d %s, %d no route, %d too slow
Passengers %d %c, %d %c, %d no route, %d too slow


ADD: I attach 2 additional images.
Some texts are duplicated with previous one.
« Last Edit: February 24, 2018, 06:59:22 PM by Phystam »

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 17573
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Base texts for Simutrans-Extended
« Reply #11 on: February 25, 2018, 12:17:59 AM »
Thank you very much for that. I have now uploaded at least most of the missing texts to Simutranslator. I did get an error message, however:

Code: [Select]
database error false object in translations \nMAY USE: =\nMAY USE:

so that particular translation text may not have uploaded properly: I do not know what the problem is.

There were one or two that I had trouble finding (the cent symbol in particular: this should be consistent with Standard, however), and there is one instance where, instead of changing the translation text, I have changed the code to be able to use the existing translation.

I hope that this is helpful - thank you for identifying these, and for the Japanese translation.

Offline Phystam jp

  • *
  • Posts: 130
  • (=*^ω^*=)
  • Languages: JP, EN
Re: Base texts for Simutrans-Extended
« Reply #12 on: February 25, 2018, 04:06:44 AM »
Thank you, James!
It was very helpful to translate, and I have almost done.

--- and also, I found additional missing texts.

Code: [Select]
Serves line
reassigned_classes
Tractive force:
maint_incl_wayobj
runway_09/27
runway_not_reserved
Max. weight:
(speed_restricted_by_tunnel)
(speed_restricted_by_bridge)
(speed_restricted_by_wayobj)
(speed_restricted_by_city)
increased_max_weight
decreased_max_weight
increased_axle_load
decreased_axle_load
increased_speed
decreased_speed
increased_maintenance
new_way_is
%_stronger
%_weaker
please add them...

MAY USE: Too many spaces at the end of the text.
« Last Edit: February 25, 2018, 04:28:54 AM by Phystam »

Offline Frank

  • *
  • Posts: 1408
  • Languages: DE
Re: Base texts for Simutrans-Extended
« Reply #13 on: February 25, 2018, 06:14:34 AM »
....
--- and also, I found additional missing texts.

Code: [Select]
....
Max. weight:
...
please add them...
....

mmh, it exists \nMax. weight:

Max. weight: <-> \nMax. weight:

If the difference is only the \n, then you should consider putting that in the code.

Offline Phystam jp

  • *
  • Posts: 130
  • (=*^ω^*=)
  • Languages: JP, EN
Re: Base texts for Simutrans-Extended
« Reply #14 on: February 25, 2018, 08:22:06 AM »
misplaced:
Show in ticker -> Show in the ticker

ADD:
Credit limit -> Credit Limit
Code: [Select]
Solvency Limit
The maximum amount that can be borrowed without going bankrupt
Cost: %8s (%.2f$/km, %.2f$/month)\n
Power: %4d kW, %d kN\n
« Last Edit: February 25, 2018, 08:59:59 AM by Phystam »

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 17573
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Base texts for Simutrans-Extended
« Reply #15 on: February 25, 2018, 10:35:35 AM »
Thank you for your further feedback. Can I clarify one or two things; have you found instances in which there are both Max. weight: and \nMax. weight: in the text; likewise, are there instances of MAY USE: with and without following spaces? As to Credit Limit/Credit limit, is it that there are both in the code whereas there should be one, or is it that the translation texts have one version whereas the code has another version? The same applies to "Show in ticker" and  "Show in the ticker".

Thank you again.

Offline Phystam jp

  • *
  • Posts: 130
  • (=*^ω^*=)
  • Languages: JP, EN
Re: Base texts for Simutrans-Extended
« Reply #16 on: February 25, 2018, 01:02:05 PM »
1.
"Max. weight:" and "\nMax. weight:" -> I found "Max. weight:" in weg.cc, and "\nMax. weight:" cannot be found.
2.
"\nMAY USE: " -> This should have only 1 space after the text. It looks okay on Simutranslator site, however in exported file, it has 2 spaces. I do not know why.
3.
"Credit limit" and "Credit Limit" -> I found "Credit Limit" in gui/money_frame.cc, but "Credit limit" cannot be found. I think this is a typo.
4.
"Show in ticker" and "Show in the ticker" -> likewise, I think this is also a typo.

Offline makie

  • *
  • Posts: 23
  • Languages: DE
Re: Base texts for Simutrans-Extended
« Reply #17 on: February 25, 2018, 03:01:05 PM »
Thank you very much for that. I have now uploaded at least most of the missing texts to Simutranslator. I did get an error message, however:

Code: [Select]
database error false object in translations \nMAY USE: =\nMAY USE:

so that particular translation text may not have uploaded properly: I do not know what the problem is.

There were one or two that I had trouble finding (the cent symbol in particular: this should be consistent with Standard, however), and there is one instance where, instead of changing the translation text, I have changed the code to be able to use the existing translation.
There are two tables in the Datatbase of the Translator. The Error "database error false object in translations" say the name of the Object does not match in this two Table. (it should  always match)
The problem should be solved, but may be some entry's remain wrong in the database.
Can you try delete this entry and reload it? If it does not help, i have to insert a code to correct this problem silently.

Search for text that contain %.
In SQL-Search the % is a placeholder for any text. Because of this, search values containing % may have result not expected.   

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 17573
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Base texts for Simutrans-Extended
« Reply #18 on: February 25, 2018, 03:27:06 PM »
Splendid, thank you: I have now uploaded the new texts. I am not sure about the MAY USE issues. Makie - do you know how to delete entries? I did not even know that that was possible.

Offline Phystam jp

  • *
  • Posts: 130
  • (=*^ω^*=)
  • Languages: JP, EN
Re: Base texts for Simutrans-Extended
« Reply #19 on: February 25, 2018, 04:03:22 PM »
Thank you. I added the translation.
Did you add the texts listed in Reply #12 and Reply #14?
I cannot find them.
« Last Edit: February 25, 2018, 06:07:00 PM by Phystam »

Offline makie

  • *
  • Posts: 23
  • Languages: DE
Re: Base texts for Simutrans-Extended
« Reply #20 on: February 25, 2018, 04:18:03 PM »
Splendid, thank you: I have now uploaded the new texts. I am not sure about the MAY USE issues. Makie - do you know how to delete entries? I did not even know that that was possible.
in Object Browser or in Object Edit

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 17573
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Base texts for Simutrans-Extended
« Reply #21 on: February 25, 2018, 09:30:45 PM »
Phystam - I think that I missed your edits: my apologies. I have now uploaded the missing texts.

Makie - thank you for setting that out. Unfortunately, there are 598 pages of these objects, and I cannot within any reasonable time search all of them to find a single string.

Offline Frank

  • *
  • Posts: 1408
  • Languages: DE
Re: Base texts for Simutrans-Extended
« Reply #22 on: February 25, 2018, 11:42:47 PM »
...

Makie - thank you for setting that out. Unfortunately, there are 598 pages of these objects, and I cannot within any reasonable time search all of them to find a single string.

The list is sorted alphabetically.
And there are 598 objects not pages.

How many can be displayed on a page can be defined in their settings.


That's one of the reasons why the various text objects exist.

Quote
# text group = 'message_text'
# text group = 'button_text'
# text group = 'climates_text'
# text group = 'error_text'
# text group = 'help_text'
# text group = 'menu_text'
# text group = 'program_text'
# text group = 'record_text'
# text group = 'ki_text'
# text group = 'unnecessary_text'
# text group = 'squirrel_text'
#obj= <-> text group
#name= <-> object name
#note= <-> description for object

Offline makie

  • *
  • Posts: 23
  • Languages: DE
Re: Base texts for Simutrans-Extended
« Reply #23 on: February 26, 2018, 09:24:18 AM »
Makie - thank you for setting that out. Unfortunately, there are 598 pages of these objects, and I cannot within any reasonable time search all of them to find a single string.
Because leading "\"   \nMAY USE:
it is Position 20 at the first page

Offline Phystam jp

  • *
  • Posts: 130
  • (=*^ω^*=)
  • Languages: JP, EN
Re: Base texts for Simutrans-Extended
« Reply #24 on: February 26, 2018, 10:08:54 AM »
James, thank you for the additions.

I found further missing texts, listed below:
Code: [Select]
choose_sign
traffic_light
one_way_sign
private_way_sign
end_of_choose_sign
min_speed
underground_sign
maintenance
no_maintenance_costs
permitted_direction
current_clear_directions
Direction
Net ID: %u\n
Capacity: %u MW\n
Demand: %u MW\n
Generation: %u MW\n
Act. load: %u MW\n
Capacity: %u KW\n
Demand: %u KW\n
Generation: %u KW\n
Act. load: %u KW\n
Usage: %u %%
Cost: %8s %s

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 17573
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Base texts for Simutrans-Extended
« Reply #25 on: March 02, 2018, 06:33:07 PM »
Splendid, thank you for that: I have now uploaded the relevant texts.

Offline Phystam jp

  • *
  • Posts: 130
  • (=*^ω^*=)
  • Languages: JP, EN
Re: Base texts for Simutrans-Extended
« Reply #26 on: March 08, 2018, 02:46:55 PM »
Thank you for that. We have performed a test NS with the text file, and made sure that it is no problem. (except for "\nMAY USE: " problem)
So, can you incorporate the ja.tab file into the master branch?

-----------

If we find some missing texts, I will let you know them in this thread.

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 17573
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Base texts for Simutrans-Extended
« Reply #27 on: March 09, 2018, 12:38:44 AM »
Done - thank you very much for your work on this.