Kaydet (Commit) 1b613cb9 authored tarafından Jacobo Aragunde Pérez's avatar Jacobo Aragunde Pérez Kaydeden (comit) Tomaž Vajngerl

Android: i18-ize some strings

Change-Id: I35d0ef7976d6dcca65f3335ff9175c799faa99fe
(cherry picked from commit a952540a)
üst c87c1a9e
......@@ -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>
......
......@@ -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();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment