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
2
votes
1answer
1k views

I18N, translating in template variables

I've got a theme setup, and this theme has a header region (region--header.tpl.php). There are some small ui elements in this template that require translation, but are not tied to blocks, views or ...
0
votes
1answer
1k views

Remove language code from URL

For example, with example.com/en/apple/12/article/11/23, in hook_init() arg(0) returns "apple," as I expect; in hook_boot() it returns en which is language prefix of English.
1
vote
1answer
4k views

Change Drupal interface language back to English

I made the mistake to translate the Drupal interface in my local language. But since the language is set into the database, I can't delete this language using the Drupal UI. And I'm not sure which ...
0
votes
1answer
568 views

Translation of modules

I am using Drupal 7.9 and Webform 3.15. I need to translate -select- option on top of list box. Also I have to translate in Captcha module (7.x-1.0-beta2), the text What code is in the image? and ...
5
votes
2answers
2k views

How can I manage site translations in code?

I have a site with multiple translations, including a heavily customized version of the default Drupal "English." (The use case requires that a lot of the help text and labels throughout Drupal be ...
1
vote
1answer
417 views

Problem with loading translation of JS file via ajax

I've got an ajax call that loads some info and a js file with something like Drupal.t('CLOSE HISTORY') That string, although properly loaded in the database, does not get translated when loaded ...
5
votes
3answers
2k views

Adding localized js

I've tried to re-phrase my question in my head a million times, as there seem to be quite a number of approaches and solutions, but finally decided to ask it in a very general way: What is the best ...
0
votes
1answer
2k views

Drupal 7: How do I translate the content of a checkbox I created?

I have a multilinugual site, content translation works. Now I added a content type and used the checkboxes/dario buttons field for a new field. How can I translate the content of such a field. Let's ...
1
vote
2answers
2k views

How can I allow the user to choose their language upon registration?

There is a solution for showing the site language selection field on the user/register form in Drupal 6 here: https://stackoverflow.com/questions/5556895/how-to-add-language-switcher-in-user-register-...
1
vote
3answers
300 views

Track Browser and set site language

I have these modules installed: cck-6.x-2.9 i18n-6.x-1.10 token-6.x-1.18 views-6.x-2.16 I would like to set the language of the website by checking the language used by the browser and set that ...
4
votes
1answer
3k views

function to change language object

I know this question may get the dafs-adrenalin of some of you viewers going. But I'm just recently getting my head in there with php and drupal and have been searching the api and googled a possible ...
0
votes
1answer
709 views

Custom page with panels in two languages [closed]

I created two pages with panels in Drupal 7; they have different names and different languages, but only one can be active as home page.
8
votes
2answers
3k views

Programmatically add node translation

I am using i18n module. How can I programmatically create node translation?
3
votes
1answer
450 views

Adding translation files to install profile?

I am building a Drupal installation profile to make deployment of my site easier, ideally I would like to include the translation files to the install profile as well. But apart from adding the core ...
2
votes
2answers
1k views

Translate text on the front page with t()

Have a multilingual site with English and French, I have all my static text on my page--front.tpl.php wrapped with a t(), cleaned my cache and refreshed the strings, but still i cant find the strings ...
2
votes
1answer
223 views

Views sort for right to left language

The titles of my nodes in Drupal 7 contain Urdu langugage (RTL) content. I have created a glossary view using Views module. The alphabets of Urdu language are not in right order as they are in the ...
12
votes
3answers
1k views

Move Multi-lingual Content with Migrate Module

I've got a single MySQL table with mixed english/french content in each row. I'm trying to figure how to migrate this into a proper i18n configured Drupal site. I can get Migrate to import the ...
-1
votes
1answer
971 views

i18n 1.4: Use of undefined constant MENU_PREFERRED_LINK [closed]

Has anyone run into trouble following i18n update to version 1.4? My site crashes badly with multiple notices about use of undefined constant MENU_PREFERRED_LINK. This is caused by Menu translation ...
3
votes
1answer
930 views

D7: Import localized menu programatically

I'm constructing a site that has 6 localized versions (English, German, Russian etc.). So the site is supposed to have a localized navigation menu with a common structure across the languages. I've ...
1
vote
1answer
173 views

In which order should one build up a multilingual site?

I'm planning to convert (better rebuild) an existing site based on MediaWiki and a phpBB3 Forum to a shiny new Drupal based site. The MediaWiki is multilingual, though most content is in German. My ...
10
votes
3answers
8k views

How do I get translated strings into Drupal.locale.strings?

So I'm trying to use the Drupal.t() function in some of my custom Javascript code (in my theme). How do I get the strings I need populated in the Drupal.locale.strings object? I see some strings in ...
7
votes
2answers
3k views

How to export translated variables settings in code?

In a custom module I define several configuration variables by implementing the Variable module's API. The module is part of a multilingual site project, so some of these variables should be ...
1
vote
1answer
908 views

Limit certain users from filling webform based on their location

I have a contact us form, that I want only users from the US to see, fill and submit. And the other users to see that form but a message says "web form is not available in your country" if the user is ...
2
votes
3answers
2k views

Dealing with node language when manually updating node

I'm trying to manually update a node and I'm not sure how the language works. The node is in English, so $node->language = 'en'; However, all my fields data are organized like this in the node: $...
3
votes
1answer
3k views

Translating “Content: Link” in a Drupal 7 View

I am working on my first Drupal 7 site that has internationalization. My site is in both English and Spanish. Generally I am pretty happy with the way it's going so far. The basis of my translation is ...
1
vote
0answers
114 views

i18n and Services,do they play nice together?

I have been reading on how a i18n and Services module play together, and it seems this area is riddled with problems. This is what I found so far: http://drupal.org/node/208939 Is it possible to ...
3
votes
1answer
2k views

How to alter the languages available in a form

I have a multilanguage site. When I go to edit a node, all the languages of the site are available. I only want some of the active languages to appear in the dropdown for certain users (for various ...
1
vote
1answer
378 views

translate interface search exact keyword

Is there a way in drupal 7 translate interface to search for exact keyword? The problem is that when I search for keyword 'no' it gives me 19 pages of results.
1
vote
2answers
52 views

Language Specific Site

Is it possible to create a site that has multiple languages available to the user? Preferably as similarly as possible to asp.net using .resx files (see here http://support.microsoft.com/kb/917414) ...
5
votes
1answer
1k views

How can I translate those translatable texts defined in t() in contribute/custom modules?

I wrote some custom modules, follow the Drupal standards, put all interface texts in t() function, make them translatable. Module enabled. I enabled Locale module, added new Language under admin/...
6
votes
2answers
901 views

Localization vs Translation from a Drupal perspective

Been wondering what is the difference between the meaning of these two words when it comes to Drupal, and it seems they are used interchangeably. Is that a correct understanding?
1
vote
0answers
81 views

How to insert other language's numbers in an integer text field?

I have an Integer Text Field which I want to fill with numbers in Persian (as long as the whole content fields should be filled with Persian characters), but when I write numbers when my keyboard is ...
5
votes
4answers
6k views

How to translate products with Drupal commerce module?

I'm using Drupal commerce module. I don't see the Multilingual tab in the product type: product at admin/commerce/products/types/product/edit. How do I make the product translatable? If that is not ...
1
vote
0answers
165 views

Is it possible to map a xml-field to the node language selection field in drupal with Feeds and XPath?

So, I've put together an XML import with the Feeds module and the Feeds XPath Parser plugin. I've got everything set up and working and the eventdata from my XML is importing nicely to my content type ...
2
votes
2answers
6k views

How to redirect URL with language prefix to the same URL with no prefix (default language)

I have installed i18n module so two languages Japanese and English are available. I have set Japanese to the default language and also "language Language negotiation" to "path prefix only". So all the ...
8
votes
1answer
4k views

Do not translate the admin area / How can I set the language of the admin area to English?

I am building a multilingual site with 3 languages. Lets say English, Italian and German. English is the default language. Is it possible to leave the admin area untranslatable, even I am currently ...
1
vote
3answers
998 views

International path alias not working

I am trying to translate an existing site. I've used i18n before successfully so I'm not totally new to it. Now to my problem… I can create content fine in different languages the problem occurs ...
1
vote
1answer
917 views

How do I use the GTranslate module?

I have installed the GTranslate module, and I am searching for how to use it. In the module page, the language selection drop-down box is there, but when I installed this module the drop-down list ...
3
votes
1answer
2k views

Change default language from the database?

I have made a stupid mistake: I installed the .po for another language and set it as default (instead of English) even though I did not install/configure all the prerequisites. Now, each time I try ...
1
vote
1answer
219 views

How do I translate empty text of a view?

I have created a view with empty text using PHP code. Now, when I try to translate it through the translation interface (admin/build/translate/search), while I find the string (it show up all the PHP ...
1
vote
0answers
65 views

How to translate a block automatically created with a view?

Displaying only the block translated into Italian language change when I see the same block in Italian. I send you a picture of my view...
1
vote
1answer
2k views

Translating fields in node.tpl.php file with drupal 7

I have a drupal English/French website. I have a custom content type called 'ad' with all sort of fields. I have created the file 'node--ad.tpl.php' in my theme directory to customize the display of ...
0
votes
1answer
177 views

Error when upgrading from 6.22 to 7.8 [closed]

I upgraded my Drupal site from 6.22 to 7.8 (before that i had upgraded from 5.9 to 6.22). After I start to run the update I had an error before it's started, apparently related to language: ...
26
votes
5answers
10k views

Node translation vs. Entity (field) translation

I would like to know what you guys recommend for a multilanguage site. For example, consider the following case: A page and its content should be available in 3 languages (e.g. German, English, and ...
6
votes
3answers
337 views

For a non-english single-language site, is it still best practice to write t()-strings in the theme in English?

On Drupal 7 with the i18n-modules, in what language should your default strings be written in? In modules it's obvious that all strings should be in English (for reuseability) and use t(). But a ...
3
votes
2answers
2k views

translate custom fields in the registration form

I've installed i18n and added some new fields to the registration form, but I can't translate these new fields. If I create a view to list the registered users, the string I want to translate shows ...
0
votes
1answer
386 views

Localizable text in custom layout?

I'm customizing Display Suite-suggested tpl by adding "Jump to top" links at the bottom of each teaser and I want to properly localize the link text. Now I am unclear as per the usability of the ...
0
votes
1answer
110 views

D7+ i18n: What is the normal way: a single node with 2 translations or a different node for each translation

I am having a difficult to understand this issue: My D7 + Internationalization create a different node for each translation. Is this the normal way? Than how does Drupal know they belong to a same ...
3
votes
2answers
516 views

I need to prevent the translation of admin + toobar interface

Hello I am using Internationalization module. I want to keep the admin and the toolbar in English despite the language variable, despite the node translation operation. Is it possible?
0
votes
1answer
112 views

How to add custom language specified text?

I'm using multilingual feature in D7. Let's say...I have a word 'standard' that I like to use in other languages. Where do I put the word and how do I load it in my templates?