Closed
Bug 1476945
Opened 6 years ago
Closed 6 years ago
[FTL] Query TM with simple strings
Categories
(Webtools Graveyard :: Pontoon, enhancement, P2)
Webtools Graveyard
Pontoon
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: etrapani, Assigned: mathjazz)
Details
Attachments
(4 files)
I just started translating Common Voice and I have to manually search in the Machinery textbos in order to get the translations for language names from other projects.
It would be great if the suggestions were shown automatically.
Assignee | ||
Comment 1•6 years ago
|
||
That should also work as described. Could you provide a link?
Reporter | ||
Comment 2•6 years ago
|
||
For example, I'm about to translate "Arabic"[1] and the Machinery tab says "No translations available". If I type "Arabic" in "type to search machinery", then I get two 100% translations from memory.
In the case of "Breton"[2], it doesn't help to search "Breton", I need to search "breton" (case sensitive), but then I get the suggestion for "Breton"! (with initial uppercase). I'll leave it untranslated so that you can check it.
[1] https://pontoon.mozilla.org/eo/common-voice/messages.ftl/?string=179931
[2] https://pontoon.mozilla.org/eo/common-voice/messages.ftl/?string=179142
Reporter | ||
Comment 3•6 years ago
|
||
Upon first visit to "Breton" string
Reporter | ||
Comment 4•6 years ago
|
||
After I search "Breton"
Reporter | ||
Comment 5•6 years ago
|
||
After I search "breton" (lowercase), with suggestion (uppercase)
Reporter | ||
Comment 6•6 years ago
|
||
Is there another way to get the already translated strings from another project while the suggestion machinery is being fixed? From Firefox to Common Voice. I tried exporting, to do the suggestions off-line and then upload the file, but they are ftl files and I don't have tools for them.
Assignee | ||
Comment 7•6 years ago
|
||
Thanks for the detailed bug report, Eduardo! I'm taking this bug.
Here's what's happening:
For FTL strings, we query TM with the entire source of the string (e.g. "ar = Arabic" instead of "Arabic"), because we also store FTL strings in TM as source values. Since the vast majority of string in TM are non-FTL, we should change that and send query as a simple string.
As a consequence, we'll miss (short) FTL strings, but that's only until bug 1453341 is fixed, where we'll convert FTL strings in the TM to only include simple strings.
Changing the summary to reflect that.
Assignee: nobody → m
Priority: -- → P2
Summary: No automatic suggestions from translation memory in new project → [FTL] Query TM with simple strings
Comment 8•6 years ago
|
||
Comment 9•6 years ago
|
||
Commit pushed to master at https://github.com/mozilla/pontoon
https://github.com/mozilla/pontoon/commit/b369b67b97275536236c647ac0f8778f7cc2f9f8
Fix bug 1476945: [FTL] Query TM with simple strings (#1027)
Updated•6 years ago
|
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 10•6 years ago
|
||
When will the fix be available in Pontoon? Even though the bug appears as fixed, I don't see any change yet ...
Assignee | ||
Comment 11•6 years ago
|
||
It should be up now.
Updated•3 years ago
|
Product: Webtools → Webtools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•