From: <die...@us...> - 2011-01-21 10:05:22
|
Revision: 3255 http://openutils.svn.sourceforge.net/openutils/?rev=3255&view=rev Author: diego_schivo Date: 2011-01-21 10:05:15 +0000 (Fri, 21 Jan 2011) Log Message: ----------- PIRMEDIA-201 i18n locales Modified Paths: -------------- trunk/openutils-mgnlmedia/src/main/resources/net/sourceforge/openutils/mgnlmedia/playlist/pages/PlaylistView.html Modified: trunk/openutils-mgnlmedia/src/main/resources/net/sourceforge/openutils/mgnlmedia/playlist/pages/PlaylistView.html =================================================================== --- trunk/openutils-mgnlmedia/src/main/resources/net/sourceforge/openutils/mgnlmedia/playlist/pages/PlaylistView.html 2011-01-21 09:23:23 UTC (rev 3254) +++ trunk/openutils-mgnlmedia/src/main/resources/net/sourceforge/openutils/mgnlmedia/playlist/pages/PlaylistView.html 2011-01-21 10:05:15 UTC (rev 3255) @@ -2,6 +2,7 @@ [#setting url_escaping_charset="UTF-8"] [#assign mgnlEl = this.getStatic("it.openutils.mgnlutils.el.MgnlUtilsElFunctions")] [#assign mediaEl = this.getStatic("net.sourceforge.openutils.mgnlmedia.media.tags.el.MediaEl")] +[#assign i18nFactory = this.getStatic("info.magnolia.cms.i18n.I18nContentSupportFactory")] <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head> <link rel="stylesheet" type="text/css" href="${this.request.contextPath}/.resources/ext/css/ext-all.css" /> @@ -192,7 +193,11 @@ var detailItems = [ { xtype: 'panel', - html: '<select name="x" style="float: right;" onchange="location.href = location.href + \'&locale=\' + this.options[this.selectedIndex].value;"><option value="en">en</option><option value="it">it</option></select>' + html: '<select style="float: right;" onchange="location.href = \'${this.request.contextPath}/.magnolia/pages/playlistView.html?path=\' + playlist.handle + \'&mgnlCK=\' + (new Date()).getTime() + \'&locale=\' + this.options[this.selectedIndex].value;">\ + [#list i18nFactory.getI18nSupport().getLocales() as locale] + <option value="${locale.language}" [#if locale.language == this.locale!'']selected="selected"[/#if]>${locale.language}</option>\ + [/#list] + </select>' }, playlistForm [#list mediaEl.module().playlistLinks as item] This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |