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

Missing translations in all.js #1761

Closed
mkllnk opened this issue Aug 11, 2017 · 15 comments
Closed

Missing translations in all.js #1761

mkllnk opened this issue Aug 11, 2017 · 15 comments

Comments

@mkllnk
Copy link
Member

mkllnk commented Aug 11, 2017

@lin-d-hop encountered a broken sign-up form on the UK production server. It seems related to some missing translations in the compiled all.js file. We see the same on the Australian production server, but our sign-up form is working. From the file:

<span class=\"translation_missing\" title=\"translation missing: en-GB.spree.firstname\">Firstname</span>

There are eight translation missing errors in that file.

The visible errors on the UK production servers come from missing translations within Javascript.

[missing "en.welcome_to_ofn" translation]

These are generated by i18n-js which is looking for en translations while the en-GB locale is included in the all.js asset file.

This could be related to the new i18n-js gem introduced in #1564, but it could also be a configuration issue on the UK server.

@mkllnk mkllnk added this to the August dot point release milestone Aug 11, 2017
@daniellemoorhead
Copy link
Contributor

@lin-d-hop
Copy link
Contributor

Thanks for looking into this @mkllnk. Personally I am still stumped. So is @Matt-Yorkley.

Since this is affecting no other servers I think UK configuration is not playing nice with the new i18n-js gem. Definitely not solved by rebuilding assets, clearing cache etc.

@lin-d-hop
Copy link
Contributor

@Matt-Yorkley also tried some things on UK staging in this PR
#1757

@sineadfenton
Copy link

Translation Text

@jeronimo
Copy link
Contributor

jeronimo commented Aug 12, 2017

Ok. So the problem is that registration page uses different layout which does not include
screen shot 2017-08-12 at 10 05 37
partial _i18n_script.html.haml

It exists in darkswarm and admin layouts
screen shot 2017-08-12 at 10 06 41

But not the one that is used in registration.
screen shot 2017-08-12 at 10 12 26

Quick fix: deploy server with default_locale: en.
Normal fix: Add i18n-js related code to Spree generated layouts.

@lin-d-hop
Copy link
Contributor

lin-d-hop commented Aug 12, 2017

Officially fixed by @jeronimo
#1765

Just for clarity:
#1764 is a patch for v1.8.13.
#1765 is on current master

Since no one else is experiencing the problem it is probably fine to just make sure #1765 is merged before the next release.

Thanks everyone for putting the time in to fix this. This has been stressing me out for a week!

@mkllnk
Copy link
Member Author

mkllnk commented Aug 16, 2017

Great. That fix for the registration got merged. But there are still missing translations in the all.js file. There have been no reports to visible issues yet, but it is something that should be fixed. So I'm not closing this yet.

@daniellemoorhead
Copy link
Contributor

@mkllnk I assume this can't be closed yet due to the remaining translations not being done yet? If this is the case can you please change the milestone to September? Thanks.

@mkllnk
Copy link
Member Author

mkllnk commented Aug 25, 2017

True, this still needs fixing, but at least all visible issues are fixed.

@daniellemoorhead
Copy link
Contributor

REMAINING TO BE DONE FOR THIS ISSUE:

...there are still missing translations in the all.js file. There have been no reports to visible issues yet, but it is something that should be fixed.

@daniellemoorhead daniellemoorhead modified the milestones: UK Current, August dot point release Sep 1, 2017
@lin-d-hop lin-d-hop removed this from the UK Current milestone Dec 18, 2017
@daniellemoorhead
Copy link
Contributor

@sigmundpetersen did you check what @myriamboure suggested above?

I'd like to triage this issue, and either move it back into the backlog or ensure that it's being worked on and therefore worthy of sitting in the Code Review column.

Next steps for this?

@myriamboure
Copy link
Contributor

@daniellemoorhead this was fixed and has nothing to do with this PR I think so I deleted the posts. Don't need to have a look @sigmundpetersen it's all good :-) Still we need to know how to move that forward. Should we close this and open a better specified bug issue? It seems this one was open for something specific to uk that were fixed. If there is no visible error, do we need to keep it open? Or wait for the need to be here to fix it? @mkllnk

@mkllnk
Copy link
Member Author

mkllnk commented Feb 7, 2018

I think we should open a new issue with low priority for the remaining missing translations and close this one.

@myriamboure
Copy link
Contributor

I guess a dev who have access to the code should do it @mkllnk right? Cause as a user I have no idea what those missing translations refer to. Can you do it quickly? Else point someone else who can ;-)

@mkllnk
Copy link
Member Author

mkllnk commented Feb 7, 2018

I had another look and couldn't find any missing translations in the sign-up form. I'll close this one and we can open a new issue if we come across it.

@mkllnk mkllnk closed this as completed Feb 7, 2018
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

7 participants