El Dimarts, 25 de mar=E7 de 2014, a les 03:12:14, Aur=E9lien G=E2teau v= a escriure: > On Mon, Mar 24, 2014, at 15:09, Albert Astals Cid wrote: > > El Dilluns, 24 de mar=E7 de 2014, a les 18:44:16, Aur=E9lien G=E2te= au va > >=20 > > escriure: > > > Aur=E9lien G=E2teau wrote: > > > > Hi, > > > >=20 > > > > I am working on getting frameworks ready for translations. As y= ou may > > > > know, in order to reduce dependencies, some frameworks use Qt > > > > translation > > > > system instead of KI18n. This means the scripts in l10n-kde4 ne= ed to > > > > be > > > > extended to support this configuration. > > > >=20 > > > > Attached patch introduces a new script: extract-tr-strings and = adjusts > > > > extract-messages.sh to expose it. extract-tr-strings extracts s= trings > > > > into > > > > a .ts file using lupdate and convert the .ts to a .pot using lc= onvert. > > > > It > > > >=20 > > > > can be used in a Messages.sh like this: > > > > $EXTRACT_TR_STRINGS src/ $podir/project.pot > > > >=20 > > > > I also have the rest of the puzzle - compiling the .po files in= to .qm > > > > files and loading them automatically - working. That part will = go to > > > > extra-cmake- modules. > > > >=20 > > > > OK to commit? > > > >=20 > > > > Aur=E9lien > > >=20 > > > Now with attached patch! > >=20 > > Question are lupdate/lconvert-qt4 with lupdate/lconvert-qt5 freely > > interchangeable? Wonder if the qt5 version is mandatory to extract = .ts > > from Qt5 code and the same for Qt4 or they can work on any of the > > versions. >=20 > Good question. I just tried generating with qt5 and qt4 versions: the= > result .pot files are exactly the same. Well, let's add it then i guess and see if it breaks and we have to fix= =20 something later :-) Cheers, Albert >=20 > Aur=E9lien