Celestia, translation and languages
-
Topic authorTosv
- Posts: 26
- Joined: 14.02.2005
- With us: 19 years 9 months
- Location: Hudiksvall, Sweden
Celestia, translation and languages
Well, this is just a thought... Sort of...
As you probably know, Celestia is growing in popularity all around the world. One "problem", however, when coming to the program is that the GUI is English only (or, at least, it??s quite hard to localize). Several apps have solved this problem by giving every language a own languagefile or "languagepack". This way it??s easy to translate a program without any other apps then Windows notepad (if you??re running a win-op. sys.) and maybe some kind of converter to convert the file to the applications own format. Will this be possible for Celestia?
It would also (as I have seen somewhere else in this forum) be nice if Celestia could support national characters (as the nordic ?…, ?„, ?–). Right now it??s almost impossible to translate e.g. mr Hegwood??s excellent Tour-scripts because the lack of support of national characters.
Is this something that will be supported in future versions?
A third thought is to add a new forum, "Celestia Language & translations", to the already existing "Celestia Users", "Celestia Bugs", "Celestia Development" etc. In that forum we could talk about these things whithout having them "drowning" in all the other stuff.
Some dim thoughts in the late evening...
/ Tosv
As you probably know, Celestia is growing in popularity all around the world. One "problem", however, when coming to the program is that the GUI is English only (or, at least, it??s quite hard to localize). Several apps have solved this problem by giving every language a own languagefile or "languagepack". This way it??s easy to translate a program without any other apps then Windows notepad (if you??re running a win-op. sys.) and maybe some kind of converter to convert the file to the applications own format. Will this be possible for Celestia?
It would also (as I have seen somewhere else in this forum) be nice if Celestia could support national characters (as the nordic ?…, ?„, ?–). Right now it??s almost impossible to translate e.g. mr Hegwood??s excellent Tour-scripts because the lack of support of national characters.
Is this something that will be supported in future versions?
A third thought is to add a new forum, "Celestia Language & translations", to the already existing "Celestia Users", "Celestia Bugs", "Celestia Development" etc. In that forum we could talk about these things whithout having them "drowning" in all the other stuff.
Some dim thoughts in the late evening...
/ Tosv
-
- Posts: 1048
- Joined: 19.10.2003
- With us: 21 years 1 month
- Location: Germantown, Ohio - USA
Tosv,
Don't know if it will help or not, but Ulrich Dickmann (a.k.a. Adirondack)
has successfully translated a good number of scripts into German. Maybe
you could ask him for some advice on the processes involved?
Just a thought. Also, there are a wide variety of language translation sites
available on the web too. Seems to me that you could just copy and paste
the sections of the scripts that are giving you trouble.
Hope that helps.
Take care, Bob
Don't know if it will help or not, but Ulrich Dickmann (a.k.a. Adirondack)
has successfully translated a good number of scripts into German. Maybe
you could ask him for some advice on the processes involved?
Just a thought. Also, there are a wide variety of language translation sites
available on the web too. Seems to me that you could just copy and paste
the sections of the scripts that are giving you trouble.
Hope that helps.
Take care, Bob
Bob Hegwood
Windows XP-SP2, 256Meg 1024x768 Resolution
Intel Celeron 1400 MHz CPU
Intel 82815 Graphics Controller
OpenGL Version: 1.1.2 - Build 4.13.01.3196
Celestia 1.4.0 Pre6 FT1
Windows XP-SP2, 256Meg 1024x768 Resolution
Intel Celeron 1400 MHz CPU
Intel 82815 Graphics Controller
OpenGL Version: 1.1.2 - Build 4.13.01.3196
Celestia 1.4.0 Pre6 FT1
-
- Developer
- Posts: 944
- Joined: 18.07.2002
- With us: 22 years 4 months
- Location: Lyon (France)
Well, thanks to Eugine's good work, I was finally able to add the missing piece to full i18n support to the KDE interface.
There still are a few quirks here and there, and an appropiate way to translate data files is still needed, but it's definitely getting better.
The translation page has been updated too.
There still are a few quirks here and there, and an appropiate way to translate data files is still needed, but it's definitely getting better.
The translation page has been updated too.
Christophe
-
Topic authorTosv
- Posts: 26
- Joined: 14.02.2005
- With us: 19 years 9 months
- Location: Hudiksvall, Sweden
Thanks a lot Bob Hegwood and Christophe for giving this info! I will look at it as soon as possible.
Unfortunately I do not have a linux-machine, the skills or even the time to do a GUI-translation on my own, but if some other Swede wants to start a translationteam i??m definitely interested on joining it. What I can do is translating the scripts, and maybe some other files where I can use the ordinary Windows notepad. But then I run into the problem with the non-supported national characters. I will mail mr Dickmann and see what he has to say about it.
Thanks again!
/ Tosv!
Unfortunately I do not have a linux-machine, the skills or even the time to do a GUI-translation on my own, but if some other Swede wants to start a translationteam i??m definitely interested on joining it. What I can do is translating the scripts, and maybe some other files where I can use the ordinary Windows notepad. But then I run into the problem with the non-supported national characters. I will mail mr Dickmann and see what he has to say about it.
Thanks again!
/ Tosv!
georgiouk wrote:Hi
I am interested on translating Celestia so Greek students can use too.
I have translated the el.po but i don't know what to do next
Any ideas?
In theory, all you had to do would be to mail your .po file to the mail address found on the "translation page" which is linked to in Christophe's post above.
In practice, this is what I did quite some time ago for the german translation, but I got no response and the translation status page is not updated either. I have not seen Christophe posting on this forum for a long time, maybe he is very busy with other tasks at the moment.
Hope that helps,
steffens
-
- Developer
- Posts: 944
- Joined: 18.07.2002
- With us: 22 years 4 months
- Location: Lyon (France)
I'm still there. Not very active though, the i18n patch still needs a few tweaks before it can be commited.
I can't seem to find any more recent version of the de.po file than the one currently on the i18n page. It's not necessary to send your catalog files right now though, the pot file will probably change before the i18n patch is finalized.
I can't seem to find any more recent version of the de.po file than the one currently on the i18n page. It's not necessary to send your catalog files right now though, the pot file will probably change before the i18n patch is finalized.
Christophe
Ni Hao
I don't know what I can do. But I speak a little spanish, and now, I'm intensively learning Arabic, and a little Mandarin Chinese on the side. I have a friends who speak French, Italian, Portugese, and Vietnamese. While Arabic is very difficult to romanize, if Celestia can support Arabic script, I could translate it. Or if Celestia can support Romanized Chinese (with tone marks) I'll be able to translate that in about a year or two after I have a good hold on Arabic. I'm a little scetchy on the proccess of translating software, rather than just plain old writting. That i could definately do easily, for Spanish and Arabic. Translate tutorials, instructions, etc. Hope I can help.
Bamaani Allah
(Depending on how you Romanize the Alif "a", the consonant)
I don't know what I can do. But I speak a little spanish, and now, I'm intensively learning Arabic, and a little Mandarin Chinese on the side. I have a friends who speak French, Italian, Portugese, and Vietnamese. While Arabic is very difficult to romanize, if Celestia can support Arabic script, I could translate it. Or if Celestia can support Romanized Chinese (with tone marks) I'll be able to translate that in about a year or two after I have a good hold on Arabic. I'm a little scetchy on the proccess of translating software, rather than just plain old writting. That i could definately do easily, for Spanish and Arabic. Translate tutorials, instructions, etc. Hope I can help.
Bamaani Allah
(Depending on how you Romanize the Alif "a", the consonant)
Nothing suffocates you more than
the passing of everyday human events
Isolation is the oxygen mask you make
your children breath into survive
- Marilyn Manson
the passing of everyday human events
Isolation is the oxygen mask you make
your children breath into survive
- Marilyn Manson
Christophe wrote:I can't seem to find any more recent version of the de.po file than the one currently on the i18n page. It's not necessary to send your catalog files right now though, the pot file will probably change before the i18n patch is finalized.
No problem, I can resend my file when the patch is ready.
A question though: how do I import the changes of the pot file to my latest de.po file? Right now, all I did was downloading the latest de.po, editing with KBabel and sending it to you again. Now my version is very much out of sync with the file on the i18n page. I really do not want to translate all these messages again...
steffens
-
- Developer
- Posts: 944
- Joined: 18.07.2002
- With us: 22 years 4 months
- Location: Lyon (France)
You can use msgmerge to merge your de.po with the latest version of celestia.pot.
Code: Select all
msgmerge de.po celestia.pot -o de.new.po
Christophe
-
- Developer
- Posts: 944
- Joined: 18.07.2002
- With us: 22 years 4 months
- Location: Lyon (France)
Acutally no, the new i18n patch is cross-platform and has been reported to work on Windows. What still needs to be worked on for the Windows version is the translation of the widgets which can't be translated by gettext. The only solution I'm aware of to fix this is to provide a translated ressource file for each supported language.
Christophe
I haven't seen support preparation in the window gui files yet. All text in there is still hard coded.
When I did my german translation of it, I also identified all hardcoded text and replaced it by #define constants. All #define constants were then declared in a seperate header file. Maybe that could help you in this issue. I must admit that I have no idea how I could support this in a way that compatibility is preserved.
I think it is ok to use different .recource files for different languages. Actually it was neccessary for my german translation to also alter the sizes and positions of boxes and buttons (defined in the .resource file) to get a proper display. This may be also neccessary for other languages.
Only thing I'm not shure, is how to control the languange setup. By an entry in celestia.cfg or somewhere else? BTW I wonder if we should make it able to allow users to define if they want settings to be saved in the registry or in a xml file?
maxim
When I did my german translation of it, I also identified all hardcoded text and replaced it by #define constants. All #define constants were then declared in a seperate header file. Maybe that could help you in this issue. I must admit that I have no idea how I could support this in a way that compatibility is preserved.
I think it is ok to use different .recource files for different languages. Actually it was neccessary for my german translation to also alter the sizes and positions of boxes and buttons (defined in the .resource file) to get a proper display. This may be also neccessary for other languages.
Only thing I'm not shure, is how to control the languange setup. By an entry in celestia.cfg or somewhere else? BTW I wonder if we should make it able to allow users to define if they want settings to be saved in the registry or in a xml file?
maxim
-
- Developer
- Posts: 944
- Joined: 18.07.2002
- With us: 22 years 4 months
- Location: Lyon (France)
I haven't touched the windows specific files, put once the i18n framework is in place it's just a matter of marking the string constants with _(). For example "Some text" becomes _("Some text").
A make command then allows you to extract all the strings from all the source files and put them in a .pot file (which is a simple text file). Translators then use this file to produce .po files (also plain text, various utilities are available to facilitate this). At compilation time those string catalogs are compiled in a binary form and at run time, depending on environment variables the proper catalog is used to translate the strings. So the user can chose the language at run time with a simple environment variable which can also be set by Celestia from a setting stored in the registry. On Unix since all programs use this i18n system the env variables are already set.
A make command then allows you to extract all the strings from all the source files and put them in a .pot file (which is a simple text file). Translators then use this file to produce .po files (also plain text, various utilities are available to facilitate this). At compilation time those string catalogs are compiled in a binary form and at run time, depending on environment variables the proper catalog is used to translate the strings. So the user can chose the language at run time with a simple environment variable which can also be set by Celestia from a setting stored in the registry. On Unix since all programs use this i18n system the env variables are already set.
Christophe
Well, ok - as I already did some of this, it may help saving some work using the results here:
it's this!
and this!
If you think the style conventions I used are ok, just take and include it.
maxim
it's this!
and this!
If you think the style conventions I used are ok, just take and include it.
maxim
Hi!
I am trying to make a Greek version of the Windows Celestia so I have to do a lot of work on the GUI part.
Unfortunately when I replace the words in english with the ones in greek in my screenview not only they are not replaced but in the place of the words nothing appears.
And to be more specific : in src/celestia/celestiacore.cpp:3240 I replaced the word Distance with the greek one and the word vanished.
Any ideas?
Thanks for your time.
I am trying to make a Greek version of the Windows Celestia so I have to do a lot of work on the GUI part.
Unfortunately when I replace the words in english with the ones in greek in my screenview not only they are not replaced but in the place of the words nothing appears.
And to be more specific : in src/celestia/celestiacore.cpp:3240 I replaced the word Distance with the greek one and the word vanished.
Any ideas?
Thanks for your time.