-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Translation error after updating from 4.7 to 4.8.1 #12047
Comments
Hey @pkatek In your spree initializer please set: Spree::RuntimeConfig.always_use_translations = true I've missed this one in the upgrade guide if you're upgrading from 4.7, will add it shortly |
Thanks! |
When I switch to another store that uses only one language (CS), everything is fine. |
When I enter the values and change the default language, an entry like this is made in Store translations @damianlegawiec.
|
Translating the store is the least of the problems, it's the same with all translations, products, taxonomies, variants, keys in properties. And if I have 7,000 products and a lot of other parameters, I wouldn't want to do anything manually.Wiadomość napisana przez CHUCKYUEE ***@***.***> w dniu 29.05.2024, o godz. 02:40:
@pkatek I manually copied the default locale from the translation table to the main table and remove then.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Because Mobility plugin column_fallback default locale content was store main table, other locale store in translation table. If you use default locale :en, only in form to change it. other language can be use translate form to change. So I use this migration code at core/db/migrate/20230117121303_transfer_taxonomy_data_to_translatable_tables.rb:
If your have other language, must change truncate method to delete only locale=en |
@pkatek @chuckyuee please upgrade to v4.8.2 |
Now it works great! Thanks! |
Context
I am reporting an error in the application after updating to 4.8.1.
By default, my language is set to English (US).
And there are the following errors:
s = Spree::Store.first.
In the console:
irb(main):016> s.seo_title_en
=> nil
irb(main):017> s.seo_title_cs
=> "Vylepšete svůj styl s YES: Nádherné šperky pro každou příležitost."
Translations are indicated in s.translations, everything worked fine before the update.
After the update, should I do any additional rake task migrations or anything else apart from the basic ones?
The text was updated successfully, but these errors were encountered: