AlexD
AlexD

Reputation: 5101

Language switching fails for multilingual drupal site

I'm trying to build a multilingual web-site with Drupal 6 and currently I ran into a problem switching UI language. Switching language from the default one using language switcher block doesn't work and displays error message:

The selected file could not be copied, because no file by that name exists. Please check that you supplied the correct filename.

The following message gets written to a log:

An error occurred during creation of the JavaScript translation file for the language [language_name].

Drupal 6 on Windows and IIS 7.0.

Upvotes: 0

Views: 1262

Answers (2)

Vinicius Braz Pinto
Vinicius Braz Pinto

Reputation: 8289

Check if you have a directory called "languages" inside "sites/default/files" and make sure that this directory is writable.

If this doesn't solve the problem, check if there's a Drupal variable called "locale_js_directory" (in the "variable" table in MySQL) and check its value. If this exists, its the name of the directory in which the JS file will be created (instead of in the "languages", which is the default). Check if this directory exists and is writable as well.

Upvotes: 2

Matt V.
Matt V.

Reputation: 9809

It sounds like a permissions issue. Is your files directory writable? Check the status page (Admin > Reports > Status report). You might also want to check out these similar issues from other Drupal users running on IIS:

Upvotes: 1

Related Questions