There is a method that updates my items. But unfortunately not all.

For example, if I ask:

setup(getString(R.string.data), false); 

Then later, depending on the settings of the language, my inscription changes (the translation is carried out, as there are all values ​​in the string resources).

Now the actual question is if we use:

 setup(mak.categoryName, false); 

where categoryName is a public String categoryName = ""; In our model and regardless of the language settings, the categoryName language is always the same. What could be the problem?

  • I understand correctly that you want automatic translation of your strings that are dynamically created? - temq
  • four
    Translation works only for strings created as resources and only for those for which localized copies have been created in folders with appropriate qualifiers. How do you calculate to translate the dynamically generated string itself? - pavlofff

0