summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorJacobo Aragunde Pérez <jaragunde@igalia.com>2015-09-11 16:56:31 +0000
committerJacobo Aragunde Pérez <jaragunde@igalia.com>2015-09-11 18:32:49 +0000
commita952540aeba688b10eb1ecd1194c95610ba7f350 (patch)
treecb842a4c040f59d33d29834eb2f19a1cb8eb6d68 /android
parent315ca033c696a6d7339a4c3f2fc617e01d80fcb8 (diff)
Android: i18-ize some strings
Change-Id: I35d0ef7976d6dcca65f3335ff9175c799faa99fe
Diffstat (limited to 'android')
-rw-r--r--android/source/res/values/strings.xml5
-rw-r--r--android/source/src/java/org/libreoffice/LibreOfficeMainActivity.java8
2 files changed, 9 insertions, 4 deletions
diff --git a/android/source/res/values/strings.xml b/android/source/res/values/strings.xml
index 5e2dd9b62521..c7d6e6393dc1 100644
--- a/android/source/res/values/strings.xml
+++ b/android/source/res/values/strings.xml
@@ -64,6 +64,11 @@
<string name="action_keyboard">Show keyboard</string>
<string name="action_save">Save</string>
+ <!-- Feedback messages -->
+ <string name="message_saved">Save complete</string>
+ <string name="message_saving">Saving the document...</string>
+ <string name="message_save_incomplete">Save incomplete. Were there any changes?</string>
+
<!-- Document provider settings -->
<string name="storage_provider_settings">Storage provider settings</string>
<string name="owncloud_settings">ownCloud settings</string>
diff --git a/android/source/src/java/org/libreoffice/LibreOfficeMainActivity.java b/android/source/src/java/org/libreoffice/LibreOfficeMainActivity.java
index 255c4744ea39..c7fb3427bbec 100644
--- a/android/source/src/java/org/libreoffice/LibreOfficeMainActivity.java
+++ b/android/source/src/java/org/libreoffice/LibreOfficeMainActivity.java
@@ -258,7 +258,7 @@ public class LibreOfficeMainActivity extends ActionBarActivity {
private void saveDocument() {
final long lastModified = mInputFile.lastModified();
final Activity activity = LibreOfficeMainActivity.this;
- Toast.makeText(this, "Saving the document...", Toast.LENGTH_SHORT).show();
+ Toast.makeText(this, R.string.message_saving, Toast.LENGTH_SHORT).show();
// local save
LOKitShell.sendEvent(new LOEvent(LOEvent.UNO_COMMAND, ".uno:Save"));
@@ -287,8 +287,8 @@ public class LibreOfficeMainActivity extends ActionBarActivity {
@Override
protected void onPostExecute(Void param) {
- Toast.makeText(activity, "Save complete", Toast.LENGTH_SHORT)
- .show();
+ Toast.makeText(activity, R.string.message_saved,
+ Toast.LENGTH_SHORT).show();
}
};
// Delay the call to document provider save operation and check the
@@ -312,7 +312,7 @@ public class LibreOfficeMainActivity extends ActionBarActivity {
// 20 seconds later, the local file has not changed,
// maybe there were no changes at all
Toast.makeText(activity,
- "Save incomplete. Were there any changes?",
+ R.string.message_save_incomplete,
Toast.LENGTH_LONG).show();
}
}