-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement i18n in OpenAmbit #63
Comments
@bubulle From what little I've seen of the code below |
@svenstorp, @mbernasocchi and @battila What do we use for FYI, GTK+ uses UTF-8 internally for everything except file system entries. These you have to convert explicitly yourself before showing them to the user. Basically, strings are converted from the encoding specified by the process'
|
Quoting Olaf Meeuwissen ([email protected]):
I don't really have much clues about implementation of localization in On the l10n side, though, being myself involved quite deeply in And I can do the part for French myself, definitely. |
Yes, for the Qt-parts we (should) use tr() for all strings already. There are a few small codelines to add to get it all running, but it is "almost" there. For translators Qt have a quite nifty tool called Qt Linguist. You can read about Qt Internationalization at http://qt-project.org/doc/qt-4.8/internationalization.html. For libambit I agree on UTF-8. Except for the strings coming from USB-listing (product, serial, etc) we also handle strings from "inside" the Ambits which has their own encoding (ISO-8859-1 it seems). They also needs to be converted to UTF-8. The stored logs in XML format are already stored in UTF-8. |
I have pushed initial multi-language support now, with a translation to the world language Swedish. There is a quick tutorial on how to add another language at https://github.com/openambitproject/openambit/wiki/Translations |
Quoting Emil Ljungdahl ([email protected]):
Here's a French translation file. |
Sorry, but I don't think the attached(?) file made it through github. |
AFAIK attachments are ignored when you replay to github issue with e-mail. |
Quoting Emil Ljungdahl ([email protected]):
Sent by private mail to Emil.... |
I've just pushed a couple of changesets that turn all device info strings into null-terminated UTF-8 strings in |
I've just pushed a changeset (22a545f) that makes the |
An interesting feature would be implementing internationalization so that the program dialogs, menus, messages, etc. can be localized to various languages.
Being a C++ app, I suspect this is mostly about using gettext features for this but even though I'm involved in FLOSS localization for years, I don't have much clues about The Right Way to do it, not being skilled in programming, myself.
The text was updated successfully, but these errors were encountered: