parent
3528e2e6cc
commit
d2bd18e322
@ -3,6 +3,8 @@
|
|||||||
# easy-i18n Changelog
|
# easy-i18n Changelog
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
### Fixed
|
||||||
|
- Character unescaping for '.properties' files
|
||||||
|
|
||||||
## [2.0.0]
|
## [2.0.0]
|
||||||
### BREAKING CHANGES
|
### BREAKING CHANGES
|
||||||
|
@ -5,6 +5,7 @@ import de.marhali.easyi18n.model.Translation;
|
|||||||
import de.marhali.easyi18n.model.TranslationData;
|
import de.marhali.easyi18n.model.TranslationData;
|
||||||
import de.marhali.easyi18n.util.StringUtil;
|
import de.marhali.easyi18n.util.StringUtil;
|
||||||
|
|
||||||
|
import org.apache.commons.lang.StringEscapeUtils;
|
||||||
import org.apache.commons.lang.math.NumberUtils;
|
import org.apache.commons.lang.math.NumberUtils;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@ -48,7 +49,7 @@ public class PropertiesMapper {
|
|||||||
} else if(NumberUtils.isNumber(content)) {
|
} else if(NumberUtils.isNumber(content)) {
|
||||||
properties.put(simpleKey, NumberUtils.createNumber(content));
|
properties.put(simpleKey, NumberUtils.createNumber(content));
|
||||||
} else {
|
} else {
|
||||||
properties.put(simpleKey, content);
|
properties.put(simpleKey, StringEscapeUtils.unescapeJava(content));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user