mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-30 10:26:58 +01:00
toward substituting what getString (or the resource compiler) normally does.
This commit is contained in:
parent
ed3370133f
commit
3b4c672492
1 changed files with 8 additions and 0 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue