Update OsmandApplication.java

This commit is contained in:
vshcherb 2015-11-09 16:57:34 +01:00
parent ebe029290b
commit a897ffcc1f

View file

@ -715,4 +715,16 @@ public class OsmandApplication extends Application {
}
public String getLangTranslation(String l) {
try {
Field f = R.string.class.getField("lang_"+l);
if (f != null) {
Integer in = (Integer) f.get(null);
return app.getString(in);
}
} catch (Exception e) {
System.err.println(e.getMessage());
}
return l;
}
}