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

List:       kde-i18n-doc
Subject:    [PATCH] Add support for extracting strings from projects using Qt translation system
From:       Aurélien Gâteau <agateau () kde ! org>
Date:       2014-03-24 17:30:01
Message-ID: lgpq2b$mjg$1 () ger ! gmane ! org
[Download RAW message or body]

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

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

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