Issue
I have some strings of chemical names in a single values/fertilizers.xml
file:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="grade_dap">Diammonium phosphate - DAP (18:46:00)</string>
<string name="grade_ssp">Single super phosphate - SSP (00:16:00)</string>
...
</resources>
Now since all these strings in this file shouldn't be translated, can I put a single translatable="false"
attribute to the root <resources>
element, or do I have to put it for all the individual string elements like so:
<string name="grade_dap" translatable="false">Single super phosphate - SSP (00:16:00)</string>
Solution
Referring to the Android Studio Project Site:
If you have a lot of resources that should not be translated, you can place them in a file named donottranslate.xml and lint will consider all of them non-translatable resources.
Answered By - Felix Edelmann
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.