Skip to content

Commit

Permalink
Fix auto-update and timezone strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Nightkingale committed Jun 2, 2024
1 parent 5312f34 commit eb27cc7
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ If the program is placed correctly on an SD card, Wii U Time Sync will be listed
* `normal` means that only success or failure notifications will appear, but no others.
* `verbose` means that all notifications (statistics and such) will appear, useful for debugging.
* `Configuration -> Time Offset (UTC)`: The amount of time to add/subtract from the coordinated universal time, `+00:00` by default.
* `Configuration -> Detect Timezone (press A)`: Uses the IP Geolocation API to guess the timezone, setting the offset accordingly.
* `Configuration -> Auto-update Timezone`: Automatically utilizes the IP Geolocation API to set your offset accordingly, `off` by default.
* `Configuration -> Detect Time Zone (press A)`: Uses the IP Geolocation API to guess the timezone, setting the offset accordingly.
* `Configuration -> Auto Update Time Zone`: Automatically utilizes the IP Geolocation API to set your offset accordingly, `off` by default.
* `Configuration -> Notification Duration (seconds)`: The amount of seconds which notifications will appear on screen for, `5` by default.
* `Configuration -> Tolerance (milliseconds)`: The amount of milliseconds in which Wii U Time Sync will tolerate differences, `500` by default.
* `Configuration -> Background Threads`: Controls how many servers are queried at once, `4` by default.
Expand Down
2 changes: 1 addition & 1 deletion source/cfg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace cfg {


namespace label {
const char* auto_tz = "Auto-update Timezone";
const char* auto_tz = "Auto Update Time Zone";
const char* msg_duration = "Notification Duration (seconds)";
const char* notify = "Show Notifications";
const char* server = "NTP Servers";
Expand Down
4 changes: 2 additions & 2 deletions source/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,13 +272,13 @@ namespace core {
if (offset != cfg::get_utc_offset()) {
cfg::set_utc_offset(offset);
notify::info(notify::level::verbose,
"Auto-updated timezone to " + name +
"Auto-updated time zone to " + name +
"(" + utils::tz_offset_to_string(offset) + ")");
}
}
catch (std::exception& e) {
notify::error(notify::level::verbose,
"Failed to auto-update timezone: "s + e.what());
"Failed to auto-update time zone: "s + e.what());
}
}

Expand Down
2 changes: 1 addition & 1 deletion source/timezone_offset_item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,6 @@ timezone_offset_item::on_changed()
variable.reset();
}
catch (std::exception& e) {
logging::printf("Error storing timezone offset: %s", e.what());
logging::printf("Error storing time zone offset: %s", e.what());
}
}
2 changes: 1 addition & 1 deletion source/timezone_query_item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ using namespace std::literals;

timezone_query_item::timezone_query_item() :
wups::config::text_item{{},
"Detect Timezone (press " NIN_GLYPH_BTN_A ")",
"Detect Time Zone (press " NIN_GLYPH_BTN_A ")",
"using http://ip-api.com",
30}
{}
Expand Down

0 comments on commit eb27cc7

Please sign in to comment.