掲示板

Web Content translation

9年前 に Toshiro Mifune によって更新されました。

Web Content translation

Regular Member 投稿: 238 参加年月日: 14/12/11 最新の投稿
Good day to all,

I know how to add another translation to a web content and how to switch between them ... by clicking on language Flag. But is thi possible to do it programatically? I mean something like this ...

#if ( lang = "english" )
    ... set wew content ( "ID" ) language to english
#else 
    ... set web content ( "ID" ) language to slovak
#end

Is it possible? Thank you indeed for answers ...
thumbnail
9年前 に Miroslav Ligas によって更新されました。

RE: Web Content translation

Regular Member 投稿: 152 参加年月日: 14/07/29 最新の投稿
You definitely could do it. We are programmers, we can do anything emoticon I would have a look at the Liferay language portlet how it's done:
portal-web/docroot/html/taglib/ui/language/page.jsp
com.liferay.portlet.language.action.ViewAction

The question here is why would you want to do that? They may be a better solution.