duimstra Posted October 28, 2010 Share Posted October 28, 2010 Hi!I'm translating the Specials module (blockspecials). I go to Back Office > Translations > Module translations and enter the correct translation.I should see "Akcije" instead of "Specials", but I don't, unless I delete this file: /myshop.com/themes/mytheme/modules/blockspecials/sl.php When I delete this file, the translation becomes active. The trouble is that everytime I enter translation in Back Office, these sl.php files are generated.Any idea what I'm doing wrong?Thanks! Link to comment Share on other sites More sharing options...
rocky Posted October 28, 2010 Share Posted October 28, 2010 It is normal for that file to be generated. That is how PrestaShop stores module translations. What is weird is being able to create translations, but not modify them. What permissions does the file have? Your server might not be giving the file enough permissions for PrestaShop to modify it. Link to comment Share on other sites More sharing options...
duimstra Posted October 28, 2010 Author Share Posted October 28, 2010 I'm developing on my localhost (Windows 7+ Apache 2.2). The files have correct permissons, AFAIK.Is it correct that the contents of SL.php is alwas only this? <?php global $_MODULE; $_MODULE = array(); I see that every module has this kind of files (en.php, sl.php, de.php).I tried translating my "blockuserinfo" module, but the same problem appears.Once I enter my translations using BackOffice, a SL.php file is generated and translations in BO are ignored.When I delete the SL.php file, translations from BO appear fine.Weird?! (: Link to comment Share on other sites More sharing options...
rocky Posted October 28, 2010 Share Posted October 28, 2010 That is what the file looks like when there aren't any translations. There should be more lines with the translations. I know that increasing the max post size has helped some people whose translations won't save. Link to comment Share on other sites More sharing options...
duimstra Posted October 28, 2010 Author Share Posted October 28, 2010 Yes, you are quite right!I've got 2 SL.php files actually: /myshop.com/modules/blockspecials/sl.php and /myshop.com/themes/mytheme/modules/blockspecials/sl.php The first file actually contains the translations I entered - everything is fine there.The second file (in my theme folder) is empty and I guess it overrides the first file.Can I get around this by not deleting the sl.php files everytime I add translations? Link to comment Share on other sites More sharing options...
rocky Posted October 29, 2010 Share Posted October 29, 2010 Perhaps those translations are in the "Front Office translations" instead of "Module translations", since they are theme-related? Link to comment Share on other sites More sharing options...
duimstra Posted November 1, 2010 Author Share Posted November 1, 2010 Hi!No, the translation are actually under "Module translation".The trouble seems to be that I copy every module from /modules/ to my own theme folder (theme/mytheme/modules/).I do that because I modify .TPL files in certain modules.Is that the correct way of developing my own theme or should I just change the files directly under /modules/ folder in the root of prestashop installation? Link to comment Share on other sites More sharing options...
duimstra Posted November 1, 2010 Author Share Posted November 1, 2010 Hi, I am attaching a screenshot that will help explain my problem Hope this helps! Link to comment Share on other sites More sharing options...
rocky Posted November 2, 2010 Share Posted November 2, 2010 You are doing the right thing by copying the module TPL files into your theme. I would expect the module translations to become theme translations in the "Front Office translations" section. Link to comment Share on other sites More sharing options...
duimstra Posted November 2, 2010 Author Share Posted November 2, 2010 I looked in the "Front Office translations" but the desired translations are not there.An nice example is blockspecials or. "Specials block", where the only translations for this are under "Module translations"... Link to comment Share on other sites More sharing options...
rocky Posted November 2, 2010 Share Posted November 2, 2010 Since each theme has its own translation file that overrides the module translations, I expected it to be in "Front Office Translations". If it's not there, I'm not sure where else it would be. I guess you will have to manually edit the file. 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