Hello,

I use localization module to import Chinese language. Now, my question is, how to make sitename and slogan automatically switch depending on the selected language? To my understand, the only control of these strings are at admin > site config > site information.

Thanks for your suggestion.

Comments

huayen’s picture

Is it possible to implement them in .po file?

jeanhr’s picture

Huayen,

I perfectly agree with your request and second it.

It seems that these two things have been overlooked... by the dev for translations.
Wondering why though... ?

So far, after a lot of testing, it seems that there other little things missing... or impossible to translate.
Maybe due to new untranslatable modules too.

Are all devs conscious about the issues?
If they are not translatable... we just cannot use them on many occasions. Too bad...

It would be nice to have since we also need these two things... ourselves for our multilingual sites... instead of hacking the code. The less hacks, the better.

Jean

jody lynn’s picture

You just need to go into your theme's page.tpl.php file and where it says print $site_name or print $site_slogan, change that to print t($site_name) or print t($site_slogan) etc.

By wrapping them with the t function (which perhaps stands for translate?), the strings will become translateable if you go to localization/manage strings and search for the strings.

--Zivtech--

isma44’s picture

This URL was very helpful for me.

http://drupal.org/node/134002

- isma44