Fix strings

This commit is contained in:
PavelRatushny 2017-11-17 17:13:31 +02:00
parent 61c7a13344
commit a2b74269be
2 changed files with 6 additions and 3 deletions

View file

@ -9,6 +9,9 @@
3. All your modified/created strings are in the top of the file (to make easier find what\'s translated).
PLEASE: Have a look at http://code.google.com/p/osmand/wiki/UIConsistency, it may really improve your and our work :-) Thx - Hardy
-->
<string name="shared_string_deleted">Deleted</string>
<string name="shared_string_edited">Edited</string>
<string name="shared_string_added">Added</string>
<string name="looking_for_tracks_with_waypoints">Looking for tracks with waypoints</string>
<string name="shared_string_more_without_dots">More</string>
<string name="appearance_on_the_map">Appearance on the map</string>

View file

@ -137,11 +137,11 @@ public class OsmEditsAdapter extends ArrayAdapter<OsmPoint> {
private String getDescription(OsmPoint point) {
String action = "";
if (point.getAction() == OsmPoint.Action.CREATE) {
action = getContext().getString(R.string.action_create);
action = getContext().getString(R.string.shared_string_added);
} else if (point.getAction() == OsmPoint.Action.MODIFY) {
action = getContext().getString(R.string.action_modify);
action = getContext().getString(R.string.shared_string_edited);
} else if (point.getAction() == OsmPoint.Action.DELETE) {
action = getContext().getString(R.string.action_delete);
action = getContext().getString(R.string.shared_string_deleted);
} else if (point.getAction() == OsmPoint.Action.REOPEN) {
action = getContext().getString(R.string.action_modify);
}