drupal.org - Translations http://drupal.org/taxonomy/term/30/0 For translating the Drupal user interface. See also the Translations Group on groups.drupal.org en Show date and time in correct language in block http://drupal.org/node/515046 <p>See Subject. </p> <p>It does not seem doable.<br /> I have tried to reverse engineer why it doesn't work.<br /> sizeof($custom_strings[$langcode])=0 in my block<br /> that is e.g. t('January') returns 'January' even though I selected another language, which works everywhere else on the site :-\</p> http://drupal.org/node/515046#comments Translations Drupal 6.x Thu, 09 Jul 2009 20:46:31 +0000 jmroth 515046 at http://drupal.org Localized dates http://drupal.org/node/514494 <p>Hi,</p> <p>What needs to be done to display dates localized after changing interface language? I created my custom date format "Y.m.d l" and used it to display a CCK field of type Date. I expected that when interface language is changed, the week of the day would be localized too (the .po file of my language contains week of day translations). Unfortunately it didn't happen. Am I missing something?</p> <p>Thanks,<br /> AD</p> http://drupal.org/node/514494#comments Translations Drupal 6.x Thu, 09 Jul 2009 10:15:48 +0000 Adam Dyga 514494 at http://drupal.org How to translate taxonomy terms with the t() function? http://drupal.org/node/514380 <p>Hi,</p> <p>I would like to translate taxonomy terms within my own PHP code snippets (embedded in custom blocks). Translations for the terms are provided by the "translation table"-module, i.e. I filled out the translation table for the corresponding taxonomy.</p> <p>However, a call of<br /> <code>t($term-&gt;name)</code><br /> where $term is a valid term object does not translate the term. It remains unchanged in the source language.</p> <p>Should this work? Does it need additional steps to use the t-function on taxonomy terms?</p> <p>Current version is Drupal 6.13 with all modules up to date.</p> <p>Thanks,<br /> Amin</p> http://drupal.org/node/514380#comments Translations Drupal 6.x Thu, 09 Jul 2009 07:36:35 +0000 amin.m 514380 at http://drupal.org default language for home page http://drupal.org/node/514230 <p>I can't figure out why, despite being set to have Japanese as the default language, the user isn't always taken to the Japanese home page when the base url is requested. i.e. the site is <a href="http://www.cannz.co.nz" title="www.cannz.co.nz" rel="nofollow">www.cannz.co.nz</a> and I want it to default to the Japanese version and then if the user selects the English, to be taken there, but never should it initially go to the Japanese site. Would appreciate help with this. Cheers</p> http://drupal.org/node/514230#comments Translations Drupal 6.x Thu, 09 Jul 2009 02:23:47 +0000 Whiting 514230 at http://drupal.org Drupal system http://drupal.org/node/513380 <p>We have a Drupal system set up for our website, but as it was done as a one-off - I am now struggling with certain elements of the system, in order to keep the website uptodate.<br /> I hope that this Forum will give me pointers to the correct procedures for all that I need to know - which is a lot - so I will sound very dumb to a lot of you!!</p> <p>I have created and sent a newsletter, but have received the following message, so do not know how to solve this? Can anyone help - and in very plain English for me please, as it is new to me and I need to learn.</p> <p>The Drupal system has been upgraded, but, again, am unsure of the version - so please excuse me if I am wrong in saying it is Drupal 6.x</p> <p>Many thanks<br /> Regards<br /> Margaret</p> <p> * warning: file_get_contents() [function.file-get-contents]: Filename cannot be empty in /home/sites/seaweedproducts.co.uk/public_html/sites/all/modules/mimemail/mimemail.module on line 398.<br /> * warning: file_get_contents() [function.file-get-contents]: Filename cannot be empty in /home/sites/seaweedproducts.co.uk/public_html/sites/all/modules/mimemail/mimemail.module on line 398.<br /> * warning: file_get_contents() [function.file-get-contents]: Filename cannot be empty in /home/sites/seaweedproducts.co.uk/public_html/sites/all/modules/mimemail/mimemail.module on line 398.</p> <p><a href="http://drupal.org/node/513380" target="_blank">read more</a></p> http://drupal.org/node/513380#comments Translations Drupal 6.x Wed, 08 Jul 2009 08:12:32 +0000 Margaret Blance 513380 at http://drupal.org Unable to use panels 3 for taxonomy terms with taxonomy translation http://drupal.org/node/512786 <p>With Drupal 6, I installed panels 3 and views to create overview pages showing all content under a taxonomy term. So far so good. When I add Multi-language support, I get the following message:<br /> "Delegator module is unable to override taxonomy/term/% because some other module already has overridden with i18ntaxonomy_term_page. Delegator will not be able to handle this page."<br /> Apparanetly, the Delegator module cannot use taxonomy/term/% because it is used by Taxonomy translation of the Internationalization module. Does it mean it is impossible to use both, panels 3 overriding taxonomy/term/% and Taxonomy translation??</p> http://drupal.org/node/512786#comments Translations Drupal 6.x Tue, 07 Jul 2009 18:11:11 +0000 mikaskay 512786 at http://drupal.org Multilingual Site vs Multi-Site http://drupal.org/node/511186 <p>Hi,<br /> I'm wondering wich is the better approach for building a site with multiligual feature, I've tried i18n module to build a native multilingual site but found some problems still unsolved like : Translating Taxonomy terms, Forums, Blocks, MultiLingual Variables that aren't supported by all the themes that can be used, with all the LTR and RTL languages set incompatibility too (Regions, logos, ...).<br /> So I fell obliged to choose a multisite approach making each site having its own language even I will sacrifice the feature of translation relationship betwen the same content node in different languages.</p> <p>Many Thanks for giving your opinion ;)</p> http://drupal.org/node/511186#comments Translations Mon, 06 Jul 2009 07:37:50 +0000 bnadem 511186 at http://drupal.org content translations problem in drupal 6 http://drupal.org/node/509876 <p>Hi..</p> <p>Im working on a site which needs multi language transulation.</p> <p>I am using i18n ,internationalization, etc .</p> <p>I want site in spanish, english.<br /> i have imported es.po file</p> <p>It translate drupal interface.</p> <p>but it d'nt translate page content. I am following all step for i18n module</p> http://drupal.org/node/509876#comments Translations Drupal 6.x Sat, 04 Jul 2009 04:19:08 +0000 durgesh 509876 at http://drupal.org Need help with Localization / Different Languages in 5.x http://drupal.org/node/509538 <p>I have Localizer and Localization loaded for Drupal 5.x but this doesn't seem to be working the way I would expect and I need some help. Please either tell me that this is working as intended or direct me to resources which may be able to help.</p> <p>I currently have a language flag showing up on the site. For each node there is a 'Translations' tab which seems to track the translations available for a node. I can put in both an English and a French translation. However, these seem to exist as completely different Node IDs (node/63 is English, node/64 is French). The problem I'm running into is that all site links that go to node/63 result in an English translation. I was hoping that once the user had selected French as their language that they it would then give them the French version of that node. When they clicked on a link that went to node/63 it would notice that French was their selected language, notice that node/63 had a French translation and redirect to node/64. This is not the case. I am now having to go through my entire site and update all links to point to the correct translation version.</p> <p>Is this correct? Is there a better way?</p> <p><a href="http://drupal.org/node/509538" target="_blank">read more</a></p> http://drupal.org/node/509538#comments Translations Drupal 5.x Fri, 03 Jul 2009 17:09:55 +0000 oddible 509538 at http://drupal.org Translate the word HOME on Front page (home page) http://drupal.org/node/508162 <p>Hello,<br /> I am using Drupal6. I finally got the text of the front page translating properly via the Language switcher<br /> The only problem is that still on the front page it displays "HOME" for both french and Englsih. I think this is due to the<br /> fact that I am using Aliases. </p> <p>My English path for the Eng is <a href="http://www.xxxxxx.ca/drupal6/en/node/1" title="http://www.xxxxxx.ca/drupal6/en/node/1" rel="nofollow">http://www.xxxxxx.ca/drupal6/en/node/1</a> and the alias <a href="http://www.xxxxxx.ca/drupal6/en/content/home" title="http://www.xxxxxx.ca/drupal6/en/content/home" rel="nofollow">http://www.xxxxxx.ca/drupal6/en/content/home</a></p> <p>The path the the french front page is <a href="http://www.xxxxxx.ca/drupal6/fr/node/5" title="http://www.xxxxxx.ca/drupal6/fr/node/5" rel="nofollow">http://www.xxxxxx.ca/drupal6/fr/node/5</a> and the alias is <a href="http://www.xxxxxx.ca/drupal6/fr/content/home" title="http://www.xxxxxx.ca/drupal6/fr/content/home" rel="nofollow">http://www.xxxxxx.ca/drupal6/fr/content/home</a></p> <p>Using the above was the only way I could get the language switcher to work properly.<br /> I think due to the fact that I am using /content/home for both eng and Fr is the reason why I have 'HOME' on both the eng and fr pages.</p> <p>Under admin/site config / site info / default front page I have <a href="http://www.xxxxxx.ca/drupal6/en/content/home" title="http://www.xxxxxx.ca/drupal6/en/content/home" rel="nofollow">http://www.xxxxxx.ca/drupal6/en/content/home</a> or<br /> <a href="http://www.xxxxxx.ca/drupal6/fr/content/home" title="http://www.xxxxxx.ca/drupal6/fr/content/home" rel="nofollow">http://www.xxxxxx.ca/drupal6/fr/content/home</a></p> <p>Any suggestions appreciated.</p> <p>Thank you<br /> Neil</p> http://drupal.org/node/508162#comments Translations Drupal 6.x Thu, 02 Jul 2009 12:36:48 +0000 ncarson 508162 at http://drupal.org Blocktitle "Private Messages" not translatable http://drupal.org/node/506460 <p>Hi there,<br /> i am using Drupal 6.12 and Private Messages 6.x-1.0-rc2. I'm building a bilingual site (german/english) and i translated everything from the Privmsg Modul to german, EXCEPT the blocktitle. It always says "Private messages", even if i switch to german. I didn't find this blocktitle with the translate interface :(</p> <p>Does someone have any idea?</p> <p>Greets,<br /> Flo</p> http://drupal.org/node/506460#comments Translations Drupal 6.x Tue, 30 Jun 2009 17:30:57 +0000 casa-awesome 506460 at http://drupal.org Statistics don't work http://drupal.org/node/504438 <p>Hello</p> <p>I have a multilanguage (arabic and french) site <a href="http://www.casafire.com" title="www.casafire.com" rel="nofollow">www.casafire.com</a> set up with the following settings:</p> <p>Default language: Arabic<br /> Display mode: Current language and language neutral</p> <p>The site and the translations work well except when displaying reports in arabic such as read counter and comments counter (inline with nodes or on the report pages). When the site is displayed in arabic those counters are always set to "Not read" and "No comments", this happens only when the site is displayed in arabic. </p> <p>FYI: This problem is only present on my production site, I can't reproduce it on a localhost testing site</p> <p>Anyone have a solution please?</p> <p>Thank you</p> http://drupal.org/node/504438#comments Translations Drupal 6.x Sun, 28 Jun 2009 11:44:58 +0000 محمد أمين 504438 at http://drupal.org Load default language from global $language - fckeditor language auto-detect no good http://drupal.org/node/504402 <p>Thought I'd try post this in the forum as well as in module issues...</p> <p>Load default language from global $language - anyone know how to do this? FCKedotor's auto-detect doesn't seem to work - and I would prefer it fckeditors ui language went off sites current language anyway.</p> <p>I'm new to coding...</p> <p>I'm guessing you can add code to fckeditor.module so that, if appearance configuration is turned off (in fckeditor profile settings), the $language global can be loaded into set fckeditor ui language.</p> <p>//if ($conf['appearance_conf'] == 'f') {<br /> $js .= "\n". $js_id .".ToolbarSet = \"". $toolbar ."\";<br /> ". $js_id .".Config['SkinPath'] = ". $js_id .".BasePath + \"editor/skins/". $conf['skin'] ."/\";<br /> ". $js_id .".Config['DefaultLanguage'] = \"". $conf['lang'] ."\";<br /> ". $js_id .".Config['AutoDetectLanguage'] = ". ($conf['auto_lang']=="t"?"true":"false") .";<br /> ". $js_id .".Height = \"". $height ."\";<br /> ". $js_id .".Config['ToolbarStartExpanded'] = ". ($conf['expand']=="t"?"true":"false") .";<br /> ". $js_id .".Width = \"". $width ."\";\n";<br /> //}</p> <p><a href="http://api.drupal.org/api/global/language/6" title="http://api.drupal.org/api/global/language/6" rel="nofollow">http://api.drupal.org/api/global/language/6</a></p> <p>Whenever I do ANYTHING to the fckeditor.module I get WSOD. Could/should something be done in fckeditor.config.js instead?</p> <p>Advice appreciated.</p> http://drupal.org/node/504402#comments Translations Drupal 6.x Sun, 28 Jun 2009 10:04:48 +0000 Mr P 504402 at http://drupal.org How to get all the string to translate in a Drupal site http://drupal.org/node/502904 <p>Hello, I'm new in Internationalization /localization with Drupal.</p> <p>I first would like to know where all the translations are stored ?</p> <p>Is there a possibility to get all the string to translate in a Drupal site ? Rather than either searching each single word/phrase (String translation) or translating each page via Localization client. What would you suggest to help to get an exhaustive translation of the site ?</p> <p>Here are the modules we're using : Localization client, Block translation, Content type translation, Internationalization, Language Icons, Menu translation, Poll aggregate, Profile translation, String translation, Synchronize translations, Taxonomy translation, Translation table, Active translation.</p> <p>Thanks in advance</p> http://drupal.org/node/502904#comments Translations Drupal 6.x Fri, 26 Jun 2009 10:46:59 +0000 nicoBel 502904 at http://drupal.org Language Switcher button issue ? http://drupal.org/node/502148 <p>Hello,<br /> I am very new to Drupal and CMS. After receiving some help from the 'Before you Start' forum I have translation somewhat working on my test site.</p> <p>I know have the Language Switcher English/french button on the right side. I also have the English or French button on the bottom of my main page. The issue is this. If I am in the Englsih main page and click on french at the botto of the screen ... the page will translate to french. If I then select english at the bottom of the page it will change to the english page. Which is great.</p> <p>but the issue is this.</p> <p>When I first go to my test site it defaults to english, which is ok for now BUT if I use the Language Switcher button on the RIGHT hand side of the screen and click french the main page does not change to french. But if I use the small french button on the bottom of the main page it changes to french.</p> <p>It should be noted in the IE address bar when I select french in the side language switcher bar the url changes to<br /> <a href="http://www.mysite.com/drupal6/fr" title="www.mysite.com/drupal6/fr" rel="nofollow">www.mysite.com/drupal6/fr</a> but the mainpage is still english but if I click the french button at the bottom of the mainpage the url changes to <a href="http://www.mysite.com/drupal6/fr/node/5" title="www.mysite.com/drupal6/fr/node/5" rel="nofollow">www.mysite.com/drupal6/fr/node/5</a> and the main page is now french</p> <p>How can I get the Langauge switcher on the right on side of the screen working ?</p> <p><a href="http://drupal.org/node/502148" target="_blank">read more</a></p> http://drupal.org/node/502148#comments Translations Drupal 6.x Thu, 25 Jun 2009 16:24:21 +0000 ncarson 502148 at http://drupal.org Getting front page to display in proper view. http://drupal.org/node/501762 <p>Hello.</p> <p>So I used content translation capability to make a page node available in two languages. Now I want to make sure this content is promoted to the front page and displayed in the appropriate language. No dice: front page promotion feature seems to be pretty low-level, bypassing the content translation layer. If I promote the English version, it will be on the front page regardless of what language is set in the browser options, if I promote both English and Russian, both will display. How do I solve this?</p> <p><a href="http://drupal.org/node/501762" target="_blank">read more</a></p> http://drupal.org/node/501762#comments Translations Drupal 6.x Thu, 25 Jun 2009 08:52:16 +0000 parahumanoid 501762 at http://drupal.org Help on multi language transulation http://drupal.org/node/499996 <p>Hi..</p> <p>Im working on a site which needs multi language transulation.</p> <p>Im using i18n ,internationalization, etc .</p> <p>I want site in spanish, catalan and english. also i have imported es.po,ca.po<br /> but some of the words are not transulating. </p> <p>can any one have a patch file for this.</p> <p>or do any one have another idea.</p> http://drupal.org/node/499996#comments Translations Drupal 6.x Tue, 23 Jun 2009 17:28:10 +0000 tomsteve 499996 at http://drupal.org Switcher Language block http://drupal.org/node/499654 <p>Hello forum,<br /> my question is about Switcher Language block (Drupal 6.10)<br /> I have activated this block (2 languages: Spanish &amp; Valenciano). It works perfectly in all website except from the home page (home page=node type page, menus and blocks don't switch language). Only works wrong from home page, from other nodes works OK.<br /> Somebody knows what happens?<br /> Thank you!<br /> Fanny</p> http://drupal.org/node/499654#comments Translations Drupal 6.x Tue, 23 Jun 2009 11:41:10 +0000 fannyd 499654 at http://drupal.org Customizing a Theme for RTL (right-to-left) "Farsi" text http://drupal.org/node/499208 <p>I need to customize my template (prospoint) to support RTL (right-to-left) layout. and i don't know How to ! I'd appreciate anyone's here. </p> <p>FYI I added a new Language That is aligned Right to left ( i.e Arabic) , Created a new story and selected the Arabic language. Eveything looks fine when creating a story but when published the teaser, thumbnail, Headlines, and content are all aligned Left to right instead of Right to left.</p> <p>Thanks</p> http://drupal.org/node/499208#comments Translations Drupal 6.x Mon, 22 Jun 2009 23:51:10 +0000 kash597 499208 at http://drupal.org content translation links aren't including the path prefix http://drupal.org/node/498770 <p>I'm have a site with an English / Spanish translation.<br /> cfg: admin/settings/language/configure to Path prefix only</p> <p>I was having trouble with the content translation links.. they don't appear to be linking to the side of the site as defined by the path prefix setting. All of the menu items disappear and such like that...</p> <p>example: node/1 is the english page, node/2 is the translated. it only links to "node/2" and not "es/node/2" as we would need to ensure the menu translations are accurate.</p> <p>Made this change to hide the links for the time being:<br /> admin/settings/language/i18n &gt; [x] Hide content translation links</p> <p>Is there a way to force them to include the path prefix?</p> http://drupal.org/node/498770#comments Translations Drupal 6.x Mon, 22 Jun 2009 15:36:51 +0000 mcsolas 498770 at http://drupal.org T function within class errors http://drupal.org/node/497536 <p>I created a Constants class which holds arrays used throughout my app. However, the following code errors out:</p> <p><div class="codeblock"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">class </span><span style="color: #0000BB">Constants<br /></span><span style="color: #007700">{<br />&nbsp;&nbsp;&nbsp; public </span><span style="color: #0000BB">$some_arr </span><span style="color: #007700">= array (</span><span style="color: #0000BB">t</span><span style="color: #007700">(</span><span style="color: #DD0000">'Some string'</span><span style="color: #007700">), </span><span style="color: #0000BB">t</span><span style="color: #007700">(</span><span style="color: #DD0000">'Some string2'</span><span style="color: #007700">)); </span><span style="color: #FF8000">// error<br /></span><span style="color: #007700">}<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div></p> <p>I see that without the t() function, everything works as intended:</p> <p><div class="codeblock"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">class </span><span style="color: #0000BB">Constants<br /></span><span style="color: #007700">{<br />&nbsp;&nbsp;&nbsp; public </span><span style="color: #0000BB">$some_arr </span><span style="color: #007700">= array (</span><span style="color: #DD0000">'Some string'</span><span style="color: #007700">, </span><span style="color: #DD0000">'Some string2'</span><span style="color: #007700">); </span><span style="color: #FF8000">// works<br /></span><span style="color: #007700">}<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div></p> <p>The constants class is located in another module's folder. It is included using</p> <p><div class="codeblock"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /> </span><span style="color: #007700">require_once(</span><span style="color: #DD0000">"$path/my_module_constants.php"</span><span style="color: #007700">); <br /></span><span style="color: #0000BB">?&gt;</span></span></code></div></p> <p>How do I provide support for internalization/translations within objects (if possible)?<br /> How can I make this external code aware of the t() function?</p> <p>Thank you in advance.</p> http://drupal.org/node/497536#comments Translations Drupal 6.x Sun, 21 Jun 2009 00:09:38 +0000 h4rp0on3r 497536 at http://drupal.org Language translation problem http://drupal.org/node/496366 <p>hi!<br /> i have activated locale module and translation module and made some changes into admin setting but page created on front are still not change. language translation module is not working can any body help?</p> http://drupal.org/node/496366#comments Translations Drupal 6.x Fri, 19 Jun 2009 14:42:39 +0000 kk027 496366 at http://drupal.org support Arabic http://drupal.org/node/493942 <p>can drupal support Arabic language</p> http://drupal.org/node/493942#comments Translations Drupal 6.x Wed, 17 Jun 2009 09:16:19 +0000 amira 493942 at http://drupal.org Translating (?) the logo http://drupal.org/node/493914 <p>Hi</p> <p>I have a i18n enabled site with 3 languages enabled and selectable using the language switching block. My header area is filled with a large JPG logo whcih contains text. Is there a way to switch the JPG as the language changes so that I can translate the text contained within the graphic ?</p> <p>Your help much appreciated.</p> <p>Dave</p> http://drupal.org/node/493914#comments Translations Drupal 6.x Wed, 17 Jun 2009 08:42:34 +0000 Daves 493914 at http://drupal.org Strange translation related question... http://drupal.org/node/493372 <p>Hi,</p> <p>The site only has one language. That is English.</p> <p>On this site I have an HTML table with header:</p> <p><div class="codeblock"><code>&lt;td&gt;&lt;?=t(&#039;uid&#039;)?&gt;&lt;/td&gt;<br />&lt;td&gt;&lt;?=t(&#039;first name&#039;)&lt;/td&gt;<br />&lt;td&gt;&lt;?=t(&#039;last name&#039;)&lt;/td&gt;</code></div></p> <p>Now, what if the site owner want to change some of the titles - just a little bit. Like, for example - maybe they want to rename the "first name" to "surname" or "given name". Or "last name" to "family name".</p> <p>Simple task. But can it be done with Translation or will they have to edit the template?</p> <p>Thanks,</p> http://drupal.org/node/493372#comments Translations Drupal 6.x Tue, 16 Jun 2009 18:16:41 +0000 mareks 493372 at http://drupal.org