Loading...
 
Skip to main content

Multilingual/i18n


Re: Switching Site Contents and Menus in one click

posts: 4675 ☆ ☆ ☆ Japan

I'm working on a site that will be in Japanese and English. The site is using a vertical phplayers menu at the top of the left column, called from tiki.tpl. To have the languange-appropriate menu used, I put a statement like this in tiki.tpl:

Copy to clipboard
{if $language == 'ja'} {phplayers id=44 type=vert} {else} {phplayers id=43 type=vert} {/if}

I had to make two menus since the menu items need to point to different pages, depending on the language. I first tried doing this dynamically with just one menu, but the page names (many of them with Japanese characters) can't just be translated but need to be URL encoded.

I'm using the "Multilanguage" feature to set up alternative wiki pages and articles. So far (site isn't public yet) things are working well.

-- Gary