Compare strings in different languages
<p>I am trying to create multilangualge app and faced with a problem! I have a string in <code>values\strings.xml</code> translated in German language <code>values-de\strings.xml</code>. I am trying to compare user input with those strings. If my input is in English and device's language is also English, everything works fine, but if I switch device's language to German and input a string in English, <code>contains()</code> and <code>equals()</code> methods will return <code>false</code>. Is there a way to compare strings in different languages? Thanks in advance! Also, sorry for my English!</p>

<pre><code> if (mystring.contains(context.getResources().getString(R.string.testString))) {
        check = true;
    }


 if (mystring.equals(context.getResources().getString(R.string.testString))) {
        check = true;
    }
</code></pre>