mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 11:28:07 +00:00
Fix ephemeral times formatting function
This commit is contained in:
parent
5fbe8603ea
commit
c72a989085
2 changed files with 13 additions and 6 deletions
|
|
@ -139,10 +139,10 @@ void EventLogCore::computeEvent(const std::shared_ptr<const linphone::EventLog>
|
|||
}
|
||||
|
||||
QString EventLogCore::getEphemeralFormatedTime(int selectedTime) {
|
||||
if (selectedTime == 60) mEventDetails = tr("nMinute", "", 1).arg(1);
|
||||
else if (selectedTime == 3600) mEventDetails = tr("nHour", "", 1).arg(1);
|
||||
else if (selectedTime == 86400) mEventDetails = tr("nDay", "", 1).arg(1);
|
||||
else if (selectedTime == 259200) mEventDetails = tr("nDay", "", 3).arg(3);
|
||||
else if (selectedTime == 604800) mEventDetails = tr("nWeek", "", 1).arg(1);
|
||||
else return "";
|
||||
if (selectedTime == 60) return tr("nMinute", "", 1).arg(1);
|
||||
else if (selectedTime == 3600) return tr("nHour", "", 1).arg(1);
|
||||
else if (selectedTime == 86400) return tr("nDay", "", 1).arg(1);
|
||||
else if (selectedTime == 259200) return tr("nDay", "", 3).arg(3);
|
||||
else if (selectedTime == 604800) return tr("nWeek", "", 1).arg(1);
|
||||
else return tr("nSeconds", "", selectedTime).arg(selectedTime);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5978,6 +5978,13 @@ Failed to create 1-1 conversation with %1 !</extracomment>
|
|||
<extracomment>'Ephemeral messages have been updated: %1' : Little message to show on the event when ephemeral has been updated. %1 is a date time</extracomment>
|
||||
<translation>Ephemeral messages have been updated: %1</translation>
|
||||
</message>
|
||||
<message numerus="yes">
|
||||
<source>nSeconds</source>
|
||||
<translation>
|
||||
<numerusform>%1 second</numerusform>
|
||||
<numerusform>%1 seconds</numerusform>
|
||||
</translation>
|
||||
</message>
|
||||
<message numerus="yes">
|
||||
<source>nMinute</source>
|
||||
<translation>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue