English 中文(简体)
Drupal Multi-language: Simple strings not translated
原标题:

I m adding additional languages to a Drupal site that I m building.

Getting the translation of content working is fairly easy using the Internationalisation module.

Yet, simple things such as date strings, i.e. day, month and year aren t translated.

I would expect simple things like this to be some of the first things to be translated.

Am I missing something?

最佳回答

For text to be translated, each module needs to pass display text through a specific function (named t() ) which allows the text to be translatable.

It s likely that some module writers are better at doing this consistently than others.

问题回答

I found the solution to this in the end.

It came down to knowing what to search for in the translate interface admin section.

I was looking to translate month names into different languages and so search for strings matching November . This always came up with nothing.

It truned out that I need to search for month . This then allowed my to add translations for all of the month names and also other date related translations.

Very frustrating the effort required to find that out!





相关问题
Translation of labels

I already have one application running (in English language). I want to translate those application text to some native langauges with my program. It it possible to change it?

Implementing multi languages with CSS and PHP

I m building a small site, that needs to support 2 languages for the same page. Each language has different buttons on the page, the buttons are basically some images with text inside. The positioning ...

Multilingual virtual keyboard in java

I am planning to create a multi lingual keyboard using Java. can u give some ideas or suggestions for doing that? Is there any open source code or interface which i can use in my code?

How to make multilingual login in django?

I need to create multilingual website. But there is a problem with the login address. Do you know, how I can have /login/ for EN and /prihlasit/ for CS, etc... ? I can specify just one login url in ...

SEO of multi-language website

i am building a website with a multi-language feature. it would be hard if each of the pages are to be created manually for each language so instead, i have different php files for each language ...

Drupal Multi-language: Simple strings not translated

I m adding additional languages to a Drupal site that I m building. Getting the translation of content working is fairly easy using the Internationalisation module. Yet, simple things such as date ...

PHP - Mulilingual application design

There are many ways to design a multilingual application in PHP. Some language file based, others database based. I am looking to use it for mostly small amounts of text e.g errors - at most a ...

热门标签