MCRMetaNumber depends on Locale of runtime environment being "de"
Description
Current code only work if Locale is "de" internal representation should be independent of locale of the running system code now:
should be like this:
as the result of getNumberAsString() is used for internal XML representation of the number. This format should be independent of the runtime environment so that data can be handled in different environments.
Now we use internal and for the output of getNumberAsString the ENGLISH Locale. The transformation to the local presentation should run in the presentation layer of the application. So the length of the dimension and measurement attributes are defined in new properties and checked on input side of the class.
Thomas Scheffler
April 12, 2016 at 8:32 AM
JUnit test fails on English environment: org.mycore.datamodel.metadata.MCRMetaNumberTest.numberTransformation()
Current code only work if Locale is "de"
internal representation should be independent of locale of the running system
code now:
should be like this:
as the result of
getNumberAsString()
is used for internal XML representation of the number. This format should be independent of the runtime environment so that data can be handled in different environments.