Comment 6 for bug 1357607

Revision history for this message
Leo Arias (elopio) wrote : Re: make pot uses strings in builddir/po/settings.js

The string is not duplicated nor listed twice, but it comes from two sources. One of them dependent on the builddir you use, so if you use a different dir from the one the previous commiter used, you will get the pot updated even if you didn't update the source files.

In the example I pasted above:

#: ../plugins/time-date//PageComponent.qml:29
#: /tmp/ubuntu-system-settings/obj-x86_64-linux-gnu/po/settings.js:14
msgid "Time & Date"
msgstr ""

Notice the line:
#: /tmp/ubuntu-system-settings/obj-x86_64-linux-gnu/po/settings.js:14

That line shouldn't be part of the pot.

Now from the root of the project, do:
mkdir builddir
cd builddir
cmake ..
make pot

An notice that the pot will be updated with something like:
-#: /tmp/ubuntu-system-settings/obj-x86_64-linux-gnu/po/settings.js:14
+#: /home/elopio/workspace/canonical/ubuntu-system-settings/trunk/builddir/po/settings.js:14