summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Szynkaruk <michal2.szynkaruk@sonymobile.com>2012-10-29 15:01:35 +0100
committerTakeshi Aimi <takeshi.aimi@sonymobile.com>2013-03-12 13:49:22 +0900
commitefad1c3a043852a2defd5c41e7e0816510f075c6 (patch)
tree84758e8be7d64f408c5f79f7bb25fc6eed9c98a1
parent517170834d362b7c5a26250f844cc96ec95c329a (diff)
downloadandroid_packages_apps_Gello-efad1c3a043852a2defd5c41e7e0816510f075c6.tar.gz
android_packages_apps_Gello-efad1c3a043852a2defd5c41e7e0816510f075c6.tar.bz2
android_packages_apps_Gello-efad1c3a043852a2defd5c41e7e0816510f075c6.zip
Missing translation for Save Bookmark in Browser
When there are multiple Browsers installed, the dialog "Complete action using" is displayed after clicking on a star in Bookmarks screen. The activity AddBookmarkPage has a hard-coded label name in English, which is displayed in the dialog even in other languages. This change makes it possible for developers to change the label name by adding corresponding language resources. Change-Id: Ibad4aa86ffc3467f2b67083827a9b256fdc4321a
-rw-r--r--AndroidManifest.xml2
-rw-r--r--res/values/strings.xml2
2 files changed, 3 insertions, 1 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index d871dbf4..9b29fd2c 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -184,7 +184,7 @@
android:resource="@xml/bookmarks_searchable" />
</activity>
- <activity android:name="AddBookmarkPage" android:label="Save bookmark"
+ <activity android:name="AddBookmarkPage" android:label="@string/bookmarks_add_page"
android:theme="@style/DialogWhenLarge"
android:configChanges="orientation|keyboardHidden|screenSize"
android:windowSoftInputMode="adjustResize">
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 57204102..079d8936 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -48,6 +48,8 @@
<string name="password">Password</string>
<!-- The label on the "sign in" button -->
<string name="action">Sign in</string>
+ <!-- The name of the add bookmark page activity.-->
+ <string name="bookmarks_add_page">Save bookmark</string>
<!-- The name of the bookmarks and history search suggestion source. -->
<string name="bookmarks_search">Browser</string>
<!-- Label for a cancel button. It is used for multiple cancel buttons in different contexts -->