Howto:Processing legacy PUI dialogs using Canvas: Difference between revisions

Jump to navigation Jump to search
Line 1,382: Line 1,382:
</PropertyList>
</PropertyList>
}}
}}
=== Supporting Translations ===
{{Stub}}
there should be some kind of /sim/intl and /locale tree somewhere in the global tree, have you checked if that's the case or not?
There should also be a vector with &lt;lang&gt; nodes for each supported locale.
The whole locale handling stuff is fairly old code, but I do remember that most strings read during startup are mapped that way, which is why I suggested to do a reverse lookup to obtain the information that you need, i.e the translated strings should be also available there.
And even if something should be missing all those files are PropertyList files that can be read/processed using 10 lines of Nasal code (via io.read_properties)<ref>{{cite web
  |url    =  https://forum.flightgear.org/viewtopic.php?p=292846#p292846
  |title  =  <nowiki> Re: User language </nowiki>
  |author =  <nowiki> Hooray </nowiki>
  |date  =  Aug 20th, 2016
  |added  =  Aug 20th, 2016
  |script_version = 0.40
  }}</ref>


=== Regression Testing ===
=== Regression Testing ===

Navigation menu