translation generator

This commit is contained in:
Athou
2013-05-17 18:26:40 +02:00
parent 54841a92de
commit 888795c02b
5 changed files with 105 additions and 2 deletions

View File

@@ -44,7 +44,7 @@ public class HTMLConcat {
while (m.find()) {
String var = m.group(1);
Object replacement = props.get(var);
m.appendReplacement(sb, replacement.toString());
m.appendReplacement(sb, replacement == null ? var : replacement.toString().split("#")[0].trim());
}
m.appendTail(sb);
return sb.toString();