Drupal module used for translating Drupal websites into different languages based on the active user, path or something else.

learn more… | top users | synonyms

0
votes
1answer
28 views

How to set configuration value for drush site install?

I have set a central translations directory(sites/all/translations) for my multisite installation profile so that each site does not have to download translations that were already downloaded. I have ...
0
votes
1answer
15 views

Determine front page for specific language

I'm using I18n and I am trying to choose which front page to use for each language. I actually get the following message for every page : The requested page "/en" could not be found. Same for ...
0
votes
0answers
11 views

Language icon selector bug with webforms, fix or alternative?

i have installed a few modules for internationalization support, like: i18n i10n icons lang_dropdown i18n_string i18n_field entity translation webform_localization The issue is relative to webform ...
0
votes
2answers
52 views

programmatically get default value from translated body field per language

I am trying to get a default value loaded programmatically into every body field when we add translate from english, but it doesn't seems to work using form overwrite fields I tried using $form[][] = ...
1
vote
0answers
29 views

How to include translations in custom install profile

I'm creating a custom install profile and want to be able to use drush make to quickly set up all files. What is the best way to have drush make download the drupal core translation files into my ...
1
vote
1answer
39 views

Drupal Multilanguage domain specific with PORT not working

I have setting up drupal 7 with 2 languages: English Default Spanish Also, Point 2 domains for each language from language configuration settings www.drupal-experiment.local:90 (English) ...
0
votes
1answer
91 views

Is there a built-in way to get a language+country locale pair?

global $language only holds the language code. I wonder if there's any possibility to get a country code as well, at least of that country I set as default country at /admin/config/regional/settings. ...
0
votes
1answer
106 views

Remove language prefix from file url on drupal 6

We have a multilingual site on Drupal 6. which seems to work fine, we created a rotor view on the default language (en). This views looks great on default language which loads without any language ...
0
votes
1answer
89 views

Interface Translation: Separate Drupal interface strings from theme strings?

I want to translate all the t() strings in my theme but there's no way to filter those strings by your theme only. Instead they are bundled with Drupal interface strings which creates an excessively ...
1
vote
1answer
114 views

How to import translated strings having dynamic variables?

Short: How can I import .po file having dynamic variables in strings like follows $message = t('Hi @firstname, please follow @sitelink or mail me at @email ', $var); Indetail: I've written a ...
1
vote
2answers
500 views

Drupal 7 Internationalization - why are my admin menus still in English?

I'm trying to make a fully bilingual website that will be administered by French and English users. I've installed the internationalization module and all its dependencies and the localization update ...
0
votes
1answer
190 views

Drupal 7 with front-end in Spanish/English; Back-end in English only [duplicate]

I installed Drupal in English and also installed the i18n and Locale modules for translation. I then enabled Spanish as a language and set it as default. My aim is to have the site default to Spanish ...
1
vote
1answer
255 views

Converting db_query from Drupal 6 to Drupal 7: Invalid parameter number: number of bound variables does not match number of tokens

I have a custom localisation function in a Drupal 6 module that I would like to convert to Drupal 7 but I have hit a wall with the db_query function. I have the following code (in d6 and d7): // ...
0
votes
2answers
55 views

How do you switch a site's language by using GET variables? Is there a module? [duplicate]

Currently I'm using a module that displays a bunch of nodes on a single page. And I also have translated content in different languages. The core functionality to switch a sites language currently ...
0
votes
1answer
472 views

Override locale_block_view in custom module

