With the Translate & Adapt app, you can add translations to your store for products, collections, blog posts, policies, and pages.
I updated our theme Impulse from version 7.1 to 7.2. Most translations are now gone, albeit not all of them. Navigation, pages and product content are still there. How can the new version be missing the translations as the base language is still available to all elements? Since the reference to the correct object is there, so should the translations or is this a bug in Translate & Adapt or the underlying Shopify architecture?
Is there a way of copying the translations from the old version to the new?
Solved! Go to the solution
This is an accepted solution.
@elenalauder @Ogenstad I think I might have a short term fix for you to help copy the translations from the old theme to the new theme, based on the translations CSV. You'll need the CSV for both the old theme, with its translations in place, and the new one, without translations. Languages > Settings > Export gives you whichever theme is live at the time, so you'll need to make a theme temporarily live to do the export. Only do this for one language at a time.
Column G = Source content (i.e. English, if your default language is set to English)
Column H = Translations
=IFERROR(VLOOKUP(G2, SORT({Sheet2!G:H, LEN(Sheet2!H:H)}, 3, FALSE), 2, FALSE), "")
This should port old theme translations to your new theme, without the need to manually copy and paste. These translations will be visible and editable in Translate & Adapt, and other Translations API compliant apps.
Hope that helps!
Rich
To learn more visit the Shopify Help Center or the Community Blog.
Hello @Ogenstad ,
We are Transcy - a powerful translator and currencies converter.
Sorry for the issue you're facing with, maybe there's some errors occurs while the update process is running. To copy the translation from the old version to the new, you can try:
Hope these can help, please hit the Like Button or mark this as Accepted Solution to let us know, it means a lot to us.
Regards,
Transcy team.
Hey @Ogenstad, Theme translations are local to that theme. This is because themes can differ vastly and each element has a unique id - there's no easy way to port them from one theme to another unless the theme is duplicated. They will need to be manually copied to the new theme. To do that, make the old theme live briefly, export the translations CSV (Settings > Languages > Export) and then make the new theme live and do the same. Filter down to ONLNE_STORE_THEME (delete everything else) and then compare the two. Manually update column H on the new theme's CSV. Unfortunately the difference in field IDs means that this is the way to do it.
To learn more visit the Shopify Help Center or the Community Blog.
Hi Richbrown_staff,
I have the same problem. After updating my theme to the latest version, I can't find the old translations.
I found out myself that the translations are not in the exported zipped theme (I searched the files with a text editor).
So the translation must be local on the shopify server.
Now can you please explain me again how I can transfer the translation from the old theme to the new one.
I have found the export/import function of the translation in shopify.
Can I now simply export the translation from the old theme and import it into the new theme? Is that the way to do it?
Do I have to do this manually, do I have to edit the .csv file in excel?
I would be very grateful if you can help me further, or do I have to ask the support? Strange I have unfortunately in the shopify FAQ no guidance found, strange also it must have nevertheless other people also this problem.
How do the professionals solve it?
Thanks a lot in advance for the effort and hard work.
Best regards, Elena
This is an accepted solution.
@elenalauder @Ogenstad I think I might have a short term fix for you to help copy the translations from the old theme to the new theme, based on the translations CSV. You'll need the CSV for both the old theme, with its translations in place, and the new one, without translations. Languages > Settings > Export gives you whichever theme is live at the time, so you'll need to make a theme temporarily live to do the export. Only do this for one language at a time.
Column G = Source content (i.e. English, if your default language is set to English)
Column H = Translations
=IFERROR(VLOOKUP(G2, SORT({Sheet2!G:H, LEN(Sheet2!H:H)}, 3, FALSE), 2, FALSE), "")
This should port old theme translations to your new theme, without the need to manually copy and paste. These translations will be visible and editable in Translate & Adapt, and other Translations API compliant apps.
Hope that helps!
Rich
To learn more visit the Shopify Help Center or the Community Blog.
Hello richbrown_staff, thank you for taking the time to explain in detail.
I understood everything, it all worked, but somehow the formula is not correct.
Did you maybe made a mistake, when inserting the formula in H2 in Sheet 1 I get an error in Google Sheet always "Parser error, check the formula syntax).
=IFERROR(VLOOKUP(G2, SORT({Sheet2!G:H, LEN(Sheet2!H:H)}, 3, FALSE), 2, FALSE), "")
Thanks for a reply in advance.
Kind regards, Elena
Hey @elenalauder - I sent you a direct message 👍
To learn more visit the Shopify Help Center or the Community Blog.
Hello Richbrown_staff,
Thanks for the motivation to help me and thanks for the efforts.
I have found out the problem myself.
I had this before, the formula does not match my german interface.
The formula must be language specific for it to work.
If someone also has the same problem, here is the formula for german Google sheet:
=WENNFEHLER(SVERWEIS(G2, SORT({Sheet2!G:H, LÄNGE(Sheet2!H:H)}, 3, FALSCH), 2, FALSCH), "")
It works wonderfully, cool solution. Although in the future you will develop a better solution how to update the theme in general. Copying back and forth is already tedious.
Best regards and thanks again,
Elena
Edit: I understand shopify has its advantages and disadvantages. A lot of it is also price related. But yes still think some things should be implemented differently. Especially the theme update should be easy to implement I think, unlike other systems.
I never knew Google Sheets did formulas in different languages - thanks for
sharing!
So glad it worked for you. We'll definitely look to integrate it in natively at some point in the future. Best wishes, Rich
To learn more visit the Shopify Help Center or the Community Blog.
This is the real only solution?
Is not sustainable to be downloading, making vlookups and re-uploading this everytime a theme is updated. Shopify would need to bring a better solution for this.
HI @lasrv - every time you update your theme, or change your theme? Can you let me know the workflow you follow where you're finding that the ONLINE_STORE_THEME field ids are regularly changing?
To learn more visit the Shopify Help Center or the Community Blog.
I've now come to the point where I'm going to try and upgrade our theme.
Appart from language translatations, each product image is also translated (both from a ALT-perspective but also from a file perspective). Do I have to reuppload and remap thousands of images?
Being an IT-architect of enterprise systems for more than 20 years it is clear to me that Shopify is not built for international shops. Everything is fixes and additions to a single market platform.
//Christer
Hi @Ogenstad , I'll send you a DM
To learn more visit the Shopify Help Center or the Community Blog.
Why do we only want to work with ONLINE_STORE_THEME, what about all COLLECTION and PRODUCT translations?
Translations for all resource types (see list) except ONLINE_STORE_THEME are not unique to the theme and are saved to our database via the Translations API, so persist regardless of theme. Change your theme and your COLLECTION and PRODUCT translations will stay there. As each theme is different, this is the reason theme translations behave this way, currently.
To learn more visit the Shopify Help Center or the Community Blog.
Seems to be working although the script needs to be ran per language, i.e. I had to make two sheets per language to get it all sorted. Still it's better than doing each manually.
Now there's just 4000 images and 4000 ALT-texts that need to be updated manually, one-by-one.
Thank you. This worked like a charm. However, I do have some Ecomposer sections in my theme that I built and its translations are not copying over to the new theme. I have tried to search those texts within the CSVs but it seems like the translations for the Ecomposer pages arent even part of the export, hence not copying over.
I do see the ar.json file in my locales folder and it does have the Ecomposer translations too but copying this file over to the new theme didn't help.
User | RANK |
---|---|
2 | |
2 | |
2 | |
1 | |
1 |
Make the shift from discounts to donations, and witness your business not only thrive fina...
By Holly Dec 4, 2023On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023