<feed xmlns='http://www.w3.org/2005/Atom'>
<title>extra-cmake-modules.git/tests/ECMPoQmToolsTest/CMakeLists.txt, branch v5.62.0-rc1</title>
<subtitle>hurd extra-cmake-modules.git</subtitle>
<link rel='alternate' type='text/html' href='https://netuse.dynamicmalloc.com/cgit/extra-cmake-modules.git/'/>
<entry>
<title>Make sure we load translations on the main thread.</title>
<updated>2015-11-30T14:07:07+00:00</updated>
<author>
<name>Alex Merry</name>
<email>alex.merry@kde.org</email>
</author>
<published>2015-11-08T23:10:59+00:00</published>
<link rel='alternate' type='text/html' href='https://netuse.dynamicmalloc.com/cgit/extra-cmake-modules.git/commit/?id=fb4d91996affdbcd3ffc19c7646fbf77b96bf1e5'/>
<id>fb4d91996affdbcd3ffc19c7646fbf77b96bf1e5</id>
<content type='text'>
Because the old implementation (accidentally) worked when you put the
ecm_create_qm_loader call in a different CMakeLists.txt file to the
target the file was added to, some projects did this.

This won't work with build-time-generated files, though, like moc files.
So we (ab)use QTimer events to make the loading happen on the main
thread.

BUG: 346188
REVIEW: 126000
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Because the old implementation (accidentally) worked when you put the
ecm_create_qm_loader call in a different CMakeLists.txt file to the
target the file was added to, some projects did this.

This won't work with build-time-generated files, though, like moc files.
So we (ab)use QTimer events to make the loading happen on the main
thread.

BUG: 346188
REVIEW: 126000
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix multiple calls to ecm_create_qm_loader.</title>
<updated>2015-11-14T17:45:29+00:00</updated>
<author>
<name>Alex Merry</name>
<email>alex.merry@kde.org</email>
</author>
<published>2015-10-14T11:18:40+00:00</published>
<link rel='alternate' type='text/html' href='https://netuse.dynamicmalloc.com/cgit/extra-cmake-modules.git/commit/?id=55c55808298986d13ca461d571069f4214d8174d'/>
<id>55c55808298986d13ca461d571069f4214d8174d</id>
<content type='text'>
Multiple ecm_create_qm_loader() with different catalog names would
overwrite each other's generated files, causing the wrong catalog to be
loaded at runtime for some targets.

This puts the catalog name into the generated filename. Since the
catalog name is the only difference between the generated files, this is
sufficient to fix the runtime behaviour.

REVIEW: 125999
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Multiple ecm_create_qm_loader() with different catalog names would
overwrite each other's generated files, causing the wrong catalog to be
loaded at runtime for some targets.

This puts the catalog name into the generated filename. Since the
catalog name is the only difference between the generated files, this is
sufficient to fix the runtime behaviour.

REVIEW: 125999
</pre>
</div>
</content>
</entry>
<entry>
<title>Add unit test for ecm_create_qm_loader.</title>
<updated>2015-11-08T20:34:16+00:00</updated>
<author>
<name>Alex Merry</name>
<email>alex.merry@kde.org</email>
</author>
<published>2015-10-14T11:18:40+00:00</published>
<link rel='alternate' type='text/html' href='https://netuse.dynamicmalloc.com/cgit/extra-cmake-modules.git/commit/?id=c88bc78e0ca3834c46b89ca9d14b404751da5d4a'/>
<id>c88bc78e0ca3834c46b89ca9d14b404751da5d4a</id>
<content type='text'>
This is based on commit 6745bd7e4796560959bb67e33b7c7f86f96a5a94 (and
the subsequent fix-up commits).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is based on commit 6745bd7e4796560959bb67e33b7c7f86f96a5a94 (and
the subsequent fix-up commits).
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "Make sure we load translations on the main thread."</title>
<updated>2015-11-08T19:29:44+00:00</updated>
<author>
<name>Alex Merry</name>
<email>alex.merry@kde.org</email>
</author>
<published>2015-11-08T19:23:22+00:00</published>
<link rel='alternate' type='text/html' href='https://netuse.dynamicmalloc.com/cgit/extra-cmake-modules.git/commit/?id=6745bd7e4796560959bb67e33b7c7f86f96a5a94'/>
<id>6745bd7e4796560959bb67e33b7c7f86f96a5a94</id>
<content type='text'>
This broke the build for projects which used ecm_create_qm_loader in
unusual ways. A better approach is coming, but won't be in e-c-m 5.16.

This reverts commit 009c480413910e8c1a18f4d1420f4a517ea606e6.

CCBUG: 346188
CCMAIL: release-team@kde.org
CCMAIL: kde-buildsystem@kde.org
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This broke the build for projects which used ecm_create_qm_loader in
unusual ways. A better approach is coming, but won't be in e-c-m 5.16.

This reverts commit 009c480413910e8c1a18f4d1420f4a517ea606e6.

