I have a simple string with 2 placeholders:
<string name="substring_two_substrings_dash">%1$s - %2$s</string>
I don't know how to type this into Android studio for RTL languages like Arabic, where "1" should appear on the right and "2" on the left. Usually the placeholders are automatically reversed as you type them among other Arabic characters:
<string name="snackbar_lock_out_period_scheduled">تم جدولة الحبس %1$s لمدة %2$s!</string> [Actually this changed when I pasted it here, it looks like "s$2%" in Android studio]
However, for the simple string with just "-" in between the 2 placeholders, it doesn't automatically reverse, because it doesn't detect any Arabic characters. If I do also add an Arabic character in there, it works.
How can I type it in and force it to be RTL?
It crashes at runtime if I manually type it in as:
<string name="substring_two_substrings_dash">s$2% - s$1%</string>
with the error "java.util.DuplicateFormatFlagsException: Flags = ' '