Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated location information doesn #6890

Open
forslund opened this issue Feb 7, 2019 · 0 comments
Open

Updated location information doesn #6890

forslund opened this issue Feb 7, 2019 · 0 comments

Comments

@forslund
Copy link

forslund commented Feb 7, 2019

Steps to reproduce:

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.

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):

pootle --version
Pootle 2.8.2 (Django 1.10.8, Translate Toolkit 2.2.5)

Ubuntu 18.04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant