This forum is for questions about translating the Drupal user interface. See also the Translations group.

different page.tpl.php file depending on language

I have a little problem, I need to have different page.tpl.php template page for different languages
or php code that give possibility to show differnt content depending on language
for example english language mysite.com/EN/node/1 and mysite.com/ES/node/1 would have possibility to control page.tpl.php file and some code on it.
How to do that?

Thanks,
Tomas

Changing "Browse..." to "Parcourir"

This is the label on a button I need to change (from English to French) when I upload a file. My first question is whether this is related to Drupal Translation Interface, or it is a parameter I need to set from my form API. I suspect the first, as the field validation messages (whether they are empty or not) are now given in the french language.

My translation is not complete: French 2607/3822 (68.21%)
but when I go to .../?q=admin/build/translate/search to add it myself, I cannot find this very text: "browse" in the context I mentioned.

Adding path prefix to browser detected language except default language

Hi

I have a multi-language site, default language is english, path prefix with language fallback is switched on.

Currently, when a browser language is detected, the main url www.example.com stays the same but shows the browser language. To have the default language shown, I have to go to www.example.com/en/.

file create error after switching to translated language

After switching to a Dutch translation (which seems to work), I get the following error message:

"Het bestand kon niet aangemaakt worden"

Which means "The file cannot be created"

The Drupal log (version 6.4) shows the following 3 entries;

/fopen() [<a href='function.fopen'>function.fopen</a>]: SAFE MODE
Restriction in effect. The script whose uid is 10019 is not allowed to
access
/var/www/vhosts/treehoppers.be/httpdocs/sites/default/files/tmp/fileWANyLT
owned by uid 48/ in
//var/www/vhosts/treehoppers.be/httpdocs/includes/file.inc/ on line /757/.

/open(/var/www/vhosts/treehoppers.be/httpdocs/sites/default/files/tmp/fileWANyLT)
[<a href='function.fopen'>function.fopen</a>]: failed to open stream:
Success/ in //var/www/vhosts/treehoppers.be/httpdocs/includes/file.inc/
on line /757/.

An error occurred during creation of the JavaScript translation file for
the language /Nederlands/.

The /sites/default/files/tmp directory, and the files it contains are owned by user Apache, group Apache, and are both writeable. The directory contains files with length 0.

The switch to Dutch works fine on my own (windows) machine.

I suspect some problem with the webserver/php setup, but my hosting company (eTech media in Belgium - who claim to be Drupal experts) has been unresponsive.

Translated modules still in english after .po import

Hello,

I'm building an EN/FR shop using :

- cck
- ecommerce
- filter
- i18n
- imageapi
- imagecache
- imagefield
- locale
- taxonomy
- token
- views
- views_bonus

Everything is ok, I've created some products, a view page for all products, it works nicely!

But,

when I want to translate modules from english to french, the french translation doesn't shown, still the english version.

An idea to make translations more flexible

Hello all.

This isn't secret, that translators run into problems with different translations same words.
For example, in Russian language, the word "Enabled" may be translated both as "Включено" (near synonym "turned on") and "Разрешено" (near synonym "allowed") in depends of context. Other example, the word "Category" used with such words as 'feed' and 'contact' should be translated differently!
Drupal uses gettext, but it doesn't allow to translate one word differently.

Pages

Subscribe with RSS Subscribe to RSS - Translations