[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-i18n-doc
Subject:    Re: [PATCH] Add support for extracting strings from projects using Qt translation system
From:       Albert Astals Cid <aacid () kde ! org>
Date:       2014-03-25 18:45:27
Message-ID: 4145531.SPBuFxFrEh () xps
[Download RAW message or body]

El Dimarts, 25 de març de 2014, a les 03:12:14, Aurélien Gâteau va escriure:
> On Mon, Mar 24, 2014, at 15:09, Albert Astals Cid wrote:
> > El Dilluns, 24 de març de 2014, a les 18:44:16, Aurélien Gâteau va
> > 
> > escriure:
> > > Aurélien Gâteau wrote:
> > > > Hi,
> > > > 
> > > > I am working on getting frameworks ready for translations. As you may
> > > > know, in order to reduce dependencies, some frameworks use Qt
> > > > translation
> > > > system instead of KI18n. This means the scripts in l10n-kde4 need to
> > > > be
> > > > extended to support this configuration.
> > > > 
> > > > Attached patch introduces a new script: extract-tr-strings and adjusts
> > > > extract-messages.sh to expose it. extract-tr-strings extracts strings
> > > > into
> > > > a .ts file using lupdate and convert the .ts to a .pot using lconvert.
> > > > It
> > > > 
> > > > can be used in a Messages.sh like this:
> > > >     $EXTRACT_TR_STRINGS src/ $podir/project.pot
> > > > 
> > > > I also have the rest of the puzzle - compiling the .po files into .qm
> > > > files and loading them automatically - working. That part will go to
> > > > extra-cmake- modules.
> > > > 
> > > > OK to commit?
> > > > 
> > > > Aurélien
> > > 
> > > Now with attached patch!
> > 
> > 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.
> 
> 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 
something later :-)

Cheers,
  Albert

> 
> Aurélien

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic