Chat Room Article Base Facebook Page Twitter RSS Feed
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 22, 2012, 03:01:06 AM

Login with username, password and session length
Search:     Advanced search
The E-commerce forum, the best place for advice for your Small Business.
12785 Posts in 1518 Topics by 6449 Members
Latest Member: Ane4ttenl84Gva45
* Home Help Search Login Register
+  E-commerce forum
|-+  E-commerce
| |-+  Shopping cart software
| | |-+  Prestashop
| | | |-+  Editing Translations
« previous next »
Pages: [1] Print
Author Topic: Editing Translations  (Read 1399 times)
dannylbrooke
Settling In
**

Karma: 2
Offline Offline

Gender: Female
Posts: 56



WWW
« on: February 23, 2010, 11:32:15 PM »

Ok another prestashop question hehehe...

I trying to change the text 'This product is no longer in stock' on my product page to something different, i know i have to use the translations tool to do this, in tools>translations.

I have found the section in need to edit and have added the text i want and clicked update translation and i get 'Cannot write language file'

Am i doing something wrong ????
Logged

vittu
Administrator
Liking it Here
*****

Karma: 3
Offline Offline

Gender: Male
Posts: 76



WWW
« Reply #1 on: February 23, 2010, 11:39:28 PM »

that'll be your file permissions,
you need to change the file permissions via ftp or cpanel to writable
(I cant remember which file you need to change the permissions on, off the top of my head)
Logged

Forum builder
paulc010
Guru
Settling In
*****

Karma: 8
Offline Offline

Posts: 46


« Reply #2 on: February 24, 2010, 01:35:34 AM »

The /translations folder needs write permissions for the server process that php runs as. This needs to be recursive (down through all the files and subdirectories).

The easiest way I find to do this is to use filezilla. Right-click on the translations folder and select "File permissions..." Make sure there's a tick in the Read and write columns and that the box in the far right (execute) is coloured i.e. not ticked and not greyed out.

The check the box next to "Recurse into subdirectories" and make sure the "Apply to all files and directories" radio button option is selected, then ok.

What the above will do is set all directories to 777 (rwx-rwx-rwx) and all files to 666 (rw--rw--rw-)

Paul
Logged
ianjofriel
Guest
« Reply #3 on: March 04, 2010, 12:21:38 AM »

 gasp chmod'ing an entire directory to 777 and all files inside writeable to everyone ? dependant on the setup on how apache runs, shouldn't it be 644 or 664 ?

I've seen malware and rogue code injected into numerous shops and forums through poor permission handling
Logged
vittu
Administrator
Liking it Here
*****

Karma: 3
Offline Offline

Gender: Male
Posts: 76



WWW
« Reply #4 on: March 04, 2010, 12:57:51 AM »

thats just to make the changes via the store admin though, once the changes are made, just set the files back to 644 and the directories to 755
you need to do the same with zencart when doing the define pages, all of the files in html_includes need to be set to 777 or you cant write your shipping info, contact us page, main page etc, same rules, change permissions, make the changes you need via the store admin, set the permissions back to 644, all is safe and well again ;)

wordpress is the same, when editing the template and theme pages, all those need set to 777 if you edit them via the admin panel,

never a good idea to leave them that way though
Logged

Forum builder
dannylbrooke
Settling In
**

Karma: 2
Offline Offline

Gender: Female
Posts: 56



WWW
« Reply #5 on: March 21, 2010, 09:38:14 PM »

I tried both your suggestions and still wont let me change it, i still get the message Cannot write language file
Logged

ianjofriel
Guest
« Reply #6 on: March 22, 2010, 11:49:26 AM »

thats just to make the changes via the store admin though, once the changes are made, just set the files back to 644 and the directories to 755
you need to do the same with zencart when doing the define pages, all of the files in html_includes need to be set to 777 or you cant write your shipping info, contact us page, main page etc, same rules, change permissions, make the changes you need via the store admin, set the permissions back to 644, all is safe and well again ;)

wordpress is the same, when editing the template and theme pages, all those need set to 777 if you edit them via the admin panel,

never a good idea to leave them that way though

You should only every set RWX for the file owner, which is by default the apache daemon... setting 777 allows anyone with enough savvy to write to a file, then execute it, so if they dump so php code and exec() it, your server now has a new user, or your SQL DB has just been dumped...

I have WordPress and Zen set up as test enviroments, and I have never had to change a permission with the exception of the config.php files during installation ?
Logged
seamus
zen master
Shareholder ;o)
*****

Karma: 44
Offline Offline

Gender: Male
Posts: 1109



WWW
« Reply #7 on: March 22, 2010, 01:50:02 PM »

its a presta shop Dannyl is useing Ian,
and even with zencart, you still need to set the permissions in html_includes to writable inorder to define the main page, shipping, contact us etc or you cant write into them via the admin panel,

right enough though, leaving files set at 777 is a major security risk, but unless you write into the files via ftp, you will need to changed the permissions or you cant write into them via the admin panel,
easy job, set permissions, change whats needed via admin, then change the permissions back again, leaving them set at 777 for 5 minutes is not really going to cause you any problems, unless someone happens to hack your site within the 5 minutes your making changes
Logged

ianjofriel
Guest
« Reply #8 on: March 22, 2010, 02:02:08 PM »

When you edit files in Zen, they are sent back via a form to the web server, correct ?

Subsequently, it's the httpd daemon that will change any files, etc.

The most you would need in this scenario is 644, not sure why you would then need group or other to have write permission.
Logged
seamus
zen master
Shareholder ;o)
*****

Karma: 44
Offline Offline

Gender: Male
Posts: 1109



WWW
« Reply #9 on: March 22, 2010, 02:07:30 PM »

quite often 644 still wont let you write into them via the admin panel, hence my suggestion about setting them at 777 for 5 minutes while you do the changes

fair enough, its not the best way to do things, but it guarrantees the changes can be made via admin, aslong as the files arnt left at 777, there shouldnt be any problems
Logged

JhnStcks
Global Moderator
Part of the Furniture
*****

Karma: 12
Offline Offline

Gender: Male
Posts: 419


WWW
« Reply #10 on: March 22, 2010, 05:02:21 PM »

For Prestashop 666 is fine to write to files, and 777 for folders (or 755 for some servers).

I have never used the translation tool that comes with Presta and find it easier to just edit the file directly, this is mainly because when Prestashop was first released thats how it as done.
Logged

Empower Your Prestashop The home for Prestashop resources on Facebook. Modules, themes, hacks, hints and tips to empower your Prestashop site and make it stand out from the crowd.
Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.15 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
SimplePortal 2.2.2 © 2008-2009