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

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1357607

Title:
  make pot uses strings in builddir/po/settings.js

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-system-settings/+bug/1357607/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to