fbpx
Skip to content
Questions & AnswersCategory: QuestionsTheme hard coded parts not translating anymore after upgrading my theme's most recent version
charlotte asked 8 years ago
Hello Dave, I have been using Multilingualizer on my shopify website since oct 16,2015 and it worked perfectly fine between English and French. I was looking to update my theme (responsive 5.0 to 5.2.1) but when I configure it (without publishing it yet) , the hard coding part doesn't translate anymore as it used to do.  The products and pages translate but not the hard coding parts as it used to do. The cart, checkout, log in handles in the top bar and the newsletter subsciption form remain in english even when I switch language.  I tried pasting the Multilingualizer code from my account again but nothing has changed. Is there anything to do to make it work properly again ? My website adress is https://nibbana-designs.myshopify.com  (here you will see the old theme version that works)   Many thanks,
5 Answers
charlotte answered 8 years ago

Hello Dave,
Would you mind to answer please ? I am desperate to upgrade my theme to the newest version but I am stuck with this hard coding translation problem. Thank you

Dave Hilditch replied 8 years ago

Answered – I’m adding this little snippet of code to the latest version since it seems to affect a few new themes coming out.

Matina answered 8 years ago

 I have just bought the Multilingualizer and pasted the Code in header and footer. However, the hard part of the theme (a free theme of Shopify) does not reflect the languages chosen. 
When I press the language button in the floating bar, the hard part of the theme stays in the initial language. Disappointed so far… 
Hopefully, I will get some help and an answer. Thank you. 

charlotte replied 8 years ago

Hello Matina , I have exactly the same problem with the newest upgrade of my theme. I am also hoping for some help from Dave but unfortunately no luck in getting an answer for more than 2 weeks …!!! Good product but terrible customer service, apparently :/

Matina replied 8 years ago

Hi Charlotte, I am asking a refund. I simply cannot work without support at all; regardless how awesome a product may be. The amount of frustration has reached its peak as far as I am concerned. What a waste. Sorry, you are facing this issue as well. At least, I feel less lonely. Take care!

charlotte replied 8 years ago

Hello Matina , I have exactly the same problem with the newest upgrade of my theme. I am also hoping for some help from Dave but unfortunately no luck in getting an answer for more than 2 weeks …!!! Good product but terrible customer service, apparently :/

Dave Hilditch replied 8 years ago

Matina – are you expecting it to do translations for you or am I misunderstanding your comment?

Matina replied 8 years ago

Dave: I am not. I went through all the tutorials and did the translations – I meant the hardcode of the site. The translations did appear fine. I have sent email to your support 2x . Please be so kind as to answer those. Kind regards-

Dave Hilditch Staff answered 8 years ago

Can you try adding this little bit of code and let me know if it fixes?
I’m trying to guess from the theme upgrade – I guess maybe they’re using Javascript to load content. Add this code after the multilingualizer code.

<script>window.setInterval(function() { mutated = true;}, 250);</script>

charlotte replied 8 years ago

Hello Dave,
Thank you for your reply. I added the code but it doesn’t fix the problem. The hard coding part always appear in english even tough I’ve translated it. Can you please find a solution ? I won’t be the one with this problem as it seems it won’t work with all the newest versions of Shopify themes. I am desperate to upgrade my theme :/

Dave Hilditch replied 8 years ago

Hi Charlotte – can you tell me which text you have translated in the hard coded part so I can look and see why it’s not working? Did you use the long form or short form? e.g. ….english..french…. or english..french – please let me know text to look for and URL to look at so I can help. It will most likely be missing language block markers at the beginning or end of a block of text.

charlotte replied 8 years ago

Hi Dave,
Sorry I forgot to reply. I used the long form and I translated everything including hard coded parts ( everything I was able to ) It used to work before I download the newest version of my theme. I was configuring it and I noticed the hard coded parts were not translating which is really annoying as I have both french and english speakers customers. The theme you see when you click on my adress is the old one (the one that works fine) . As it works just fine my guess is I didn’t forget any marker but I am affraid the theme update has made your plugin not compatible with it’s new version. Please advise, many thanks for your help

answered 8 years ago

Greetings,
as this question hasn’t had any follow up in quite a while, I take it this issue has been resolved by Dave by now. Don’t hesitate to post a new question or answer here if that’s not the case.

johnite Staff answered 8 years ago

Hi All,
Please find below a full guide to translating hard coded text on Multilingualizer.

Translating the hard-coded text in Squarespace
If you are using Shopify, you get access to the underlying theme files to edit the translations and can use the Multilingualizer formatting to make these pieces of text bilingual/multilingual.
With Squarespace templates, you *can* get access to these files as a developer but it’s non-trivial. There are hard-coded pieces of text such as error-messages on forms, placeholders for search boxes, form titles etc.
To translate these pieces of text, please add the Squarespace Extensions file to your footer. You can find the extensions file here:
https://www.multilingualizer.com/mlcode/squarespace.extension.english.french.txt
Note: The above extensions file includes translations for most Squarespace templates from English to French. For other languages, you will need to modify the translations yourself. If you are using English and French, you can just paste the code above into your footer (below any other scripts you may already have).
Finally – you can extend the hard-coded translations script yourself if you find your theme has extra pieces of english-only text we’ve missed.
In the Squarespace extensions script, on the line following the last line which begins like this:
jQuery(‘*’).replaceText(…….)
Add a line like the following:
jQuery(‘*’).replaceText(escapeRegExp(“Enter hardcoded text to translate here”), “Enter translation here”);
You can repeat as necessary for any other pieces of hard-coded text that are missing from your specific theme.

We use cookies

We use cookies for various things on our site, including our on-site chat bubble (if you use it), our comment forms (if you use them) and for session handling (if you log in).

Other than that, we use cookies to identify where traffic came from to help us understand which traffic turns into sales, we use a cookie for Google Analytics traffic analysis and we use a cookie to customise adverts for our own products we think you'll be interested in.

You can read more detail in our privacy policy page. Please click 'Accept' or 'Decline' to continue.