2011-12-25, 22:53:34
Zapmobilegames Wrote:Hi mvlcek,
I'm using your multilanguage plugin and it's great! I would know if it would possibile, in future implementation, also to translate the website title (as <title> tag I can found in the theme php main file).
I'm trying to do it acting on the template php but I'm a noob and I cannot do it. Let's have a look at www.zapmobilegames.com. The website title is in italian, but the website is in three languages, already completely translated, but the title.
Thanks!
Zap
If you want to use the title of the current page, you can use <title><?php get_page_clean_title(); ?></title>.
If you want the same title for all pages, create components title, title_en and title_fr with the title in the corresponding language and use <title><?php get_i18n_component('title'); ?></title>.
You can also use a combination of those, e.g. on mvlcek.bplaced.net the code is <title><?php get_page_clean_title(); ?> | <?php get_site_name(); ?>, <?php get_i18n_component('tagline'); ?></title>.