Board index FlightGear Development Aircraft

Translating aircraft specific Texts

Questions and discussion about creating aircraft. Flight dynamics, 3d models, cockpits, systems, animation, textures.

Translating aircraft specific Texts

Postby benih » Thu Jan 04, 2018 1:34 pm

i couldn't find anything on the subject how certain texts can be translated into different user languages.

- checklists
- gui menu items
- nasal text strings

What infrastructure do we have already for this?
Posts: 96
Joined: Tue Aug 15, 2017 9:34 am

Re: Translating aircraft specific Texts

Postby benih » Sun Jan 07, 2018 12:57 pm

...Seems not to be possible in a clean way currently.
- viewtopic.php?f=4&t=30182&p=292410&hilit=internationalization#p292410
- viewtopic.php?f=4&t=25157&p=242508&hilit=internationalization#p242508

It would be very cool if the current selected language would be available as property, so we could at least use some hashmap approach for nasal based code (this would be very simple to implement, just call a func(text_id) that returns an printf-style string).
For Checklists and other XML-based stuff i don't have any idea how to implement this.
Posts: 96
Joined: Tue Aug 15, 2017 9:34 am

Re: Translating aircraft specific Texts

Postby wkitty42 » Sun Jan 07, 2018 3:53 pm

as i understand it, some craft do this by manually creating the translated texts... i'm not sure how they call them but something must be doing it since some -set files have more than one language indicated in them with their strings... for example, the following shows four languages (English, French, Spanish and Italian) used for the c172p's -set file... this same method should be possible for checklists and other things...
Code: Select all
<PropertyList include="Aircraft/Generic/Human/Include/walker-include.xml">

    <sim include="c172p-views.xml">
        <description>Cessna 172P Skyhawk (1981 model, detailed)</description>

        <long-description>The Cessna 172 Skyhawk is a four-seat, single-engine, high-wing fixed-wing aircraft. First flown in 1955 and still in production, more Cessna 172s have been built than any other aircraft.</long-description>

            <long-description>Le Cessna 172 Skyhawk est un avion quadriplace, monomoteur à aile haute. Il effectua son premier vol en 1955 et est toujours en production, plus de Cessna 172 ont été construits que tout autres avions.</long-description>

            <long-description>La Cessna 172 Skyhawk es un avión de cuatro plazas, monomotor y de ala alta. Se empezó a producir en 1955 y, con equipos modernizados, aún sigue en producción. La Cessna 172 es el avión del que unidades se han construido en la historia.</long-description>

            <long-description>Il Cessna 172 Skyhawk è un aereo a quattro posti, monomotore ad ala fissa alta. Ha volato per la prima volta nel 1955 ed è ancora in produzione; sono stati prodotti più Cessna 172 di qualunque altro modello di aereo.</long-description>

"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
Posts: 5330
Joined: Fri Feb 20, 2015 3:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 14.04.5

Return to Aircraft

Who is online

Users browsing this forum: No registered users and 5 guests