summaryrefslogtreecommitdiffstats
path: root/partitionmanager.cpp
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2016-01-22 23:07:11 +0100
committerEthan Yonker <dees_troy@teamw.in>2016-01-22 23:08:07 +0100
commit4adc33ebff988504175b09165ba34f644fc795ee (patch)
tree7e2ae4a2c66db42ced5d5ea282f1f98bcb82f156 /partitionmanager.cpp
parentgui: language EN fixes (diff)
downloadandroid_bootable_recovery-4adc33ebff988504175b09165ba34f644fc795ee.tar
android_bootable_recovery-4adc33ebff988504175b09165ba34f644fc795ee.tar.gz
android_bootable_recovery-4adc33ebff988504175b09165ba34f644fc795ee.tar.bz2
android_bootable_recovery-4adc33ebff988504175b09165ba34f644fc795ee.tar.lz
android_bootable_recovery-4adc33ebff988504175b09165ba34f644fc795ee.tar.xz
android_bootable_recovery-4adc33ebff988504175b09165ba34f644fc795ee.tar.zst
android_bootable_recovery-4adc33ebff988504175b09165ba34f644fc795ee.zip
Diffstat (limited to '')
-rw-r--r--partitionmanager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/partitionmanager.cpp b/partitionmanager.cpp
index 5dd2ce5f3..00c4f8fdd 100644
--- a/partitionmanager.cpp
+++ b/partitionmanager.cpp
@@ -447,7 +447,7 @@ int TWPartitionManager::Check_Backup_Name(bool Display_Error) {
// and -_.{}[]
} else {
if (Display_Error)
- gui_msg(Msg(msg::kError, "backup_name_invalid=Backup name '{1}' contains invalid character: '{1}'")(backup_name)((char)cur_char));
+ gui_msg(Msg(msg::kError, "backup_name_invalid=Backup name '{1}' contains invalid character: '{1}'")(Backup_Name)((char)cur_char));
return -3;
}
}
@@ -682,9 +682,9 @@ int TWPartitionManager::Run_Backup(void) {
DataManager::GetValue(TW_BACKUPS_FOLDER_VAR, Backup_Folder);
DataManager::GetValue(TW_BACKUP_NAME, Backup_Name);
- if (Backup_Name == gui_parse_text("{@current_date}")) {
+ if (Backup_Name == gui_lookup("curr_date", "(Current Date)")) {
Backup_Name = TWFunc::Get_Current_Date();
- } else if (Backup_Name == gui_parse_text("{@auto_generate}") || Backup_Name == "0" || Backup_Name.empty()) {
+ } else if (Backup_Name == gui_lookup("auto_generate", "(Auto Generate)") || Backup_Name == "0" || Backup_Name.empty()) {
TWFunc::Auto_Generate_Backup_Name();
DataManager::GetValue(TW_BACKUP_NAME, Backup_Name);
}