Elvas Tower: Translations: Unclear strings & other problems - Elvas Tower

Jump to content

  • 10 Pages +
  • « First
  • 5
  • 6
  • 7
  • 8
  • 9
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

Translations: Unclear strings & other problems Rate Topic: -----

#61 User is offline   markus_GE 

  • Executive Vice President
  • PipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 4,862
  • Joined: 07-February 13
  • Gender:Male
  • Location:Leoben, Styria, Austria, Europe
  • Simulator:ORTS / MSTS
  • Country:

Posted 28 July 2020 - 06:51 AM

Good question, have not yet encountered that one ;)

Cheers, Markus

#62 User is offline   cjakeman 

  • Vice President
  • PipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 2,867
  • Joined: 03-May 11
  • Gender:Male
  • Location:Peterborough, UK
  • Simulator:Open Rails
  • Country:

Posted 29 July 2020 - 10:24 AM

Hi Weter,

 Weter, on 27 July 2020 - 03:41 PM, said:

#: ../../Orts.Simulation/Simulation/Confirmer.cs:241
msgid "locked. Use shaft before changing gear."

What is "use shaft"?

Very good question.

The code suggests that the English text is wrong and should be:

"locked. Close throttle before changing gear."

P.S. I've raised a Bug Report to get the English changed.


Best wishes,

#63 User is offline   Weter 

  • Member, Board of Directors
  • PipPipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 6,926
  • Joined: 01-June 20
  • Gender:Not Telling
  • Simulator:ORTS
  • Country:

Posted 31 July 2020 - 12:46 PM

Блокировка!
Переключать скорости можно, только выключив контроллер.

Oh! Probably, they could mean "Loose"(not "use") shaft? in context remove all torque to protect gears from evcesive stress?
if this could be engineer's slang

#64 User is offline   elvasleis 

  • Fireman
  • Group: Status: First Class
  • Posts: 236
  • Joined: 30-June 08
  • Gender:Male
  • Location:Dubbo
  • Country:

Posted 31 July 2020 - 05:46 PM

Hi All,
I like to run Russian routes and rolling stock.
For me running OR in English I do need to translate to English things such as station names and paths ect from Russian.

Regards Geoff.

#65 User is offline   Weter 

  • Member, Board of Directors
  • PipPipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 6,926
  • Joined: 01-June 20
  • Gender:Not Telling
  • Simulator:ORTS
  • Country:

Posted 01 August 2020 - 02:12 AM

