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.
if (mTime.getTime() < 82800) {
if (mDefaultValue == "")
return "never";
return _p("theme", "never");
else
return mDefaultValue;
}
@ -108,7 +108,7 @@ std::string DateTimeComponent::getDisplayString() const
if (mTime.getTime() == 0) {
if (mDefaultValue == "")
return "unknown";
return _p("theme", "unknown");
else
return mDefaultValue;
}