|
|
|
@ -92,7 +92,7 @@ void MainWindow::lacalization(){
|
|
|
|
_lblSynchronizeBtn->set_text(gettext("Sync by"));
|
|
|
|
_lblSynchronizeBtn->set_text(gettext("Sync by"));
|
|
|
|
_lblDateTimeSettingGlob->set_text(gettext("Setting date and time in global configuration"));
|
|
|
|
_lblDateTimeSettingGlob->set_text(gettext("Setting date and time in global configuration"));
|
|
|
|
this->set_title(gettext("ubl-settings-datetime"));
|
|
|
|
this->set_title(gettext("ubl-settings-datetime"));
|
|
|
|
_mess_dchp->set_title("Warning!");
|
|
|
|
_mess_dchp->set_title(gettext("Warning!"));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void MainWindow::flag_block_gui(){
|
|
|
|
void MainWindow::flag_block_gui(){
|
|
|
|
@ -560,6 +560,10 @@ void MainWindow::read_file(){
|
|
|
|
string key_reg = entry.path().filename().string();
|
|
|
|
string key_reg = entry.path().filename().string();
|
|
|
|
string path_dir = "/usr/share/zoneinfo/"+key_reg;
|
|
|
|
string path_dir = "/usr/share/zoneinfo/"+key_reg;
|
|
|
|
if (fs::is_directory(path_dir)){
|
|
|
|
if (fs::is_directory(path_dir)){
|
|
|
|
|
|
|
|
if (key_reg!="Pacific"){
|
|
|
|
|
|
|
|
if (key_reg!="posix"){
|
|
|
|
|
|
|
|
if (key_reg!="Etc"){
|
|
|
|
|
|
|
|
if (key_reg!="right"){
|
|
|
|
vector<string> zone;
|
|
|
|
vector<string> zone;
|
|
|
|
zone.push_back("");
|
|
|
|
zone.push_back("");
|
|
|
|
for (const auto & entry_zone : fs::directory_iterator(path_dir)){
|
|
|
|
for (const auto & entry_zone : fs::directory_iterator(path_dir)){
|
|
|
|
@ -575,6 +579,7 @@ void MainWindow::read_file(){
|
|
|
|
|
|
|
|
|
|
|
|
key_reg = string(gettext(key_reg.c_str()));
|
|
|
|
key_reg = string(gettext(key_reg.c_str()));
|
|
|
|
time_reg_map.insert({key_reg, zone});
|
|
|
|
time_reg_map.insert({key_reg, zone});
|
|
|
|
|
|
|
|
}}}}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
in.close();
|
|
|
|
in.close();
|
|
|
|
|