2

I'm using calendar module and I noticed when browsing web that some words are not translated (e.g. "prev," "next," "day," "week," "month," "year"). Is it possible to write somewhere the translation for these words?

1

Content Translation module can help us using Translation Interface (example.com/admin/config/regional/translate/translate) in this regard to search the string and then define a translation against appropriate language.

The strings can only be translated if they are not hard coded and used with t() function.

t() always searches for appropriate translation with respect to currently selected language otherwise it returns the original string.

  • It seems that in Translation Interface there aren't those words. There are only longer sentences (some untranslated) containing them. So, I have to leave it untranslated? It seems strange that such a basic words would be untranslated. – xralf Jun 14 '11 at 15:55
  • It is not confirmed but I think string translation is case sensitive. prev is not a complete word. other example you showed are lower case. Try a search with first letter capital. do not ignore the case if these untranslated words are not used with t() function. – Shoaib Nawaz Jun 14 '11 at 16:23
  • String translation is not only case sensitive buy whitespace sensitive. Also, a lot of string use replacement variables, so if you can't find your string try searching for a shorter subset of it! – Alex Weber Apr 15 '12 at 4:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.