From 9f807d0c3463352f29b3cdd79db1f72549e7ba55 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 9 Sep 2012 17:44:28 +0400 Subject: [PATCH] externalize strings --- res/layout/share.xml | 12 ++++++------ res/values/strings.xml | 7 +++++++ src/org/fox/ttrss/ShareActivity.java | 2 +- 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/res/layout/share.xml b/res/layout/share.xml index 7ccdfb2a..eba570cf 100644 --- a/res/layout/share.xml +++ b/res/layout/share.xml @@ -19,14 +19,14 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="0.3" - android:text="Title:" + android:text="@string/share_title_prompt" android:textAppearance="?android:attr/textAppearanceMedium" /> @@ -42,13 +42,13 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="0.3" - android:text="URL:" + android:text="@string/share_url_prompt" android:textAppearance="?android:attr/textAppearanceMedium" /> @@ -57,7 +57,7 @@ @@ -68,7 +68,7 @@ android:id="@+id/share_button" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:text="Share" /> + android:text="@string/share_share_button" /> diff --git a/res/values/strings.xml b/res/values/strings.xml index 4e5da8ee..8787bf38 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -129,4 +129,11 @@ Article unpublished Article note saved This action requires newer version of Tiny Tiny RSS + URL: + Article URL + Article Content + Title: + Article Title + Share + Article posted. \ No newline at end of file diff --git a/src/org/fox/ttrss/ShareActivity.java b/src/org/fox/ttrss/ShareActivity.java index 786d4d11..7d2468ca 100644 --- a/src/org/fox/ttrss/ShareActivity.java +++ b/src/org/fox/ttrss/ShareActivity.java @@ -90,7 +90,7 @@ public class ShareActivity extends CommonActivity { if (m_lastError != ApiError.NO_ERROR) { toast(getErrorMessage()); } else { - toast("Article posted."); + toast(R.string.share_article_posted); finish(); } }