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

learn more… | top users | synonyms

1
vote
2answers
47 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
33 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
50 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
40 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
100 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 = ...
0
votes
1answer
43 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
0answers
13 views

Edit the contents of a Language block

I wish to modify the contents of block 'language' end of Locale module. I wish to appeal to the next hook hook_block_view_locate_language_alter() but it does not work great. Would you ideas on how to ...
0
votes
1answer
48 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
121 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
111 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
67 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
51 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
65 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 ...
0
votes
0answers
56 views

Using Domain Locale without a prefix for default language

I'm using the Domain Locale module to give a default language to multiple domains. If possible, I don't want to use a prefix for the default language 'en'. The module suggests this is optional, but I ...
2
votes
1answer
386 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 ...
0
votes
0answers
37 views

language_negotiation_language not set when installing feature

I am using features and strongarm in my module. One of the things my module is doing is setting language_negotiation_language. This is being exported by my feature. I check the strongarm file and it ...
5
votes
1answer
234 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 ...
1
vote
0answers
11 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 dont want this, we just want the content to be translated as ...
1
vote
1answer
194 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 ...
0
votes
1answer
197 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. ...
2
votes
3answers
2k 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
51 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
22 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
200 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.
1
vote
2answers
600 views

Huge amounts of locale queries clogging up drupal to 40 MB per request

I got an email today from my hosting company stating that they had to kill some processes of my site because it was using too much memory. Looking at the process table they provided, there were 10 ...
0
votes
2answers
1k 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" ...
0
votes
1answer
376 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
198 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
111 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, ...
4
votes
2answers
634 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
667 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
87 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
201 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
150 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
1k 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 ...
2
votes
0answers
151 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 ...
6
votes
3answers
2k 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
876 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
202 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
95 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
434 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
795 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
2answers
2k 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 ...
2
votes
1answer
77 views

How can I make a condition for currently viewed language on a template file?

I have a template called page-my-view.tpl.php that overrides a view page my-view. I have directly put the title tags, description and h1 on this template file. However I need different texts for ...
0
votes
0answers
120 views

local module problems?

I am not a programmer so this is a little out of my league. When I submit a question using the answers module, I receive the following error: Notice: Undefined property: ...
2
votes
0answers
231 views

Cannot edit regional settings in drupal 7

I cannot edit any of setting presented in regional settings category under admin/config/regional/settings. Whenever I for example remove tick from "Users may set their own time zone" and click save ...
2
votes
1answer
597 views

How to correctly handle date formats that needs i18n

Suppose you have a date format that looks like this: "Some text Y-m-d other text H:i". Please ignore that the text needs some escaping. What is the correct way of outputting this in a i18n friendly ...
0
votes
1answer
716 views

Language switcher shows me same node on switch

I am using Locale and Content Translation modules. First I created node and translated it. On content listing both have proper alias urls, everything seems to be ok. As a guest user I see content in ...
1
vote
1answer
179 views

Different theme for different languages

In drupal 7 how do I change site's theme based on current language?