Using the localized name

pictogram - January 26, 2008 - 19:24
Project:Localization client
Version:5.x-1.x-dev
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

I've translated the client in french but wonder if it would be possible to have the %language in 'Translation to %language' return the name of the langauge in it's own language : ex in french returns > Traduction vers le FRENCH. FRANÇAIS would be better.

Thanks

#1

pictogram - January 26, 2008 - 19:40

I forgot to include the 'TRANSLATE TEXT' string which catch the translation for 1 sec but then goes back to english !!

I'm working with D5.6

#2

Pasqualle - February 1, 2008 - 03:07
Status:active» fixed

The only viable option in drupal 5 is to change the language "English name" from FRENCH to FRANÇAIS on page admin/settings/locale/language/overview

i18n module add the "Native name" column to this settings page, but that can not be used in this context
to hack the module and use t() function to translate FRENCH to FRANÇAIS is not recommended, because it is 'user defined string'

#3

Gábor Hojtsy - February 1, 2008 - 13:03
Status:fixed» active

Actually, language names are an exception to the "user defined strings" rule, since we have a list of default language names, French being one of them. So we can just use t() there.

 
 

Drupal is a registered trademark of Dries Buytaert.