toward substituting what getString (or the resource compiler) normally does.

This commit is contained in:
Eric House 2014-04-24 07:08:57 -07:00
parent ed3370133f
commit 3b4c672492

View file

@ -264,6 +264,7 @@ public class LocUtils {
String key = context.getString( id ); String key = context.getString( id );
Assert.assertNotNull( key ); Assert.assertNotNull( key );
String txt = pair.getString( "loc" ); String txt = pair.getString( "loc" );
txt = replaceEscaped( txt );
newXlations.put( key, txt ); newXlations.put( key, txt );
} }
@ -438,6 +439,13 @@ public class LocUtils {
return result; 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 ) public static AlertDialog.Builder makeAlertBuilder( Context context )
{ {
return new AlertBuilder( context ); return new AlertBuilder( context );