Hi, I do not have access to the root directory of my website so, as recommended by the handbook at http://drupal.org/node/21145 I am using the manual translation import.

I downloaded the zipped file for Italian it-6.x-1.4.tar and thought to extract all the PO files to import them one by one.

However, as soon as I browse for one of the files that I extracted to my Desktop and click on "Import" (for example modules-block.it.po) it says "File to import not found" and the Italian language is still 0% (0/1893).

What do I have to do? Thank you.

Comments

zirvap’s picture

That's weird. What you describe should work, I did exactly that myself yesterday. (Imported a .po-file from my local computer to a 6.x site.)

Could the files be corrupted, maybe? Try to open them (in any text editor, like Notepad). If they look fine there, you might try to open them in a .po-editor, like http://www.poedit.net/ and see if it has any trouble with the files.

steff2009’s picture

Hi, thank you for your help. The PO files I downloaded from Drupal translations page are ok, they can be opened both with Notepad and POedit. Still, when I cannot import them.

These are the steps I followed, please tell me whether they are correct:
1. In Administer > Site building > Modules, I enabled the Locale module and the Content translation module
2. In Administer > Site configuration > Languages, I added Italian language
3. I went to http://drupal.org/project/Translations and downloaded Italian package 6.x.-1.4
4. I extracted the package and all PO files were all arranged in three main folders (Modules, Profiles, Themes) and many sub-folders, each of them containing a PO file
5. In Administer > Site building > Translate inferface, I clicked on Import, browsed for one of the PO files, chose Italian from the drop-down menu and left the two default options: "Text group: Built-in interface" and "Modules: Existing strings are kept, only new strings are added"
6. When I click on Import I get the error messages saying "File to import not found"

I am using WindowsXP, IE7 and Drupal 6.x

gisle’s picture

What you describe is what will happen if the parameter "file_uploads" for the PHP core is set to "off". Then uploading is disabled for your installation, and you will not be able to upload anything. For more info, see: http://www.radinks.com/upload/config.php

If you're able to upload other files, but not PO files, then it must be something else :-(.

- gisle

steff2009’s picture

Hi, thank you for your reply. You're right, I cannot upload any files and have the same problem with images.

I cannot see the Image attach module in Administer > Site configuration. The only thing related to images there is Image toolkit, which is working fine. I enabled file attachment in all content types, but when I upload an image it says "Attaching...", I see a progress bar but then the image is not displayed.

Do you think it might be related to the PHP core as well?

gisle’s picture

This is not a Drupal problem. It is a PHP core setting issue. The following snippet will dump your PHP core:
phpinfo();
Examine the dump and in the first column (Directive) you should look for the string file_upload. If this is set to off, you are not allowed to upload files.

If you run Drupal on a server where you don't control the PHP core environment yourself, you need to persuade whoever does to lift this restriction to be able to upload files in any PHP environment (including Drupal).

- gisle

steff2009’s picture

Yes, thank you: my website is hosted by a provider, but I can manage the PHO settings so I enabled the file upload.

Now I can both upload attachments and images and import language files successfully.

Thank you.