michaelctorres / clients-oriented-ftp

Automatically exported from code.google.com/p/clients-oriented-ftp
0 stars 0 forks source link

Can't apply french translation #303

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Download french translation (fr.po and fr.pot files)
2. Put them in /templates/default/lang, convert fr.po to get fr.mo
3. Set SET_LANG to 'fr' in sys.config.php

After saving sys.config.php, the front-office is still in english...
What have I done wrong?

Also, I think that the translations should be downloadable without creating an 
account on the translation website...

Thanks by advance!

Original issue reported on code.google.com by chteuchteu on 23 May 2013 at 7:41

Attachments:

GoogleCodeExporter commented 8 years ago
Hi,
I agree with you I will check with the responsible:
I guess the language files will be includes soon in next packages or available 
from the repository.

To change the system language :
You have to edit the sys.config.php file
located in \includes directory

find this line
define('SITE_LANG','en');

change to this
define('SITE_LANG','fr');

Be aware there is a another language file for the backend strings that need to 
be placed in \lang directory.

You may want to check this post about special characters: 
https://code.google.com/p/clients-oriented-ftp/issues/detail?id=279&start=100

Original comment by access_c...@hotmail.com on 25 May 2013 at 2:12

GoogleCodeExporter commented 8 years ago
Hi,
Thanks for the response!
Yes, you could at least include most used languages in the packages and make 
the others completed translations on the repo! It could be awesome!

As I said in my first message, I already changed the sys.config.php file:
"3. Set SET_LANG to 'fr' in sys.config.php"

I didn't said it, but I also downloaded the backend translation files and put 
them in the /lang dir (fr.mo and fr.po).

I'm working in a local installation of Apache... I emptied the cache of my 
browser, restarted apache, and double-checked both the front-end and back-end 
languages: still in english...

I replaced the en.mo, en.po and en.pot files by the fr.mo, fr.po and fr.pot 
files... Still in english... I tried connected as a client and as the admin, 
still the same

Original comment by chteuchteu on 25 May 2013 at 9:00

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Oups sorry it was late when I answered ;)

You don't need to clear the Apache cache to see the new language.

What version of PHP, MySQL & Apache are you using?
Which OS?

Original comment by access_c...@hotmail.com on 25 May 2013 at 12:10

GoogleCodeExporter commented 8 years ago
Could you please try these files
Just replace the fr existing files with these and rename them fr

Original comment by access_c...@hotmail.com on 25 May 2013 at 12:15

Attachments:

GoogleCodeExporter commented 8 years ago
Awesome! It works! :)
Thank you very much!
I hope that those files will be included in the next packages of ProjectSend, 
I'm sure it will help a lot of people!
And also, why not adding an option in the back-end to edit the language without 
manually editing the config file?

Original comment by chteuchteu on 25 May 2013 at 1:22