Arnytoo Posted February 23, 2012 Share Posted February 23, 2012 Hi, I have a problem which I can't solve myself. I'm trying to translate my themes module, but nothing seems to help. So I think you guys can help me. Here is my modules code: <!-- Block user information module HEADER --> {if $logged} <div class="v2-header_links floatr" style="margin:7px 30px 0 0;font-weight:700;color:#FFFFFF;height:37px"> {$customerName} (<a href="{$link->getPageLink('index.php')}?mylogout" title="{l s='Log out' mod='blockuserinfo'}">{l s='Log out' mod='blockuserinfo'}</a>) </div> {else} <div class="floatr"> <a href="{$link->getPageLink('my-account.php', true)}" class="v2-signin"> <span>{l s='Sign in' mod='blockuserinfo'}</span> </a> </div> {/if} <div class="flatclear"> </div> <!-- /Block user information module HEADER --> I need to change "Log out" to "Atsijungti" and "Sign in" to "Prisijungti". But nothing helps. What I tried: 1) Translating words; 2) Changing <span> atributte to <p> 3) Writing simplest html links I haven't changed modules name. I'm just out of ideas. Need your help. Any suggestions? Link to comment Share on other sites More sharing options...
Mike Kranzler Posted February 23, 2012 Share Posted February 23, 2012 Hi Arnytoo, Have you tried using the translations tool in your Back Office under Tools > Translations > Modules Translations instead? -Mike Link to comment Share on other sites More sharing options...
Arnytoo Posted February 24, 2012 Author Share Posted February 24, 2012 Hello Mike. Yes modules are translated to. Any more suggestions? Theres have to be a way. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted February 24, 2012 Share Posted February 24, 2012 Hello Mike. Yes modules are translated to. Any more suggestions? Theres have to be a way. Can you please post your URL so that I can take a look at this for you? -Mike Link to comment Share on other sites More sharing options...
Arnytoo Posted February 24, 2012 Author Share Posted February 24, 2012 Sure http://www.e-pack.lt the white "Sign in" spot at the top of the website. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted February 24, 2012 Share Posted February 24, 2012 Hi Arnytoo, I took a look at this for you, and you shouldn't have any issues translating this if you go to your Back Office > Tools > Translations > Modules Translations (you can also search for "Sign In" under Front Office Translations just in case) and then search for the Block user information module. Have you already done this through the Back Office? I only see your attempt to do so in the code. -Mike Link to comment Share on other sites More sharing options...
Arnytoo Posted February 24, 2012 Author Share Posted February 24, 2012 I double checked them, all of those are translated, front office, backofffice modules. And I know that it's translated corectly, because when I disable this theme user module I get default module that is with the correct translation. So It must be something In this theme... Any more thougts? Sorry for low English. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted February 24, 2012 Share Posted February 24, 2012 Can you please try to temporarily switch back to the default theme to see if it shows up any differently there? -Mike Link to comment Share on other sites More sharing options...
Arnytoo Posted February 24, 2012 Author Share Posted February 24, 2012 Yes as I said this theme has It's own userinfo module. Even on this theme if I disable It's module, and use the default I get the correct translation but It's not the option for me. So there is something with this themes userinfo module. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted February 24, 2012 Share Posted February 24, 2012 Hi Arnytoo, I just installed this theme on a test site, and had no issues changing the text of that button. Can you please watch this screencast and let me know if these are the same steps you took to update the translation? -Mike 1 Link to comment Share on other sites More sharing options...
Arnytoo Posted February 24, 2012 Author Share Posted February 24, 2012 Thank you! My rookie mistake was that I first tried to change translation by editting .tpl file by hand and after that I didn't get those fields to translate. Anyways thank you very much for wasting so much precios time on someone who is not giving any profit to your company. Your an excelent helper, keep up the good job. And thanks again . Link to comment Share on other sites More sharing options...
Mike Kranzler Posted February 27, 2012 Share Posted February 27, 2012 Great, I'm glad I could help! We designed our software to make this nice and easy for you, so that you don't need to go into the .tpl files for this sort of change. I'll go ahead and mark this thread as solved for you. Happy selling! -Mike Link to comment Share on other sites More sharing options...
DeepVoid Posted July 5, 2012 Share Posted July 5, 2012 (edited) I have a similar issue with a custom theme module. This module is located in: /themes/customtheme/modules/newmodule.tpl I would like to translate this string in the newmodule.tpl file: <h4>{l s="Informations sur le magasin" mod='blockcms'}</h4> so in the same folder I've created a file named it.php (I need to translate to italian) and in this file added this statement: <?php global $_MODULE; $_MODULE = array(); $_MODULE['newmodule_ae1a4506b85b2f6ea951a71976f30a2d'] = 'Ciao!'; ?> The long alphanumeric string is the MD5 hashing of the original string to be translated, with "newmodule_" preceding it. Nothing works. Where am I wrong? Edited July 5, 2012 by Falco Stellare (see edit history) Link to comment Share on other sites More sharing options...
halennoor Posted July 12, 2012 Share Posted July 12, 2012 I have a similar issue with a custom theme module. This module is located in: /themes/customtheme/modules/newmodule.tpl I would like to translate this string in the newmodule.tpl file: <h4>{l s="Informations sur le magasin" mod='blockcms'}</h4> so in the same folder I've created a file named it.php (I need to translate to italian) and in this file added this statement: <?php global $_MODULE; $_MODULE = array(); $_MODULE['newmodule_ae1a4506b85b2f6ea951a71976f30a2d'] = 'Ciao!'; ?> The long alphanumeric string is the MD5 hashing of the original string to be translated, with "newmodule_" preceding it. Nothing works. Where am I wrong? shouldn't your 'blockcms' in this code be changed to the module name e.g. newmodule? Try this solution in this topic--> here --inserting new words in a module and translating it. 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