[Bug 1181183] Re: Add support for the Ubuntu SDK apps to dh_translations

2013-08-04 Thread Launchpad Bug Tracker
[Expired for pkgbinarymangler (Ubuntu) because there has been no activity for 60 days.] ** Changed in: pkgbinarymangler (Ubuntu) Status: Incomplete => Expired -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchp

[Bug 1181183] Re: Add support for the Ubuntu SDK apps to dh_translations

2013-06-05 Thread Alberto Mardegan
BTW, how does the .pot generation work for i18n.dtr(domain, text)? -- 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 noti

Re: [Bug 1181183] Re: Add support for the Ubuntu SDK apps to dh_translations

2013-05-21 Thread Martin Pitt
David Planella [2013-05-21 12:06 -]: > 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

Re: [Bug 1181183] Re: Add support for the Ubuntu SDK apps to dh_translations

2013-05-21 Thread David Planella
Al 21/05/13 13:05, En/na Martin Pitt ha escrit: > Hello Olivier, David, > > David Planella [2013-05-20 17:13 -]: >> 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 i

[Bug 1181183] Re: Add support for the Ubuntu SDK apps to dh_translations

2013-05-21 Thread Olivier Tilloy
> Is the i18n.tr() call Ubuntu specific, or does it apply to all QML > apps? 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? The i18n.tr() call is specific to the Ubuntu SDK, the generic translation mechanism e

Re: [Bug 1181183] Re: Add support for the Ubuntu SDK apps to dh_translations

2013-05-21 Thread Martin Pitt
Hello Olivier, David, David Planella [2013-05-20 17:13 -]: > 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_tran

Re: [Bug 1181183] Re: Add support for the Ubuntu SDK apps to dh_translations

2013-05-20 Thread David Planella
Al 20/05/13 19:05, En/na Olivier Tilloy ha escrit: >> Is this "translation tool" implemented in the build system, or is >> that separate logic in the GUI only? > > It’s separate logic in the GUI only. > > >> Is this invoked automatically anyway? I. e. is the issue here that >> dh_translations ov

Re: [Bug 1181183] Re: Add support for the Ubuntu SDK apps to dh_translations

2013-05-20 Thread David Planella
Al 20/05/13 16:46, En/na Martin Pitt ha escrit: > Olivier Tilloy [2013-05-17 14:54 -]: >> The Ubuntu Touch QtCreator plugin exposes a "Translations" tool that has two >> options: >> 1) Export ".pot" File >> 2) Generate ".mo" File >> >> The first option invokes xgettext with the following arg

[Bug 1181183] Re: Add support for the Ubuntu SDK apps to dh_translations

2013-05-20 Thread Olivier Tilloy
> Is this "translation tool" implemented in the build system, or is > that separate logic in the GUI only? It’s separate logic in the GUI only. > Is this invoked automatically anyway? I. e. is the issue here that > dh_translations overwrites an already correct .pot file with an > incomplete one,

Re: [Bug 1181183] Re: Add support for the Ubuntu SDK apps to dh_translations

2013-05-20 Thread Martin Pitt
Olivier Tilloy [2013-05-17 14:54 -]: > The Ubuntu Touch QtCreator plugin exposes a "Translations" tool that has two > options: > 1) Export ".pot" File > 2) Generate ".mo" File > > The first option invokes xgettext with the following arguments: > > xgettext -o messages.pot --qt --c++ --

[Bug 1181183] Re: Add support for the Ubuntu SDK apps to dh_translations

2013-05-17 Thread Olivier Tilloy
The Ubuntu Touch QtCreator plugin exposes a "Translations" tool that has two options: 1) Export ".pot" File 2) Generate ".mo" File The first option invokes xgettext with the following arguments: xgettext -o messages.pot --qt --c++ --add-comments=TRANSLATORS --keyword=tr %PROJECTFILES% The

[Bug 1181183] Re: Add support for the Ubuntu SDK apps to dh_translations

2013-05-17 Thread Martin Pitt
Do Ubuntu SDK apps actually use intltool? I don't think that intltool actually supports .qml files natively, so that needs to be put into intltool first. Right now, dh_translations calls intltool-update, or if the package does not use intltool, try to call po/Makefile with "make $domain.pot". Is th

[Bug 1181183] Re: Add support for the Ubuntu SDK apps to dh_translations

2013-05-17 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: pkgbinarymangler (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1181183 Ti