More d:locale property support

- Specific tests
 - Locale is persisted as a string of a more consistent nature


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4608 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2006-12-14 15:11:21 +00:00
parent ab252efe82
commit fee38b6eb3
3 changed files with 21 additions and 1 deletions

View File

@@ -134,7 +134,12 @@ public class PropertyValue implements Cloneable, Serializable
@Override
Serializable convert(Serializable value)
{
return DefaultTypeConverter.INSTANCE.convert(String.class, value);
String str = DefaultTypeConverter.INSTANCE.convert(String.class, value);
if (value instanceof Locale && str.length() < 6)
{
str += "_";
}
return str;
}
},
DATE