diff --git a/OsmAnd/src/net/osmand/plus/OsmandApplication.java b/OsmAnd/src/net/osmand/plus/OsmandApplication.java index ae0be4814a..7c716f598b 100644 --- a/OsmAnd/src/net/osmand/plus/OsmandApplication.java +++ b/OsmAnd/src/net/osmand/plus/OsmandApplication.java @@ -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; + } }