Added theme engine translations for 'never' and 'unknown' date values

This commit is contained in:
Leon Styhre 2024-09-04 17:28:53 +02:00
parent 56c8c11783
commit e34fbb9115

View file

@ -74,7 +74,7 @@ std::string DateTimeComponent::getDisplayString() const
// Workaround to handle Unix epoch for different time zones. // Workaround to handle Unix epoch for different time zones.
if (mTime.getTime() < 82800) { if (mTime.getTime() < 82800) {
if (mDefaultValue == "") if (mDefaultValue == "")
return "never"; return _p("theme", "never");
else else
return mDefaultValue; return mDefaultValue;
} }
@ -108,7 +108,7 @@ std::string DateTimeComponent::getDisplayString() const
if (mTime.getTime() == 0) { if (mTime.getTime() == 0) {
if (mDefaultValue == "") if (mDefaultValue == "")
return "unknown"; return _p("theme", "unknown");
else else
return mDefaultValue; return mDefaultValue;
} }