Hello, Geoff.
This work, as I understand, had to be done inside of each route individually :(
You can activate russian codepage (if You running Windows), at least to show cyrillic symbols properly in game.
If You mean only geographic names, what sence to translate them?

#66 User is offline   Weter 

  • Member, Board of Directors
  • PipPipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 6,926
  • Joined: 01-June 20
  • Gender:Not Telling
  • Simulator:ORTS
  • Country:

Posted 12 August 2020 - 02:18 PM

Colleagues, I encounter another problem:
In English version there are more "universal" words, suitable for many cases: "off"/"on"; "power" and, maybe, some else.
At Russian version, the only such words are not adequate in some contexts, as there are another words for definition of different things and/or states.
Looking a source-code of *.po-files shows me, that multiple strings has single meaning (on/off for instance), so the simplest way, that I thought, I can do-is to assign to every such string its own definition, by manual editing of code...
Am I right?

#67 User is offline   YoRyan 

  • Conductor
  • Group: Status: Active Member
  • Posts: 391
  • Joined: 19-February 20
  • Gender:Male
  • Location:California, United States
  • Simulator:Open Rails/unstable
  • Country:

Posted 12 August 2020 - 03:51 PM

Hi Weter,

Yes, that sounds like the right solution, and there are no doubt other languages besides Russian that would need control over the entire phrase.

I would be happy to put in the work, but ideally we could make this change in such a way that the existing translations are preserved. I'm sure this is possible but, not being familiar with GNU Gettext, I would need to do some research first. In the meantime I have filed a blueprint to keep this on our radar.

#68 User is offline   Weter 

  • Member, Board of Directors
  • PipPipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 6,926
  • Joined: 01-June 20
  • Gender:Not Telling
  • Simulator:ORTS
  • Country:

Posted 13 August 2020 - 07:45 AM

Ryan, would You, please, watch all posts since #44, as there some questions was asked and the answers, as I suppose, are hidden at code; but no one did answer to me till today.
As well, I would You to take a part on this discussion from its very beginning, as I hope, Your opinion could bring some more light to the unclear sides of translation material, and for me-not to ask the same questions one more time.

#69 User is offline   Weter 

  • Member, Board of Directors
  • PipPipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 6,926
  • Joined: 01-June 20
  • Gender:Not Telling
  • Simulator:ORTS
  • Country:

Posted 13 August 2020 - 12:26 PM

translated from next topic's post#4:

Quote

3. The peculiarities of the Russian language sometimes require changing the code of the simulator's software modules.
For example:
i) russian words often consist of a large number of letters, and there are more "wide" letters (Ш, Щ, Ы, Ж, M, Ю) in Cyrillic, than in Latin (W, M).
This requires expanding the space for labels in fields and buttons.
So, the word "Фактически" will not fit in the column where "Actual" is placed end-to-end (F10 timetable window)
ii) if there are many "universal" words in English (on/off, power), then Russian provides a greater variety for each case, so you need to "split" the code blocks so that in the case of an electric locomotive, instead of "power" you can write "Voltage", and in the case of a diesel locomotive- "Wattage";
iii) some lines contain syntax errors and are not displayed in the translated form ("DISPATCHER : INFO" contains a colon and is taken by the program as code); and others-are not present in the template-file for translation at all (the state of auto-brakes "EQ BC BP", doors "doors") - that is, these code errors need to be corrected.

The iii has already discussed here.

#70 User is offline   gpz 

  • Superintendant
  • Group: Status: Elite Member
  • Posts: 1,772
  • Joined: 27-October 12
  • Gender:Male
  • Location:Budapest
  • Simulator:OpenRails
  • Country:

Posted 14 August 2020 - 03:49 AM

 Weter, on 13 August 2020 - 12:26 PM, said:

translated from next topic's post#4:

The iii has already discussed here.

For ii, the proper method is to change the relevant GetString() and GetPluralString() functions in the C# code to GetParticularString() and GetParticularPluralString() respectively, where it is possible to add a so called "context" to the translation. When I initially made the translations of certain parts of OR, I have identified some of these cases, where I knew e.g. the Hungarian term differs in different contexts, while the English one is the same. An example can be found in e.g. the Orts.Simulation/Simulation/Confirmer.cs file, like:
new string [] { GetParticularString("NonSteam", "Reverser"), GetString("reverse"), GetString("neutral"), GetString("forward"), null, null, GetString("locked. Close throttle, stop train then re-try.") } 
new string [] { GetParticularString("Steam", "Reverser"), GetString("reverse"), GetString("neutral"), GetString("forward"), null, null, GetString("locked. Close throttle, stop train then re-try.") } 

In the above example the English term for the "Reverser" is the same, while in my language they are different. It is possible to add more of such GetParticularString()-s, but unfortunately not without breaking the existing languages' translations. The good news is, the other languages' .po files can be actually patched by using a text editor, without knowing the language. It's manual work, but for only a couple of such changes it is absolutely doable. (The actual translation in the .po files just needs to be doubled, and by using the above example, an msgctxt "NonSteam" needs to be added to the first instace, and an msgctxt "Steam" to the second, ensuring that in other languages both contexts translate to the same string.)

Search for "GetParticularString" in the C# code for more examples.

  • 10 Pages +
  • « First
  • 5
  • 6
  • 7
  • 8
  • 9
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users