Open forslund opened 5 years ago
Import a po file like:
# HEADER msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2019-02-07 10:17+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Translate Toolkit 2.2.5\n" #: myfile.txt:1 msgid "this is my file" msgstr ""
Then modify the location tag to a new filename without changing the msgid:
# HEADER msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2019-02-07 10:17+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Translate Toolkit 2.2.5\n" #: myfile.md:1 msgid "this is my file" msgstr ""
Run pootle update_stores for the project.
pootle update_stores
Expected result: the location field / comment in the pootle db should be updated to reflect the new location.
Actual result: No change is detected and pootle still uses the old location.
pootle --version Pootle 2.8.2 (Django 1.10.8, Translate Toolkit 2.2.5)
Ubuntu 18.04
Steps to reproduce:
Import a po file like:
Then modify the location tag to a new filename without changing the msgid:
Run
pootle update_stores
for the project.Results (Expected/Actual):
Expected result: the location field / comment in the pootle db should be updated to reflect the new location.
Actual result: No change is detected and pootle still uses the old location.
Environment (i.e. 'pootle --version', DB, OS, Browser):
Ubuntu 18.04