I have a string with two placeholders, with XML:
<string name="message">%1$s informs that %2$s is not feeling well today.</string>
Because %2$s
is either "he" or "she", when translated to portuguese, we should only have the first placeholder, that is the name of a person:
<string name="message">%1$s informa que não se sente muito bem hoje.</string>
The code compiles and works fine, but Lint is complaining that String.format string doesn't match the XML format string
What is the best way to handle this situations?