Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
February 08, 2012, 12:36:05 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
The E-commerce forum, the best place for advice for your Small Business.
12248
Posts in
1446
Topics by
5607
Members
Latest Member:
holl511i
E-commerce forum
E-commerce
Shopping cart software
Prestashop
Editing Translations
« previous
next »
Pages:
[
1
]
Author
Topic: Editing Translations (Read 1149 times)
dannylbrooke
Settling In
Karma: 2
Offline
Gender:
Posts: 56
Editing Translations
«
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
http://www.kiddiz.co.uk
http://groups.to/kiddizcompetition/
vittu
Administrator
Liking it Here
Karma: 3
Offline
Gender:
Posts: 76
Re: Editing Translations
«
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
Posts: 46
Re: Editing Translations
«
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
Re: Editing Translations
«
Reply #3 on:
March 04, 2010, 12:21:38 AM »
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
Gender:
Posts: 76
Re: Editing Translations
«
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
Gender:
Posts: 56
Re: Editing Translations
«
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
http://www.kiddiz.co.uk
http://groups.to/kiddizcompetition/
ianjofriel
Guest
Re: Editing Translations
«
Reply #6 on:
March 22, 2010, 11:49:26 AM »
Quote from: vittu 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
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
Online
Gender:
Posts: 1079
Re: Editing Translations
«
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
Zen cart tutorial, build a template from scratch
Portfolio & Zen Cart Template Designs
Free zen cart template
ianjofriel
Guest
Re: Editing Translations
«
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
Online
Gender:
Posts: 1079
Re: Editing Translations
«
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
Zen cart tutorial, build a template from scratch
Portfolio & Zen Cart Template Designs
Free zen cart template
JhnStcks
Global Moderator
Part of the Furniture
Karma: 12
Offline
Gender:
Posts: 406
Re: Editing Translations
«
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
Snowboarding Goggles
For all things Snowboarding and Skiing. Goggles, Helmets, Gloves and Clothing.
The Fashion Agent
We are your fashion agent. Designer Clothes, sunglasses, headphones from top designer brands.
Pages:
[
1
]
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Small Business Network
-----------------------------
=> General Network Stuff .....
-----------------------------
E-commerce
-----------------------------
=> Dropship discussion
=> Dropship suppliers
=> Wholesale discussion
=> Wholesale suppliers
=> Products discussion
=> Website development
=> Shopping cart software
===> Zen cart
===> Prestashop
===> Cubecart
===> Open Cart
===> Magento
===> OsCommerce / Creload
===> Other cart software
=> SEO and marketing
=> Payment and shipping
=> Ebay and auction sites
=> Business start ups
=> Accounts and book keeping
=> General business discussions
=> Services offered
=> Services requested
-----------------------------
Social Networking
-----------------------------
=> Facebook
===> Wordpress
===> Drupal
===> DotNetNuke
===> Joomla
===> Blogger
-----------------------------
General Category
-----------------------------
=> Introductions
=> General Discussion
=> The Lounge
===> The Bar
===> Recipes
Loading...
SimplePortal 2.2.2 © 2008-2009