It should be possible to migrate strings using FTL files as source
Categories
(Localization Infrastructure and Tools :: Fluent Migration, enhancement, P3)
Tracking
(Not tracked)
People
(Reporter: flod, Assigned: Pike)
References
Details
Attachments
(1 file)
Comment 1•7 years ago
|
||
Assignee | ||
Comment 2•7 years ago
|
||
Reporter | ||
Comment 3•7 years ago
|
||
Comment 4•7 years ago
|
||
Assignee | ||
Comment 5•7 years ago
|
||
Comment 6•7 years ago
|
||
Assignee | ||
Comment 7•7 years ago
|
||
Reporter | ||
Comment 8•7 years ago
|
||
Comment 9•7 years ago
|
||
Assignee | ||
Comment 10•7 years ago
|
||
Comment 11•7 years ago
|
||
Reporter | ||
Comment 12•7 years ago
|
||
Comment 13•7 years ago
|
||
Reporter | ||
Comment 14•6 years ago
|
||
For the record, we have use cases for #2 (from comment 1): Building new FTL messages out of unmodified values or attributes existing FTL messages.
In both cases we'd need to move a string from a value attribute to the message value (as is)
https://phabricator.services.mozilla.com/D18489
https://phabricator.services.mozilla.com/D17964
I would expect this to happen more frequently as we move more content to Fluent.
Reporter | ||
Comment 15•6 years ago
|
||
We have another couple of cases
https://phabricator.services.mozilla.com/D23950 (4 strings)
Bug 1532651 doesn't have a patch, but they're discussing about changing all checkboxes…
Assignee | ||
Comment 16•5 years ago
|
||
Bug 1536507 resolved our initial story #2, that is, we can copy patterns around, and with that, also copy Messages. We can't copy Terms, as they have unknown attributes.
Is that good enough to resolve this bug?
Reporter | ||
Comment 17•5 years ago
|
||
We might still need some sort of REPLACE()? For example, if we decide to change the syntax for overlays, we're pretty much losing all existing strings.
Assignee | ||
Comment 18•5 years ago
|
||
This only has the bare core in transforms
, with examples on
how to use it in test_transform_pattern
.
We should collect some actual examples in practice before
declaring some of them to be an actual API. In the meantime,
recipes can do what the tests do, and just implement the
NodeTransformer bits to do their magic.
Updated•5 years ago
|
Assignee | ||
Comment 19•5 years ago
|
||
Gonna cut a release with this soon.
Description
•