anyone knows how to import a language po file to drupal ?

because my service provider turned php safe mode on, so i can't import the language file. or the other way manual import po to drupal also is ok.

thank you.

Comments

cog.rusty’s picture

Generally try to create your files and temp directories yourself somewhere under your web root, don't let Drupal create them automatically. and give them write access (777). If they have been already created, delete them and create them again yourself. If the tmp file is outside your web space, create a new one too and then inform Drupal about it in admin/settings/file-system.

This "might" work.

In your case, are you getting an error message? If so, what is it? (with paths and everything).

flourishing’s picture

warning: fopen() [function.fopen]: Unable to access C:\WINDOWS\TEMP\tmp9ED8.tmp in d:\clientweb\tradesignal\wwwroot\drupal\includes\locale.inc on line 516.
warning: fopen(C:\WINDOWS\TEMP\tmp9ED8.tmp) [function.fopen]: failed to open stream: No error in d:\clientweb\tradesignal\wwwroot\drupal\includes\locale.inc on line 516.
The translation import failed, because the file zh-hans.po could not be read.
The translation import of zh-hans.po failed.

this is the error message and this is occur under the solution you said i have followed.
thank you.

cog.rusty’s picture

Create your 'files' and your 'tmp' directory under drupal, for example:

drupal\files
drupal\files\tmp

Then, in the admin/settings/file-system page in Drupal, use these settings:

Files directory: files
Temp directory: files/tmp

flourishing’s picture

i have tried this. the errormsg is after i have done that .

cog.rusty’s picture

You have set you "Temp files directory" to files/tmp in the admin/settings/file-system page, and still it looks in C:\WINDOWS\TEMP? Sorry, I can't help with this.