summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Wren <cwren@android.com>2012-09-27 16:52:43 -0400
committerChris Wren <cwren@android.com>2012-09-27 16:52:43 -0400
commitb77c1ce940e0433493f23dfb040ee8abc575f107 (patch)
tree8a6e6a1f7c3b119832769dc23c2316bf21a668a4
parent74a589cd63d04369920bf7203d4d3262d06ab97b (diff)
downloadandroid_packages_screensavers_Basic-b77c1ce940e0433493f23dfb040ee8abc575f107.tar.gz
android_packages_screensavers_Basic-b77c1ce940e0433493f23dfb040ee8abc575f107.tar.bz2
android_packages_screensavers_Basic-b77c1ce940e0433493f23dfb040ee8abc575f107.zip
Basic Dreams: abstract away strings for transalation
Change-Id: Ie18e9a5640c4e9f2ec6fc0ab68c8990dce917c60
-rw-r--r--AndroidManifest.xml4
-rw-r--r--res/values/strings.xml22
2 files changed, 24 insertions, 2 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 3a63e63..4f97882 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -3,12 +3,12 @@
package="com.android.dreams.basic"
>
<uses-feature android:glEsVersion="0x00020000" android:required="true" />
- <application android:label="BasicDreams">
+ <application android:label="@string/app_name">
<service
android:name="Colors"
android:exported="true"
android:icon="@mipmap/colors_icon"
- android:label="Colors">
+ android:label="@string/color_dream_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
diff --git a/res/values/strings.xml b/res/values/strings.xml
new file mode 100644
index 0000000..ee5cf05
--- /dev/null
+++ b/res/values/strings.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2012 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<resources>
+ <!-- Name of the package of basic screensavers, shown in Settings > Apps. [CHAR LIMIT=40] -->
+ <string name="app_name">Basic Dreams</string>
+
+ <!-- Name of the digital kaleidoscope screensaver. [CHAR LIMIT=40] -->
+ <string name="color_dream_name">Colors</string>
+</resources>