Introduce R.string.ltr_or_rtl_combine to get better translations
This commit is contained in:
parent
be7281b34e
commit
3fa17b5997
2 changed files with 4 additions and 4 deletions
|
@ -11,6 +11,7 @@
|
|||
Thx - Hardy
|
||||
|
||||
-->
|
||||
<string name="ltr_or_rtl_combine">%1$s: %2$s</string>
|
||||
<string name="reset_confirmation_descr">By clicking %1$s, you will lose all your changes.</string>
|
||||
<string name="reset_all_profile_settings_descr">All profile settings will be reset to the state after installation.</string>
|
||||
<string name="reset_all_profile_settings">Reset all profile settings to default?</string>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue