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

Fix bug 1384846: Fix diff view for FTL strings #649

Merged
merged 1 commit into from
Jul 27, 2017

Conversation

mathjazz
Copy link
Collaborator

This worked for all formats except for FTL, because getSimplePreview()
returns the fallback value for them, which is passed as the second
argument.

For FTL strings we need to generate their presentation using their
source, which is passed as the first argument. Since the same argument
was passed for the base string and the translate string, the diff
was always empty.

@jotes r?

This worked for all formats except for FTL, because getSimplePreview()
returns the fallback value for them, which is passed as the second
argument.

For FTL strings we need to generate their presentation using their
source, which is passed as the first argument. Since the same argument
was passed for the base string and the translate string, the diff
was always empty.
Copy link
Collaborator

@jotes jotes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx for explanation. lgtfm, however I'd create a bug to create tests for the javascript code/UI of Pontoon. What do you think @adngdb ?

@mathjazz mathjazz deleted the bug-1384846 branch July 27, 2017 18:41
@mathjazz mathjazz merged commit 004e092 into mozilla:master Jul 27, 2017
@adngdb
Copy link
Collaborator

adngdb commented Jul 28, 2017

Oh how I'd love to have front-end unit tests! Though as it is now, it's going to be very hard to do. Let's wait until we rewrite the translate view with something else, and then make sure we have good tests from the start.

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

Successfully merging this pull request may close these issues.

None yet

3 participants