Mail Archive Home | exoplatform List | December 2006 Index
| <-- Date Index --> | <-- Thread Index --> |
Below I show a simple trick to switch portal from left-to-right versus
right-to-left
Honestly my solution is a trick and not a really solution.
You must declare a variable in every properties locale you have
for example:
default_it.properties
lang.dir=ltr
lang.code=it
default_iw.properties
lang.dir=rtl
lang.code=iw
and so on
then you patch the file UIPortal.vm modifing the "<html ..." line as shown
below
<html xmlns="http://www.w3.org/1999/xhtml"
xml:lang="$res.getString("lang.code")"
lang="$res.getString("lang.code")"
dir="$res.getString("lang.dir")">
Now when you click on "select language" link, automatically the html page
switch to correct direction
Remember to copy UIPortal.vm into an unjarred portal.war directory at the
path
shown below
portal.war/velocity/org/exoplatform/portal/faces/renderer/html/portal/UIPort
al.vm
I don't know how to change where to copy UIPortal.vm and if somebody knows
the solution
please tell me ;-)
| <-- Date Index --> | <-- Thread Index --> |
Powered by MHonArc.
Copyright © 2006-2007, OW2 Consortium | contact | webmaster.