Warning:
This wiki has been archived and is now read-only.

AndroidStrings

From ITS
Jump to: navigation, search

ITS Rules for Android String Resources

This page provides an example of default rules ITS for Android String Resources. The description of the format can be found at: http://developer.android.com/guide/topics/resources/resources-i18n.html.

<?xml version="1.0" encoding="UTF-8"?>
<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="1.0"
 xmlns:a="http://schemas.android.com/apk/res/android">
 <its:translateRule selector="/*" translate="no"/>
 <its:translateRule selector="//*/@a:text[not(starts-with(.,'@'))]" translate="yes"/>
 <its:translateRule selector="//string" translate="yes"/>
 <its:withinTextRule selector="//string/descendant::*" withinText="yes"/>
</its:rules>