diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/loc/LocUtils.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/loc/LocUtils.java index 5857e6f93..e32146912 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/loc/LocUtils.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/loc/LocUtils.java @@ -264,6 +264,7 @@ public class LocUtils { String key = context.getString( id ); Assert.assertNotNull( key ); String txt = pair.getString( "loc" ); + txt = replaceEscaped( txt ); newXlations.put( key, txt ); } @@ -438,6 +439,13 @@ public class LocUtils { return result; } + private static String replaceEscaped( String txt ) + { + String result = txt.replaceAll("\\n", "\n"); + // DbgUtils.logf( "replaceEscaped(<<%s>>) -> <<%s>>", txt, result ); + return result; + } + public static AlertDialog.Builder makeAlertBuilder( Context context ) { return new AlertBuilder( context );