The International Simutrans Forum

Development => Translation and Help Texts => Topic started by: jamespetts on February 15, 2017, 11:53:22 PM

Title: Base texts for Simutrans-Extended
Post by: jamespetts 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 (http://simutranslator.simutrans-germany.com/) 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.
Title: Re: Base texts for Simutrans-Extended
Post by: Phystam 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.
Title: Re: Base texts for Simutrans-Extended
Post by: jamespetts 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.
Title: Re: Base texts for Simutrans-Extended
Post by: Frank 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.
Title: Re: Base texts for Simutrans-Extended
Post by: Phystam 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 :)
Title: Re: Base texts for Simutrans-Extended
Post by: Frank on February 24, 2018, 05:39:56 PM
Passengers %d %c, %d %c, %d no route, %d too slow (https://simutrans-germany.com/translator/script/edit.php?obj_id=39982&index=2)

in Standard this strings

QuotePassengers %d %c, %d %c, %d no route      
Passengers %d %s, %d %s, %d no route
Title: Re: Base texts for Simutrans-Extended
Post by: jamespetts 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?
Title: Re: Base texts for Simutrans-Extended
Post by: Phystam 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 ??? )
Title: Re: Base texts for Simutrans-Extended
Post by: Frank on February 24, 2018, 06:18:13 PM
%c <-> %s

the text exists but does not work
Title: Re: Base texts for Simutrans-Extended
Post by: jamespetts 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?
Title: Re: Base texts for Simutrans-Extended
Post by: Phystam 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

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.
Title: Re: Base texts for Simutrans-Extended
Post by: jamespetts 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:


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.
Title: Re: Base texts for Simutrans-Extended
Post by: Phystam 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.


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.
Title: Re: Base texts for Simutrans-Extended
Post by: Frank on February 25, 2018, 06:14:34 AM
Quote from: Phystam on February 25, 2018, 04:06:44 AM
....
--- and also, I found additional missing texts.


....
Max. weight:
...

please add them...
....

mmh, it exists \nMax. weight: (https://simutrans-germany.com/translator/script/edit.php?obj_id=39925&index=0)

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

If the difference is only the \n, then you should consider putting that in the code.
Title: Re: Base texts for Simutrans-Extended
Post by: Phystam on February 25, 2018, 08:22:06 AM
misplaced:
Show in ticker -> Show in the ticker

ADD:
Credit limit -> Credit Limit

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
Title: Re: Base texts for Simutrans-Extended
Post by: jamespetts 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.
Title: Re: Base texts for Simutrans-Extended
Post by: Phystam 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.
Title: Re: Base texts for Simutrans-Extended
Post by: makie on February 25, 2018, 03:01:05 PM
Quote from: jamespetts 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:


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.   
Title: Re: Base texts for Simutrans-Extended
Post by: jamespetts 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.
Title: Re: Base texts for Simutrans-Extended
Post by: Phystam 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.
Title: Re: Base texts for Simutrans-Extended
Post by: makie on February 25, 2018, 04:18:03 PM
Quote from: jamespetts 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.
in Object Browser or in Object Edit
(http://makie.de/Screenshot_20180225_165722.png)
Title: Re: Base texts for Simutrans-Extended
Post by: jamespetts 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.
Title: Re: Base texts for Simutrans-Extended
Post by: Frank on February 25, 2018, 11:42:47 PM
Quote from: jamespetts on February 25, 2018, 09:30:45 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
Title: Re: Base texts for Simutrans-Extended
Post by: makie on February 26, 2018, 09:24:18 AM
Quote from: jamespetts on February 25, 2018, 09:30:45 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.
Because leading "\"   \nMAY USE:
it is Position 20 at the first page
Title: Re: Base texts for Simutrans-Extended
Post by: Phystam on February 26, 2018, 10:08:54 AM
James, thank you for the additions.

I found further missing texts, listed below:

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
Title: Re: Base texts for Simutrans-Extended
Post by: jamespetts on March 02, 2018, 06:33:07 PM
Splendid, thank you for that: I have now uploaded the relevant texts.
Title: Re: Base texts for Simutrans-Extended
Post by: Phystam 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.
Title: Re: Base texts for Simutrans-Extended
Post by: jamespetts on March 09, 2018, 12:38:44 AM
Done - thank you very much for your work on this.