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.
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
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 system- settings/ obj-x86_ 64-linux- gnu/po/ settings. js:14
#: /tmp/ubuntu-
msgid "Time & Date"
msgstr ""
Notice the line: system- settings/ obj-x86_ 64-linux- gnu/po/ settings. js:14
#: /tmp/ubuntu-
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: system- settings/ obj-x86_ 64-linux- gnu/po/ settings. js:14 workspace/ canonical/ ubuntu- system- settings/ trunk/builddir/ po/settings. js:14
-#: /tmp/ubuntu-
+#: /home/elopio/