aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorTor Norbye <tnorbye@google.com>2012-11-26 12:02:32 -0800
committerTor Norbye <tnorbye@google.com>2012-11-28 15:38:39 -0800
commitf9fc58b23f66470ec01054cd07c50146f8ac8dce (patch)
tree5ac73807aac6a7279d16197d8f56afcf6fdd07e7 /common
parent67d9a2817d520e178143d3ee97f55ef823766638 (diff)
downloadsdk-f9fc58b23f66470ec01054cd07c50146f8ac8dce.zip
sdk-f9fc58b23f66470ec01054cd07c50146f8ac8dce.tar.gz
sdk-f9fc58b23f66470ec01054cd07c50146f8ac8dce.tar.bz2
Add support for specifying default language in res/values
This changeset adds support for a tools:locale attribute in resource files where you can declare which language is actually the default. This is used both by the missing translation detector (such that it won't complain if for example values-en-rUS is intended to supplement res/values/), as well as the typo detector (to allow you to specify which language's dictionary should be used to look for typos in the default resource file.) This addresses 33845: lint is wrong about translation regions Change-Id: Icb16cf11407c333845b56b6d105c99a8661430b0
Diffstat (limited to 'common')
-rw-r--r--common/src/com/android/SdkConstants.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/src/com/android/SdkConstants.java b/common/src/com/android/SdkConstants.java
index a113875..04cd6f0 100644
--- a/common/src/com/android/SdkConstants.java
+++ b/common/src/com/android/SdkConstants.java
@@ -967,6 +967,7 @@ public final class SdkConstants {
// Attributes related to tools
public static final String ATTR_IGNORE = "ignore"; //$NON-NLS-1$
+ public static final String ATTR_LOCALE = "locale"; //$NON-NLS-1$
// SuppressLint
public static final String SUPPRESS_ALL = "all"; //$NON-NLS-1$