Questions tagged [i18n-l10n]

Use it in questions about adapting software to different languages, regional differences, and requirements of a target market (locale).

Filter by
Sorted by
Tagged with
14
votes
3answers
5k views

Is it always bad to pass a variable through t()?

I have a little helper function for my hook_schema: function _bbcmap_schema_asr_field($description) { return array( 'type' => 'int', 'unsigned' => TRUE, 'size' => 'small', // ...
1
vote
1answer
1k views

Cache page based on cookie value and URL

I am working on a site that is multi-lingual as well as multi-country. This means that pages will show content differently depending on a country cookie that is set when the user first visits the site....
5
votes
5answers
7k views

How to translate a panel page title and a pane title

I want to ask if there is a way to translate the title of a panel and also its panes titles whatever content they are. I use panels to override user/%user page and there i putted as panel title the ...
0
votes
1answer
310 views

Internationalization (i18n) + Translation Management - No interface for adding translator available

In the Translation Manager menu (http://<mysite>/admin/content/translation-management/manage-translator?from=en&to=hu), when I want to add a translator to a given page, I see the following ...
1
vote
1answer
766 views

I can't translate the text <Any> in a form select list

I just can't translate the text in a form select list. I need it to be translated in spanish lang. I tried to translate it using the translate interface but I couldn't find it. Please take a look a ...
4
votes
1answer
2k views

Why are there so many different ways to translate menus?

I'm very confused about the way Drupal 7 translates menu items. I have many modules installed, so I'm not sure which would be relevant to state; in fact, I don't have my head fully wrapped around ...
1
vote
1answer
3k views

Not all strings are translated

With Drupal 7, we have a custom module that displays a form that will work in both English and Spanish. Throughout the form we used t() to translate the text, and it works in all but two places. One ...
1
vote
2answers
3k views

How to have multilingual custom 404?

I have a multilingual Drupal 7 site for which I have set up a translated 404-page accessed at mydomain.com/404 and mydomain.com/en/404. In the Drupal settings for 404-page I enter just the path 404. ...
0
votes
1answer
226 views

How can translations 'inherit' CCK values of the node in the default language

I've got a CCK content type called 'projects' with about 10 fields, including an ImageField that allows for multiple images. There are two languages defined for the site: English (the default), and ...
3
votes
4answers
4k views

Default language not working properly

I have a site with 2 languages: English and Spanish and Path prefix: en and es respectively. Then Spanish language is set to default (see image 1) And the Language negotiation is set to: Path prefix ...
1
vote
5answers
3k views

Does superfish module support multiple languages?

Does superfish module support multiple languages in drupal 7? From the CMS, I seem to be able to translate each menu item into english and french. But Superfish is only outputting the english ...
3
votes
2answers
1k views

What is right way to modify a node field in a multilanguage system (LANGUAGE_NONE or $node->language or …)

Let's say we want to modify the body field. $node->body[LANGUAGE_NONE][0]['value'] = "test"; This will work if the node is language neutral (?) $node->body[$node->language][0]['value'] = "...
2
votes
2answers
703 views

Drupal Internationalization / Translation

When you translate a website using the i8ln module it doesn't automatically translate all the words in fields correct? Also, what do you need to do to efficiently translate all the words ? Is it a ...
0
votes
2answers
2k views

How can a user select a different language to the site default language?

My Drupal 6 site should always display in French for all users except me. I need to administer the site in English. Using the Locale module I have both languages installed and default set to French. ...
2
votes
2answers
422 views

How to change to default Localization Client language to translate

Localization Client allow me only to translate from English to one of others languages. It is possible to translate from language x to English too?
0
votes
1answer
1k views

i18n, path alias doesn't work

I set path auto alias of content type page to: [language]/[title-raw] I am using Content Translation module. I created english version of selected page. Alias was generated ok. But even if I am ...
2
votes
2answers
2k views

User profile fields translatable

How can I make user profile fields translatable? I'd like to be able to translate some fields into other languages.
3
votes
1answer
893 views

What is the syntax for l.d.o translations in a drush make file

I have read the Drush Make documentation, and understand you can download translations at the time you use the drush make command, since there is an option. What I don't understand clearly is how to ...
1
vote
1answer
316 views

Toggle translation in a multilingual site

I'm building a bi-lingual site (English and French) with Drupal 7. I want to create a link at the top right corner of my site that toggles a page between English and French. How do I do this? I have ...
2
votes
1answer
277 views

CSS Class of a multi-lingual front-page

In Drupal 7, in the body tag of my English home page, I see the following CSS classes (among others): html, front. I added a French translation for this home page by clicking on the "translate" link. ...
1
vote
2answers
3k views

Custom links to switch language in Drupal 6

In my case, I wanted to print the language switch links directly in page.tpl.php, for example with: <a href="what_to_put_here">English</a> <a href="what_to_put_here">Deutsch</a&...
2
votes
2answers
459 views

What is the proper function for multi dimensional localized menu?

What is the proper function to get multi dimensional localized menu in Drupal 7? after searching, I found i18n_menu_localize_tree(), but I didn't get it as tree menu. Should I use ...
4
votes
3answers
12k views

Views with multiple languages

I'm building a multi-lingual site with drupal 7. I see that you can "translate" a page. How do I translate a view? The url http://mysite.com/view is a view, but I don't see the "translate" button.
0
votes
1answer
722 views

How to change the logo image dynamically when user change language?

How to change the logo image dinamycally when user change language by clicking in the flag? Exist an easy way to resolve this problems?
0
votes
1answer
2k views

Can I use the $language variable in a Drupal 6 template file?

Is it correct to use the $language variable to make conditions in the page-front.tpl.php? Is if ($language == 'es') correct?
0
votes
1answer
414 views

How translate a static block in drupal 6?

Does a variable exist that I can use to translate a static piece of text in a block? For example: <?php if($language==english): ?> do something... <?php endif; ?>
0
votes
1answer
269 views

Problems primary links translate drupal 6

I have translate the link in my menu (primary links) in spanish, when i change the language from italian to spanish all the voices of the menu are translated except one ( the voice apartamentos) that ...
1
vote
1answer
2k views

How to translate blocks content (created with views module) in drupal 6?

I created blocks with views, my question is this: When you select a language, even the block content ( created with views )applies to me translated ?
3
votes
2answers
1k views

Does my Drupal 7 site have transaction support enabled by default?

I happen to read through the commented lines in settings.php under the "Database settings" (around line no. 45) the following text: Some database engines support transactions. In order to enable ...
3
votes
1answer
186 views

Views in English and Spanish

My site is in English and Spanish. My question pertains to the Similar by terms module and a custom view that on click shows random filtered by term nodes. How would I create an argument to show ...
4
votes
4answers
3k views

Let the user change language with a select

I need to let the user change language with a select. I need to do everything by hand because i'm putting that in a custom block. Do you have any idea on how I can accomplish that?
0
votes
2answers
994 views

problem with $conf['i18n_variables']

i have installed i18n module and added this lines to setting.php and empty cache to translate slogan and contact form information and ... but it doesnt affect site and values dont add to ...
4
votes
2answers
3k views

Set language for a panel page

How do I create multiple translations of a panel page? My homepage is designed with panels and I have both english and spanish content. For nodes everything is fine but I can't figure out how to do ...
6
votes
1answer
2k views

Detect translatable strings in custom module code

I have a D6 site with several custom modules. The site now needs to support multiple languages. All my strings are wrapped in t() and I'm pretty familiar with locale.module and the i18n modules. I ...
2
votes
1answer
2k views

Add translatable text in template file

I am going to add a custom string by t() function in node.tpl.php. However, where should I add the translated string for the original string?
7
votes
1answer
2k views

Using t() with langcode in Drupal 7

I have a Drupal 7 setup with multiple languages (en and fr). In my template files I have a lot of t() texts which im translating using the i10n_client module. This works perfect for translating texts ...
8
votes
2answers
10k views

Accessing $language inside node content in drupal 7

Normally I would use $language to get the active language on my drupal 7 page. Now I'm doing some changes to a node content (set to PHP code) and I can't seem to get any variables working? I badly ...
2
votes
1answer
411 views

Change Ubercart's “Order” to “Donation”

I am setting up a site for a non-profit organization (using Ubercart to accept donations) and I want to change "order" to "donation". I started in with the stringoverrides module. I was searching ...
3
votes
1answer
4k views

Remove “Language Undefined” from content with Multilingual module

Using Multilingual - Internationalization module, now all my pages show: Language Undefined At the bottem. How do I remove this text? I'm using the language switcher, and I have already ...
2
votes
1answer
3k views

Change language programmatically after login

I have a multilingual site and I want to change the language programmatically after user login to his own language to see all the content in his language. How can I do this?
2
votes
0answers
158 views

Poll choices are not multilanguage supported

Hi I have installed poll and i18n_auto with gTranslate modules, Both are cool, But the translation occurs only for Poll title and Poll Body not for choices. Is it possible to translate the choice ...
2
votes
3answers
2k views

Is there a way to show different Amazon affiliate link based on visitor locations?

I'm trying to get an Amazon affiliate link set up that directs the visitor to their local store, rather than being fixed to one particular store. I know I could set up individual links for each ...
2
votes
4answers
6k views

Multilingual “labels” in views fields?

Is there any way to setup multilingual labels in views' fields. Let´s say I have the ´title´ field and it shows the label ´My Title:´. Then as my site is bilingual (english-spanish) I need to have ...
7
votes
3answers
3k views

Use another language than “default” as standard

We're currently building a rather large website that will be release in swedish initially, but other languages later on. For this reason we've built everything in english and then translated ...
2
votes
1answer
1k views

Translate untranslated words in Drupal

I'm using calendar module and I noticed when browsing web that some words are not translated (e.g. "prev," "next," "day," "week," "month," "year"). Is it possible to write somewhere the translation ...
2
votes
1answer
280 views

Bulk language assignment

In the past I created hundreds of nodes in a specific language. Finally, the website will have only one language and I think it is best to set them all to unassigned language for development reasons. ...
6
votes
1answer
540 views

Language selector for Apache Solr search form

How can I do something like this with Apache Solr in Drupal 7? This will be the front page of my site, and depending on the language the user chooses, he will be redirected to the language-specific ...
4
votes
2answers
821 views

Language fallback stack

I have 4 language versions on my website. Is there a way to define a language fallback order? For example, if I'm on a node page and the language is set to English and there's no English translation ...
2
votes
1answer
874 views

Interface translation - Body, Title built-in interface

I use i18n and I10n_client to translate English to Dutch in my web page, however some interface variables are not changing. I searched 'Body' and try to replace it with its Dutch word, it doesnt take ...
1
vote
1answer
300 views

Translation issue

I have problem with the i18n translation module; despite I translate a text menu link in the administration string translation section, it doesn't translate on the front end when I navigate the site ...