Merge develop into main (#305)
## New features - Implement translations for apps - Created `tt::settings::setLanguage` and `::getLanguage()` - External app errors are now reported to the user via an AlertDialog - Store system settings in `/data/settings.properties` - Created a "Region & Language" app and moved the timezone setting there. ## Other changes - Change `/data` and `/system` filesystem sector size from 4096 to 512 bytes to allow for more small files (60+ files of 4kB were over the limit of 256kB for the filesystem) - Increased size of `/data` and `/system` - Moved `tt::time::*` to `tt::settings` - Removed the timezone setting from the "Time & Date" setting app - Reverse encoder direction of Lilygo T-Lora Pager - Improved partability of `Time.cpp` (removed separate set of functions for PC/sim)
This commit is contained in:
committed by
GitHub
parent
ee5a5a7181
commit
8c8ccd8783
@@ -1,6 +1,6 @@
|
||||
#include "tt_time.h"
|
||||
|
||||
#include <Tactility/time/Time.h>
|
||||
#include <Tactility/settings/Time.h>
|
||||
#include <cstring>
|
||||
|
||||
using namespace tt;
|
||||
@@ -8,11 +8,11 @@ using namespace tt;
|
||||
extern "C" {
|
||||
|
||||
void tt_timezone_set(const char* name, const char* code) {
|
||||
time::setTimeZone(name, code);
|
||||
settings::setTimeZone(name, code);
|
||||
}
|
||||
|
||||
bool tt_timezone_get_name(char* buffer, size_t bufferSize) {
|
||||
auto name = time::getTimeZoneName();
|
||||
auto name = settings::getTimeZoneName();
|
||||
if (bufferSize < (name.length() + 1)) {
|
||||
return false;
|
||||
} else {
|
||||
@@ -22,7 +22,7 @@ bool tt_timezone_get_name(char* buffer, size_t bufferSize) {
|
||||
}
|
||||
|
||||
bool tt_timezone_get_code(char* buffer, size_t bufferSize) {
|
||||
auto code = time::getTimeZoneCode();
|
||||
auto code = settings::getTimeZoneCode();
|
||||
if (bufferSize < (code.length() + 1)) {
|
||||
return false;
|
||||
} else {
|
||||
@@ -32,11 +32,11 @@ bool tt_timezone_get_code(char* buffer, size_t bufferSize) {
|
||||
}
|
||||
|
||||
bool tt_timezone_is_format_24_hour() {
|
||||
return time::isTimeFormat24Hour();
|
||||
return settings::isTimeFormat24Hour();
|
||||
}
|
||||
|
||||
void tt_timezone_set_format_24_hour(bool show24Hour) {
|
||||
return time::setTimeFormat24Hour(show24Hour);
|
||||
return settings::setTimeFormat24Hour(show24Hour);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user