diff options
author | lado <herrlado@gmail.com> | 2012-06-13 23:41:40 +0200 |
---|---|---|
committer | lado <herrlado@gmail.com> | 2012-06-13 23:41:40 +0200 |
commit | a9e5d81068f2183682793ccd1ad9575f0fae486d (patch) | |
tree | 0897c158f34ad49b814e06b66b1e2035fb47e0fc /vdrmanager/res | |
parent | 0e89f7cf1e155728f68ae912186b653505f8ef85 (diff) | |
download | vdr-manager-a9e5d81068f2183682793ccd1ad9575f0fae486d.tar.gz vdr-manager-a9e5d81068f2183682793ccd1ad9575f0fae486d.tar.bz2 |
support backup
Diffstat (limited to 'vdrmanager/res')
-rw-r--r-- | vdrmanager/res/values/backup.xml | 61 | ||||
-rw-r--r-- | vdrmanager/res/xml/backup_settings.xml | 31 | ||||
-rw-r--r-- | vdrmanager/res/xml/preferences.xml | 7 |
3 files changed, 99 insertions, 0 deletions
diff --git a/vdrmanager/res/values/backup.xml b/vdrmanager/res/values/backup.xml new file mode 100644 index 0000000..4759e4d --- /dev/null +++ b/vdrmanager/res/values/backup.xml @@ -0,0 +1,61 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + + <string name="generic_progress_title" translation_description="The title on a progress dialog asking the user to wait."> Please wait...</string> + <string name="generic_confirm_title" translation_description="The title on a confirmation dialog asking the user if he is sure?"> Are you sure?</string> + + <!-- SD Card --> + <string name="sd_card_canceled" translation_description="When importing/saving to the SD card, the message indicating that the + operation was canceled."> The operation was canceled.</string> + <string name="sd_card_error_no_storage" translation_description="When importing/saving to the SD card, the error message indicating that + no SD card is found."> No SD card is found.</string> + <string name="sd_card_import_error" translation_description="When importing from the SD card, the error message indicating not able + to import."> Unable to import from SD card.</string> + <string name="sd_card_import_error_no_file" translation_description="When importing from the SD card, the error message indicating that no + file is found on a SD card directory. + + %1$s: the SD card directory. E.g., '/mnt/sdcard/mybillingbuddy/'."> No file found in %1$s.</string> + <string name="sd_card_import_progress_message" translation_description="When importing from the SD card, the progress message."> Importing from SD card...</string> + <string name="sd_card_import_success" translation_description="When importing from the SD card, the success message."> Finished importing from SD card.</string> + <string name="sd_card_save_error" translation_description="When saving to the SD card, the error message indicating not able to + save."> Unable to save to SD card.</string> + <string name="sd_card_save_error_create_dir" translation_description="When saving to the SD card, the error message indicating not able to + create a directory on the SD card."> Unable to create a directory on SD card.</string> + <string name="sd_card_save_progress_message" translation_description="When saving to the SD card, the progress message."> Saving to SD card...</string> + <string name="sd_card_save_success" translation_description="When saving to the SD card, the success message"> Finished saving to SD card.</string> + <!-- Settings Backup --> + + <string name="settings_backup_summary">Backup/Restore you data and settings</string> + <string name="settings_backup_now" translation_description="In the 'Backup' settings, under the 'SD card' section, the + option to backup to the SD card now. + + Character limit: ~26 (1 line)"> Backup now</string> + <string name="settings_backup_now_summary">Creates a snapshot of the current data and the settings</string> + <string name="settings_backup_now_progress_message" translation_description="In the 'Backup' settings, after pressing the 'Backup now' option, the + progress message telling the user that it is writing all data and settings to the SD card."> Writing all data and settings...</string> + <string name="settings_backup_restore" translation_description="In the 'Backup' settings, under the 'SD card' section, the + option to restore everything from the SD card. + + Character limit: ~26 (1 line)"> Restore now</string> + <string name="settings_backup_restore_summary">Restore a snapshot of the settings and the data</string> + <!-- Settings Backup --> + <string name="settings_backup" translation_description="In the 'Settings' page, the option to change the data backup related + settings. + + Character limit: ~26 (1 line)"> Backup</string> + <string name="settings_backup_restore_confirm_message" translation_description="In the 'Backup' settings, after pressing the 'Restore now' option, the + message in the alert dialog asking the user to confirm that he wants to restore from a backup + and it will overwrite all the current data and settings."> Restoring a backup from the SD card will overwrite all your current data and settings.</string> + <string name="settings_backup_restore_no_backup" translation_description="In the 'Backup' settings, after pressing the 'Restore now' option, the + message in the alert dialog informing the user that there is no backup to restore from."> No backup found.</string> + <string name="settings_backup_restore_progress_message" translation_description="In the 'Backup' settings, after pressing the 'Restore now' option, the + progress message informing that My Billinbg Buddy is reading all data and settings from the backup + on the SD card."> Reading all data and settings...</string> + <string name="settings_backup_restore_select_title" translation_description="In the 'Backup' settings, after pressing the 'Restore now' option, the + title in the picker dialog asking the user to select a backup."> Select a backup to restore</string> + <string name="settings_backup_key">settingsBackup</string> + <string name="settings_backup_now_key">settingsBackupNow</string> + <string name="settings_backup_restore_key">settingsBackupRestore</string> + <string name="choose">Choose a backup file</string> + +</resources>
\ No newline at end of file diff --git a/vdrmanager/res/xml/backup_settings.xml b/vdrmanager/res/xml/backup_settings.xml new file mode 100644 index 0000000..dfe91c6 --- /dev/null +++ b/vdrmanager/res/xml/backup_settings.xml @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +Copyright 2012 Google Inc. + +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. +--> +<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" + android:title="@string/settings_backup" android:summary="@string/settings_backup_summary"> + <Preference + android:key="@string/settings_backup_now_key" + android:persistent="false" + android:title="@string/settings_backup_now" + android:summary="@string/settings_backup_now_summary" + /> + <Preference + android:key="@string/settings_backup_restore_key" + android:persistent="false" + android:title="@string/settings_backup_restore" + android:summary="@string/settings_backup_restore_summary" + /> +</PreferenceScreen>
\ No newline at end of file diff --git a/vdrmanager/res/xml/preferences.xml b/vdrmanager/res/xml/preferences.xml index 8a819dd..dffe0ab 100644 --- a/vdrmanager/res/xml/preferences.xml +++ b/vdrmanager/res/xml/preferences.xml @@ -72,4 +72,11 @@ android:title="@string/gui_custom_locale_title" /> </PreferenceCategory> + + <Preference + android:key="@string/settings_backup_key" + android:persistent="false" + android:summary="@string/settings_backup_summary" + android:title="@string/settings_backup" /> + </PreferenceScreen>
\ No newline at end of file |