Hello. I've done some work on using Qt's disambiguation strings as gettext context strings. This would allow messages that are identical in English, but have different context/meaning, to be treated as separate translatable strings.
Branch: https://code.launchpad.net/~daggerstab/stellarium/gui-string-disambiguation -- Branch description -- This code solves the problem of having two identical strings in the GUI with different contexts that require to be translated in different ways. Qt's native way is to use disambiguation strings (when editing .ui files in Qt Creator/Qt Designer, they are accessible via the same group of sub-properties that contain the "translatable" checkbox). As Stellarium uses gettext for translation, any disambiguation strings in the .ui files were ignored. The changes to the xgettext extraction parameters allows it to read and save the disambiguation strings as gettext context strings. http://www.gnu.org/software/gettext/manual/gettext.html#Contexts The changes to StelTranslator and main.cpp enable handling of strings with gettext contexts/Qt disambiguation. So far the support is only for disambiguation/context in the .ui files. If necessary, I can add support for variants of the g_() and N_() macros that support context strings. As an example, I've changed the recently added "About plugin" string back to "About", but with an appropriate context, so it's a different translatable string than the "About" used in Stellarium's Help window. Before merging, I also need to update the documentation, so this one is still "in development". -- End of branch description -- So, any questions or comments? Is there any need for context support in C++ right now, or I can add this later? Regards, Bogdan Marinov P.S. Is anyone else using the mailing list, or is everything passing through the IRC channel these days? It's really inconvenient for the people who can't stay there 24/7. P.P.S. I am uneasy about the recent script additions. Did the authors request them to be added, or? Also, no discussion. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Stellarium-pubdevel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stellarium-pubdevel
