Inside
<Sentence text="Good_Morning" lang="en-GB" >Good Morning</Sentence>
can we assume that
"Good_Morning" text
is unique over a language, whatever node it is present?
In this way I can have an internal hash table key\data where key can be LANG + \ + TEXT like "en-GB\Good_Morning"
Setting the Locale would set the main part of the key
I mean I'm trying to find a way to define something like to below example.
It would be possible to have up to 3 levels of nodes but such nodes are only a way to keep translations organized and not part of the key to search for.
Otherwise things like i18n("Good_Morning") would not be possible.
<?xml version="1.0" encoding="utf-8"?>
<i18n>
<Main_Script>
<Globals>
<Sentence text="Good_Morning" lang="en-GB" >Good Morning</Sentence>
<Sentence text="Good_Morning" lang="fr-FR" >Bonjour</Sentence>
<Sentence text="What_Is_Your_Name" lang="en-GB" >What is your name?</Sentence>
<Sentence text="What_Is_Your_Name" lang="fr-FR" >Quel est votre nom?</Sentence>
</Globals>
<!-- <some comment to translators> -->
<Sentence text="{1}_Is_My_Name" lang="en-GB" >{1} is my name.</Sentence>
<Sentence text="{1}_Is_My_Name" lang="fr-FR" >Je m'appelle {1}.</Sentence>
</Main_Script>
<Include_myIncludedFile>
<Dialogs>
<Sentence text="Dialog_Title" lang="en-GB" >Dialog title</Sentence>
<Sentence text="Dialog_Title" lang="en-GB" >Titre de la fenêtre</Sentence>
</Dialogs>
<Menu>
<Sentence text="Close_all_files" lang="fr-FR" >Close all files.</Sentence>
<Sentence text="Close_all_files" lang="fr-FR" >Fermer tous les fichiers.</Sentence>
</Menu>
</Include_myIncludedFile>
</i18n>
Also trying to figure out how to interact between the editor, thinAir, and translations in order to find a way thinAir is aware of the need of some translations.
Also to have the possibility to automatically create translations
Will read back all previous suggestions
Thinking ...
Any idea is welcome.
Bookmarks