In the locale.module file there is: function locale_block_view($type) { if (drupal_multilingual()) { $path = drupal_is_front_page() ? '<front>' : $_GET['q']; $links = ...
-1
votes
1answer
170 views

Inputs for “am” and “pm” get messed up on the arabic side when editing content

When creating/editing a node on the english side all works ok but when this is done on the arabic side it breaks up the am/pm form. The markup values also change unlike on the month or hour fields. I ...
0
votes
1answer
122 views

Add t('String to be translated') to your database

I've altered a form where I set the save button text to t("Buy Product"); But how can I make sure that I can translate this string in admin/config/region/translate/translate ? I've tried to add ...
0
votes
1answer
220 views

How to fix incorrect forum post count when using internalization and locale?

Using (among several other contrib modules) Forum Locale Advanced Forum Internationalization My forum topic nodes are set to be localized and I've set translations for the Forum Vocabulary and ...
1
vote
1answer
467 views

Translating strings to English from a second language

It seems that Drupal 7 doesn't provide a function to translate a non-English string to its English equivalent. I'd like to do this for a project I'm working on, but the absence of a ...
3
votes
1answer
71 views

How to change the order of content types

How would one go about changing the order of the content types list on a multilingual site or non-english site? For example, by adding a content type named Émission (with accentuated É), we see the ...
0
votes
1answer
217 views

How to translate a button?

I have a website in English language and i want to translate some button in own language . i know that i can add my language and simply translate all my stuff, but the point is i have to translate ...
1
vote
1answer
175 views

Import translation file only for specific core module

I am creating a multilingual D7 website. I am using core module locale and i18n contrib module. I am trying to import the localization files for a language. I know that I can download the unified .po ...
3
votes
1answer
823 views

Translate hard-coded strings with source language other than english

I building a custom module for a multi-language Drupal 7 site where the default language is not english. Now I want to translate the module. Since my source strings are not in english I cannot use ...
5
votes
1answer
423 views

Programmatically change the Base URL?

Is there any way to programmatically change the Base URL, Just as the "locale" module does.. My Website is multi-lingual which has to recognize 3rd argument, after the language identifier. Some custom ...
2
votes
0answers
13 views

How can only content be translated, not admin pages [duplicate]

The last developer on our site installed the entire Spanish translation from Drupal and now even the admin pages come out in Spanish. We don't want this, we just want the content to be translated as ...
1
vote
1answer
420 views

Create content in chinese language in drupal 7?

I want to create content in Chinese language manually in drupal 7 just by inserting translated text into body, without using any module like internationalization. Kindly suggest any solution ? Do I ...
1
vote
2answers
683 views

An untranslated string is not showing up

In my module I have some custom strings. I use these in the t() function. When I go to admin/config/regional/translate/translate and filter the untranslated strings my custom strings do not show here. ...
3
votes
3answers
5k views

How to get absolute url with different domain language prefix

What is the best way to get absolute url with correct language prefix? The url() function accepts language parameter but it seems that it is not using it to generate the prefix - only to get ...
1
vote
1answer
88 views

Payment form with Internationalization

I have a simple form which should be able to accept payment via Paypal. The form(site) will support multiple languages and depending on the language, it should change the currency appropriately after ...
0
votes
1answer
31 views

How to translate new-added text?

I use Contact and Locale modules. I wanted to change text included in e-mail so I went to modules/contact/contact.module and I replaced appropriate lines. Unfortunately, that text is not translate to ...
5
votes
2answers
47 views

What to do when translation imported using Locale has an inappropriate translation?

I used Locale module to translate Drupal to my national language. But some words' translation is not appropriate. How can I change the translation of some words?
0
votes
1answer
367 views

Translate logo and favicon?

I am wondering if there is a method to translate the appearance settings section for each theme, for example the logo URL.
2
votes
3answers
3k views

Pre-select language (instead of “Language neutral”) when creating a node?

With core's Locale module you can enable Multilingual support for a content type. When creating/editing a node, this gives you a Language select list with all enabled languages and "Language neutral" ...
1
vote
1answer
737 views

Can original text be edited in translate interface or elsewhere?

When translating strings in the translate interface, I would also like to be able to edit the "original text" (for the default language), and not only fill in the translation strings for other ...
0
votes
1answer
320 views

Remove Locale settings from Logintoboggan

I have Logintoboggan installed to handle login/registration. Upon registering a new user it displays an option to set up Locale Settings - I would like to have this removed but cannot figure out how. ...
1
vote
0answers
130 views

Drupal 6, Locale Module & Language Fallbacks

I have a Drupal 6 website, with 4 different locales, but only 2 different languages. The 4 locales are setup as follows: en, site.com, (American English) en-ca, site.ca, (Canadian English) fr, ...
5
votes
2answers
1k views

How to create language object from language string (e.g. 'en')?

As in question, ofcourse I am asking about Drupal function for this job. So I need function that get language string as param (e.g 'en','pl' etc) and returns me standard Drupal language object. ...
0
votes
1answer
999 views

How can I print a block (the language switcher) without the block-related classes?

I'm not sure if this question is phrased correctly; I'm happy to accept any solution that accomplishes my aim. GOAL: I am trying to print the language switcher block in the header of my theme without ...
1
vote
1answer
138 views

Country specific nodes

Let's say we navigate to http://example.org/ch/de/node/1 (with pathauto enabled /ch/de/hallo-welt) Now I want to specify somewhere the country Switzerland (ch) and set the available languages to de ...
1
vote
1answer
372 views

How to update locale after editing a .po file?

I edited a .po file in profiles/l10n_install/translations/ but after this the pages of the site are not updated. How to update the site after editing a .po file?
2
votes
0answers
226 views

Custom language negotiation module not working

I'm writing a custom module to allow the use of language a language suffix (of the form -eng or -fra) rather than the standard prefix. I'm using the language's configured prefix and have a number of ...
2
votes
2answers
2k views

Restrict views to specific languages

Using the locale modul (core) and i18n it is possible to show a language switcher, which will guide the user to corresponding nodes in another language. In case of views, this language switcher points ...
3
votes
0answers
222 views

Mixed Language Negotiation (Prefix and domain) in D7

We have a single code base and database for all the 3 languages of a certain website: http://example.com/ - default, no prefix, English http://example.com/pt - pt prefix, Portuguese ...
7
votes
3answers
4k views

How to change the behaviour or display of the language switcher?

On translated pages the language switcher shows links to translated languages, but for untranslated languages there is no link, but the name of the language without a link. In the case, that there is ...
3
votes
2answers
2k views

How to provide a translation for a string used within t()?

On my site I use a module which creates text using t('text from module'). How can I tell drupal that I have a translation for that, and of course, that my translated text is being displayed?
0
votes
0answers
389 views

Collate and compare international strings with strcoll or another method

In order to compare international strings, PHP offers setlocale and strcoll. Used in, for example ordering an array: setlocale(LC_COLLATE, 'C.utf8'); $array = array('Birnen', 'Äpfel', 'Ungetüme', ...
2
votes
2answers
109 views

Term translation in views

i try to create a multilingual page with drupal. http://alarabi.biz/category-listing I created some categoreis and translated them with the Internationalization plugin and i18nviews. So I can ...
2
votes
1answer
688 views

How to set the default language in code?

I want to set the default language during install to something other than English. How?
2
votes
2answers
1k views

Cannot modify language field in node form using hook_form_alter in drupal 7

I tried adding a description for the language field in a node form using hook_form_alter: $form['language']['#description'] = t('Description'); The changes are not accepted, the language field ...
3
votes
3answers
3k views

i18n - Not translating Menu's or Blocks

The Problem Using the i18n module, node translations are working, however Menu and Block translations are not showing up. For example: I created 2 identical blocks. For one i set the Show this block ...