infinityunit Posted December 16, 2012 Share Posted December 16, 2012 Hello, I'm building a bilingual site. French and English... On the Contact block, it is written that my hotline is available 24/7... I'm afaraid that is not the case :-D Diving into the code, I was able to change the text for the French part of the site (by going to the module/blockcontact/translations/fr.php). But however I was unable to locate the English part... I tried modifying the "blockcontact.tpl" file, that did change the text and I don't quite understand how, it also when over the French text with the result that no matter what was the selected language, it was always the same text in English... I was able to revert to the version before... So no harm was done there... Anyone can help identify which file needs to be edited? Many thanks P. Link to comment Share on other sites More sharing options...
El Patron Posted December 16, 2012 Share Posted December 16, 2012 you don't need to change the code.. back office-->tools-->translations (click installed modules) (1.4) back office-->localization-->translations (1.5) click the language you want to work with find the text and change it Link to comment Share on other sites More sharing options...
infinityunit Posted December 16, 2012 Author Share Posted December 16, 2012 I'm afraid your answer brings confusion in my mind... What do you mean by "find the text and change it" Where do I do that... Maybe I wasn't clear enough in my explanations... I don't want to translate text... I want to modify text... The generic text that comes out after the installation says that "my hotline is open 24/7... That is not true... I want to modify this for a more acurate statement like : "call us during business hours" As I mentionned. I modified the fr.php file and that worked for the French site, but it did nothing to the English site... Maybe the way I see the problem is wrong, maybe there are other ways of doing what I want but I wouldn't know... I try my best with the knowledge I have... Which is limited... Is it a little bit more clear on what I want to do? Thanks p. Link to comment Share on other sites More sharing options...
El Patron Posted December 16, 2012 Share Posted December 16, 2012 you don't need to change the code.. back office-->tools-->translations (click installed modules) (1.4) back office-->localization-->translations (1.5) click the language you want to work with find the text and change it did u follow these instructions? Link to comment Share on other sites More sharing options...
infinityunit Posted December 16, 2012 Author Share Posted December 16, 2012 I tried, but I got a php error that I don't understand : "Warning, your PHP configuration limits the maximum number of fields to post in a form: 1000 for max_input_vars. Please ask your hosting provider to increase the this limit to 1318 at least or edit the translation file manually." so I guess I need to contact my Hosting provider and ask them to change the settings... No wonder I was lost... Anyhow, When this will work correctly, will I be able to edit my text on my own? Do I need to restore the fr.php file that I modified manually? Many thanks P. Link to comment Share on other sites More sharing options...
El Patron Posted December 16, 2012 Share Posted December 16, 2012 I tried, but I got a php error that I don't understand : "Warning, your PHP configuration limits the maximum number of fields to post in a form: 1000 for max_input_vars. Please ask your hosting provider to increase the this limit to 1318 at least or edit the translation file manually." so I guess I need to contact my Hosting provider and ask them to change the settings... No wonder I was lost... Anyhow, When this will work correctly, will I be able to edit my text on my own? Do I need to restore the fr.php file that I modified manually? Many thanks P. you should restore any code changes you made. having your hosting provider up your limits which will then allow you to mange your text...priceless good luck! 1 Link to comment Share on other sites More sharing options...
infinityunit Posted December 16, 2012 Author Share Posted December 16, 2012 Thanks, that should go well, I've been with this host for many years and have had sometimes some unusual request... They always collaborated... We'll see :-D Link to comment Share on other sites More sharing options...
infinityunit Posted December 17, 2012 Author Share Posted December 17, 2012 Hey, despite their good will and all, I was informed that my host run on PHP 5.3.0. And it seems that the error message refers to PHP 5.3.9. Is is possible to make it work with the earlier version of PHP? Should I repost this message in another forum? Thanks Link to comment Share on other sites More sharing options...
infinityunit Posted December 18, 2012 Author Share Posted December 18, 2012 Problem solved... once the php issue was fixed, the program behaved as you said it would... Turns out it is much easier to update texts file than I thought. Thanks p. 1 Link to comment Share on other sites More sharing options...
Reagg Posted September 3, 2013 Share Posted September 3, 2013 Had exactly the same problem and fund my way out of it go to: themes/default/modules/blockcontact and change the original English version. Hope that help someone : ) You can see the changes I made on my website: http://plazzastore.com/en/ 1 Link to comment Share on other sites More sharing options...
streletsky Posted May 21, 2017 Share Posted May 21, 2017 if you change something in module/blockcontact/translations/fr.php don't forget you have already cached one in cache/smarty/blockcontact/../../../ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now