Closed
Bug 1521523
Opened 7 years ago
Closed 7 years ago
[FTL] Terms incorrectly read post fluent syntax 0.8 update
Categories
(Webtools Graveyard :: Pontoon, enhancement, P1)
Webtools Graveyard
Pontoon
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mathjazz, Assigned: mathjazz)
Details
Attachments
(2 external files)
Since the upgrade to Fluent Syntax 0.8, Pontoon reads Term keys from VCS without the "-" in the beginning.
That prevents it from comparing Term translations with corresponding Term entities, but can also import bad Term entities.
Comment 1•7 years ago
|
||
Comment 2•7 years ago
|
||
Commit pushed to master at https://github.com/mozilla/pontoon
https://github.com/mozilla/pontoon/commit/d7d3d9af2d09703bff44b486910c876a65f9fe37
Fix bug 1521523: [FTL] Hardcode - in front of Term keys (#1174)
Also: Show nested selectors in text editor.
Updated•7 years ago
|
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 3•7 years ago
•
|
||
There's another place where we need to update the key:
Traceback (most recent call last):
File "/app/.heroku/python/lib/python2.7/site-packages/celery/app/trace.py", line 240, in trace_task
R = retval = fun(*args, **kwargs)
File "/app/.heroku/python/lib/python2.7/site-packages/newrelic/hooks/application_celery.py", line 84, in wrapper
return wrapped(*args, **kwargs)
File "/app/.heroku/python/lib/python2.7/site-packages/celery/app/trace.py", line 438, in __protected_call__
return self.run(*args, **kwargs)
File "/app/pontoon/sync/core.py", line 62, in wrapped_func
return func(self, *args, **kwargs)
File "/app/pontoon/sync/tasks.py", line 297, in sync_translations
changeset.execute()
File "/app/pontoon/sync/changeset.py", line 102, in execute
self.execute_update_vcs()
File "/app/pontoon/sync/changeset.py", line 169, in execute_update_vcs
resource.save(self.locale)
File "/app/pontoon/sync/vcs/models.py", line 674, in save
self.files[locale].save(locale)
File "/app/pontoon/sync/formats/ftl.py", line 131, in save
entity = self.entities[obj.id.name]
KeyError: u'brand'
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 4•7 years ago
|
||
Comment 5•7 years ago
|
||
Commit pushed to master at https://github.com/mozilla/pontoon
https://github.com/mozilla/pontoon/commit/977fecbc1bc64832937aca3b99f0222108edb550
Fix bug 1521523: [FTL] Also hardcode - on serialization (#1176)
Status: REOPENED → RESOLVED
Closed: 7 years ago → 7 years ago
Resolution: --- → FIXED
Updated•5 years ago
|
Product: Webtools → Webtools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•