You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wookie.apache.org by sc...@apache.org on 2010/02/22 23:24:18 UTC
svn commit: r915093 -
/incubator/wookie/trunk/src/org/apache/wookie/helpers/WidgetHelper.java
Author: scottbw
Date: Mon Feb 22 22:24:18 2010
New Revision: 915093
URL: http://svn.apache.org/viewvc?rev=915093&view=rev
Log:
Improved support for RTL text in widget catalogue information using the "dir" attribute for license, description, name. (Still missing from Author)
Modified:
incubator/wookie/trunk/src/org/apache/wookie/helpers/WidgetHelper.java
Modified: incubator/wookie/trunk/src/org/apache/wookie/helpers/WidgetHelper.java
URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/src/org/apache/wookie/helpers/WidgetHelper.java?rev=915093&r1=915092&r2=915093&view=diff
==============================================================================
--- incubator/wookie/trunk/src/org/apache/wookie/helpers/WidgetHelper.java (original)
+++ incubator/wookie/trunk/src/org/apache/wookie/helpers/WidgetHelper.java Mon Feb 22 22:24:18 2010
@@ -97,6 +97,7 @@
+ "\" version=\"" + widget.getVersion()
+ "\">\n";
out += "\t\t<title ";
+ if (name.getDir()!=null) out+=" dir=\""+name.getDir()+"\"";
if (shortName != null) out +="short=\""+shortName + "\"";
out +=">";
if(longName != null) out += longName;
@@ -104,7 +105,9 @@
// Do description
Description desc = (Description) LocalizationUtils.getLocalizedElement(Description.findByValue("widget", widget), locales);
- out += "\t\t<description>";
+ out += "\t\t<description";
+ if (desc.getDir()!=null) out+=" dir=\""+desc.getDir()+"\"";
+ out += ">";
if (desc != null) out += desc.getContent();
out += "</description>\n";
@@ -156,7 +159,7 @@
out +="\t\t<license ";
if (license.getLang()!=null) out+=" xml:lang=\""+license.getLang()+"\"";
if (license.getHref()!=null) out+=" href=\""+license.getHref()+"\"";
- if (license.getDir()!=null) out+=" its:dir=\""+license.getDir()+"\"";
+ if (license.getDir()!=null) out+=" dir=\""+license.getDir()+"\"";
out+=">"+license.getText()+"</license>\n";
}