CCBUG: 346188
CCMAIL: release-team@kde.org
CCMAIL: kde-buildsystem@kde.org
</pre>
</div>
</content>
</entry>
<entry>
<title>Make sure we load translations on the main thread.</title>
<updated>2015-11-03T10:22:34+00:00</updated>
<author>
<name>Alex Merry</name>
<email>alex.merry@kde.org</email>
</author>
<published>2015-10-14T11:18:40+00:00</published>
<link rel='alternate' type='text/html' href='https://netuse.dynamicmalloc.com/cgit/extra-cmake-modules.git/commit/?id=009c480413910e8c1a18f4d1420f4a517ea606e6'/>
<id>009c480413910e8c1a18f4d1420f4a517ea606e6</id>
<content type='text'>
BUG: 346188
REVIEW: 123726
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
BUG: 346188
REVIEW: 123726
</pre>
</div>
</content>
</entry>
<entry>
<title>Skip non-directory files inside the po/ directory</title>
<updated>2014-05-26T14:05:56+00:00</updated>
<author>
<name>Aurélien Gâteau</name>
<email>agateau@kde.org</email>
</author>
<published>2014-05-20T13:02:00+00:00</published>
<link rel='alternate' type='text/html' href='https://netuse.dynamicmalloc.com/cgit/extra-cmake-modules.git/commit/?id=93fe5c4acbb64988213d295a257ba747f5de554c'/>
<id>93fe5c4acbb64988213d295a257ba747f5de554c</id>
<content type='text'>
REVIEW: 118216
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
REVIEW: 118216
</pre>
</div>
</content>
</entry>
<entry>
<title>More complete testing of ECMPoQmTools</title>
<updated>2014-05-13T15:20:18+00:00</updated>
<author>
<name>Aurélien Gâteau</name>
<email>agateau@kde.org</email>
</author>
<published>2014-05-13T13:52:39+00:00</published>
<link rel='alternate' type='text/html' href='https://netuse.dynamicmalloc.com/cgit/extra-cmake-modules.git/commit/?id=b02aac922797f9dbaaf35de54de61a1167984e51'/>
<id>b02aac922797f9dbaaf35de54de61a1167984e51</id>
<content type='text'>
- Test calling ecm_process_po_files_as_qm() without INSTALL_DESTINATION argument
- Test calling ecm_install_po_files_as_qm() with CMAKE_INSTALL_LOCALEDIR set
  and with LOCALE_INSTALL_DIR set

REVIEW: 118114
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Test calling ecm_process_po_files_as_qm() without INSTALL_DESTINATION argument
- Test calling ecm_install_po_files_as_qm() with CMAKE_INSTALL_LOCALEDIR set
  and with LOCALE_INSTALL_DIR set

REVIEW: 118114
</pre>
</div>
</content>
</entry>
<entry>
<title>Add ECMPoQmTools module</title>
<updated>2014-05-04T19:59:53+00:00</updated>
<author>
<name>Aurélien Gâteau</name>
<email>agateau@kde.org</email>
</author>
<published>2014-05-04T19:43:42+00:00</published>
<link rel='alternate' type='text/html' href='https://netuse.dynamicmalloc.com/cgit/extra-cmake-modules.git/commit/?id=73992f139276b75aeddf78f476644a2d82f9e802'/>
<id>73992f139276b75aeddf78f476644a2d82f9e802</id>
<content type='text'>
ecm_create_qm_from_po_files() was actually not very useful in practice.
So that is deprecated, to be removed before ECM 1.0.

Instead, the ECMPoQmTools provides several useful functions:
ecm_create_qm_loader() (which already existed in
ECMCreateQmFromPoFiles), ecm_process_po_files_as_qm() (which has the
same signature as gettext_process_po_files() from the FindGettext
module) and ecm_install_po_files_as_qm(), which is a convenience
function mostly for the benefit of KDE Frameworks (although potentially
useful for whatever other projects have the unusual requirement of a
Gettext translation workflow but no Gettext usage in the code).

NB: some clean-up to the documentation was done by Alex Merry
&lt;alex.merry@kde.org&gt; as part of this commit.

REVIEW: 117823
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
ecm_create_qm_from_po_files() was actually not very useful in practice.
So that is deprecated, to be removed before ECM 1.0.

Instead, the ECMPoQmTools provides several useful functions:
ecm_create_qm_loader() (which already existed in
ECMCreateQmFromPoFiles), ecm_process_po_files_as_qm() (which has the
same signature as gettext_process_po_files() from the FindGettext
module) and ecm_install_po_files_as_qm(), which is a convenience
function mostly for the benefit of KDE Frameworks (although potentially
useful for whatever other projects have the unusual requirement of a
Gettext translation workflow but no Gettext usage in the code).

NB: some clean-up to the documentation was done by Alex Merry
&lt;alex.merry@kde.org&gt; as part of this commit.

REVIEW: 117823
</pre>
</div>
</content>
</entry>
</feed>
