Update OsmandApplication.java
This commit is contained in:
parent
ebe029290b
commit
a897ffcc1f
1 changed files with 12 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue