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
22 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
29 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
27 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 ...
1
vote
1answer
117 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
21 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
149 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
10 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
104 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
86 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
1k 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
35 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
21 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
46 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
0answers
108 views

user redirection to specific page based on IP address

I’ve got a question about user redirection that I could use help with. I’ve got a multi-lingual site using D6, IP to Locale (Hacked to accept Quova IP detection) For the most part I’m using straight ...
0
votes
1answer
117 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.
0
votes
0answers
494 views

Language switcher with custom dummy link (Drupal 7)

I have site with cyrillic text and I would like to add custom link which will transliterate current page to latin. Transliteration itself is not a problem, I can accomplish that with ...
1
vote
2answers
333 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
1answer
542 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
178 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
139 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
2answers
44 views

Hello, how to translate only the interface back to english?

My site default language is Hebrew (RTL), the problem is that it's all the site, and i want my sites admin-interface to be in English (American). how could i re-translate it to English? Thanks !
1
vote
0answers
89 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, ...
2
votes
2answers
350 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
460 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
62 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
120 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
95 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
600 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
122 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 ...
5
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
308 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
135 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
79 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
275 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
1answer
520 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
62 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
104 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
200 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
504 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
560 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
120 views

Different theme for different languages

In drupal 7 how do I change site's theme based on current language?
3
votes
2answers
208 views

use a custom textgroup from t()

I've defined my own textgroup using: function foo_locale($op = 'groups') { switch ($op) { case 'groups': return array('foo' => t('foo strings')); } } The problem is that when I use ...
0
votes
1answer
410 views

Link for switch language

without using any module, How do I make a link to change current language of site?When users click on a language I want to switch language and redirect them to the same page not to front page.
4
votes
3answers
2k 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 ...
5
votes
1answer
425 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 ...
1
vote
0answers
137 views

Drupal setup one language: locale vs. stringoverrides

I was wondering what would be the best way to build a website which has only one language. In order to make existing strings translatable we can: use the Locale module and add a 'dead' language ...
2
votes
0answers
334 views

Alias not working for a non default language

When I create a node in a non default language, I set an alias. After the node is saved, however, all internal links (e.g. menus) do not use the alias; they all use the node/[nid] link type, and when ...
1
vote
1answer
60 views

Should I enter data as English and then translate to my language?

For data entry for taxonomy terms and field names should I enter data in English and then translate to my own language?Entering directly in my own language has no problem.I just want to know if there ...
0
votes
2answers
571 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. ...