Al 21/05/13 13:05, En/na Martin Pitt ha escrit: > Hello Olivier, David, > > David Planella [2013-05-20 17:13 -0000]: >> The challenge is that for simple SDK apps there is either no build >> system or qmake, which can create Makefiles from *.pro snippets, but >> it's a bit limited. > > Ack, then it might indeed be simpler to just put everything into > dh_translations. > >> See the comment above. It's not as much as the export part, but rather >> the build and install part, which the GUI cannot take care of when >> installing an app. > > Ah, so that's a different issue from the original report here (that > building the .pot doesn't work). >
Ah, sorry Martin, you're right, it's a separate discussion. I thought dh_translations took care of everything (as in building and installing translations), but if I understand it correctly now, it just generates the .pot file (plus translation stripping and domain addition). >> I'm not sure about the best way of detecting this, but in general, >> Ubuntu SDK projects: >> >> - Import Ubuntu.Components >> - Use the i18n.tr() calls for translations > > Oliver said about this: >> Any project that depends on qtdeclarative5-ubuntu-ui-toolkit-plugin is a >> candidate. > > Is the i18n.tr() call Ubuntu specific, or does it apply to all QML > apps? The i18n.tr() call is Ubuntu-SDK-specific. Essentially it is an alias for gettext() [1]. > In the latter case, it seems easier to just check if the package > has any *.qml files, and activate the xgettext call based on this? But > I guess that's not generally sufficient, as Ubuntu SDK (or QML apps > in general) might also have C++ files which use the standard _() > convention? > It seems the C++ files would currently not be able to use the Ubuntu-specific UbuntuI18n::tr() method, so for now it'd have to be _() for C++ files, but I'm discussing that with the SDK team, as it'd be nice for mixed projects (e.g. QML + C++) to use the same method to internationalize messages. Cheers, David. [1] http://bazaar.launchpad.net/~ubuntu-sdk-team/ubuntu-ui-toolkit/trunk/view/head:/modules/Ubuntu/Components/plugin/i18n.cpp -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1181183 Title: Add support for the Ubuntu SDK apps to dh_translations To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/pkgbinarymangler/+bug/1181183/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
