From 3fa17b599719f401bd9890b2402bae8ae1f40b12 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Tue, 7 Jan 2020 20:16:28 +0100 Subject: [PATCH] Introduce R.string.ltr_or_rtl_combine to get better translations --- OsmAnd/res/values/strings.xml | 1 + .../osmand/plus/settings/CoordinatesFormatFragment.java | 7 +++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/OsmAnd/res/values/strings.xml b/OsmAnd/res/values/strings.xml index ab0e60d3ac..b270b156a6 100644 --- a/OsmAnd/res/values/strings.xml +++ b/OsmAnd/res/values/strings.xml @@ -11,6 +11,7 @@ Thx - Hardy --> + %1$s: %2$s By clicking %1$s, you will lose all your changes. All profile settings will be reset to the state after installation. Reset all profile settings to default? diff --git a/OsmAnd/src/net/osmand/plus/settings/CoordinatesFormatFragment.java b/OsmAnd/src/net/osmand/plus/settings/CoordinatesFormatFragment.java index 68d08ebb17..44501c7b44 100644 --- a/OsmAnd/src/net/osmand/plus/settings/CoordinatesFormatFragment.java +++ b/OsmAnd/src/net/osmand/plus/settings/CoordinatesFormatFragment.java @@ -77,9 +77,8 @@ public class CoordinatesFormatFragment extends BaseSettingsFragment { String formattedCoordinates = OsmAndFormatter.getFormattedCoordinates(lat, lon, format); if (format == PointDescription.UTM_FORMAT) { SpannableStringBuilder spannableBuilder = new SpannableStringBuilder(); - spannableBuilder.append(getString(R.string.shared_string_example)); - spannableBuilder.append(": "); - spannableBuilder.append(formattedCoordinates); + String combined = getString(R.string.ltr_or_rtl_combine, getString(R.string.shared_string_example), formattedCoordinates); + spannableBuilder.append(combined); spannableBuilder.append("\n"); spannableBuilder.append(getString(R.string.utm_format_descr)); @@ -106,7 +105,7 @@ public class CoordinatesFormatFragment extends BaseSettingsFragment { return spannableBuilder; } - return getString(R.string.shared_string_example) + ": " + formattedCoordinates; + return getString(R.string.ltr_or_rtl_combine, getString(R.string.shared_string_example), formattedCoordinates); } @Override