mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 11:28:07 +00:00
Short term design choice on meetings list : display all for all accounts. As of 5.2.0 SDK and on cancel, there are no more more links between conference info and current account.
Fix translations on cancelled meetings.
This commit is contained in:
parent
75bcdc3fb7
commit
1849bd08e4
18 changed files with 90 additions and 14 deletions
|
|
@ -569,6 +569,11 @@ Server url ikke konfigureret.</translation>
|
|||
<extracomment>'Do you really want do cancel this meeting?' : Warning message to confirm the cancellation of a meeting.</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>icsCancelledMeetingInvite</source>
|
||||
<extracomment>'Meeting has been cancelled' : ICS Title for cancelled meetings</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ChatConferenceInvitationMessage</name>
|
||||
|
|
|
|||
|
|
@ -569,6 +569,11 @@ Server URL ist nicht konfiguriert.</translation>
|
|||
<extracomment>'Do you really want do cancel this meeting?' : Warning message to confirm the cancellation of a meeting.</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>icsCancelledMeetingInvite</source>
|
||||
<extracomment>'Meeting has been cancelled' : ICS Title for cancelled meetings</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ChatConferenceInvitationMessage</name>
|
||||
|
|
|
|||
|
|
@ -569,6 +569,11 @@ Server URL not configured.</translation>
|
|||
<extracomment>'Do you really want do cancel this meeting?' : Warning message to confirm the cancellation of a meeting.</extracomment>
|
||||
<translation>Do you really want do cancel this meeting?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>icsCancelledMeetingInvite</source>
|
||||
<extracomment>'Meeting has been cancelled' : ICS Title for cancelled meetings</extracomment>
|
||||
<translation>Meeting has been cancelled</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ChatConferenceInvitationMessage</name>
|
||||
|
|
|
|||
|
|
@ -569,6 +569,11 @@ URL del servidor no configurada.</translation>
|
|||
<extracomment>'Do you really want do cancel this meeting?' : Warning message to confirm the cancellation of a meeting.</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>icsCancelledMeetingInvite</source>
|
||||
<extracomment>'Meeting has been cancelled' : ICS Title for cancelled meetings</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ChatConferenceInvitationMessage</name>
|
||||
|
|
|
|||
|
|
@ -173,7 +173,7 @@
|
|||
</message>
|
||||
<message>
|
||||
<source>usernameStatusInvalidCharacters</source>
|
||||
<translation>Caractères invalides détectés (regex : `%1`).</translation>
|
||||
<translation>Caractères invalides détectés (regex : `%1`).</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>usernameStatusInvalid</source>
|
||||
|
|
@ -189,7 +189,7 @@
|
|||
</message>
|
||||
<message>
|
||||
<source>passwordStatusInvalidCharacters</source>
|
||||
<translation>Caractères invalides détectés (regex : `%1`).</translation>
|
||||
<translation>Caractères invalides détectés (regex : `%1`).</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>passwordStatusMissingCharacters</source>
|
||||
|
|
@ -569,6 +569,11 @@ URL du serveur non configurée.</translation>
|
|||
<extracomment>'Do you really want do cancel this meeting?' : Warning message to confirm the cancellation of a meeting.</extracomment>
|
||||
<translation>Voulez-vous supprimer cette réunion ?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>icsCancelledMeetingInvite</source>
|
||||
<extracomment>'Meeting has been cancelled' : ICS Title for cancelled meetings</extracomment>
|
||||
<translation type="unfinished">La réunion a été annulée</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ChatConferenceInvitationMessage</name>
|
||||
|
|
@ -1236,7 +1241,7 @@ URL du serveur non configurée.</translation>
|
|||
<message>
|
||||
<source>ephemeralNotInConference!</source>
|
||||
<extracomment>'Ephemeral message is only supported in conference based chat room!'</extracomment>
|
||||
<translation>Les messages éphémères ne sont disponibles que pour une conversation définie en mode conférence !</translation>
|
||||
<translation>Les messages éphémères ne sont disponibles que pour une conversation définie en mode conférence !</translation>
|
||||
<extra-Context>Warning about not being in conference based chat room.</extra-Context>
|
||||
</message>
|
||||
<message>
|
||||
|
|
@ -2020,7 +2025,7 @@ Cliquez ici : <a href="%1">%1</a>
|
|||
<message>
|
||||
<source>newConferenceScheduleTitle</source>
|
||||
<extracomment>'Would you like to schedule your meeting?' : Ask about setting the meeting as scheduled.</extracomment>
|
||||
<translation>Voulez-vous programmer cette réunion ?</translation>
|
||||
<translation>Voulez-vous programmer cette réunion ?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>newConferenceDate</source>
|
||||
|
|
@ -2600,7 +2605,7 @@ Cliquez ici : <a href="%1">%1</a>
|
|||
</message>
|
||||
<message>
|
||||
<source>serverTooltip</source>
|
||||
<translation>Serveur LDAP. ie : ldap:// pour un serveur local ou ldap://ldap.example.org/</translation>
|
||||
<translation>Serveur LDAP. ie : ldap:// pour un serveur local ou ldap://ldap.example.org/</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>bindDNLabel</source>
|
||||
|
|
@ -3546,7 +3551,7 @@ Cliquez ici : <a href="%1">%1</a>
|
|||
<message>
|
||||
<source>deleteTimeline</source>
|
||||
<extracomment>'Are you sure you want to delete and leave this timeline?'</extracomment>
|
||||
<translation>Êtes-vous certain de vouloir tout effacer et de quitter cette conversation ?</translation>
|
||||
<translation>Êtes-vous certain de vouloir tout effacer et de quitter cette conversation ?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>deleteTimelineTooltip</source>
|
||||
|
|
|
|||
|
|
@ -568,6 +568,11 @@ A kiszolgáló URL-je nincs konfigurálva.</translation>
|
|||
<extracomment>'Do you really want do cancel this meeting?' : Warning message to confirm the cancellation of a meeting.</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>icsCancelledMeetingInvite</source>
|
||||
<extracomment>'Meeting has been cancelled' : ICS Title for cancelled meetings</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ChatConferenceInvitationMessage</name>
|
||||
|
|
|
|||
|
|
@ -569,6 +569,11 @@ URL del server non configurato.</translation>
|
|||
<extracomment>'Do you really want do cancel this meeting?' : Warning message to confirm the cancellation of a meeting.</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>icsCancelledMeetingInvite</source>
|
||||
<extracomment>'Meeting has been cancelled' : ICS Title for cancelled meetings</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ChatConferenceInvitationMessage</name>
|
||||
|
|
|
|||
|
|
@ -568,6 +568,11 @@
|
|||
<extracomment>'Do you really want do cancel this meeting?' : Warning message to confirm the cancellation of a meeting.</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>icsCancelledMeetingInvite</source>
|
||||
<extracomment>'Meeting has been cancelled' : ICS Title for cancelled meetings</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ChatConferenceInvitationMessage</name>
|
||||
|
|
|
|||
|
|
@ -570,6 +570,11 @@ Nesukonfigūruotas serverio url.</translation>
|
|||
<extracomment>'Do you really want do cancel this meeting?' : Warning message to confirm the cancellation of a meeting.</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>icsCancelledMeetingInvite</source>
|
||||
<extracomment>'Meeting has been cancelled' : ICS Title for cancelled meetings</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ChatConferenceInvitationMessage</name>
|
||||
|
|
|
|||
|
|
@ -569,6 +569,11 @@ URL do servidor não configurado.</translation>
|
|||
<extracomment>'Do you really want do cancel this meeting?' : Warning message to confirm the cancellation of a meeting.</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>icsCancelledMeetingInvite</source>
|
||||
<extracomment>'Meeting has been cancelled' : ICS Title for cancelled meetings</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ChatConferenceInvitationMessage</name>
|
||||
|
|
|
|||
|
|
@ -570,6 +570,11 @@
|
|||
<extracomment>'Do you really want do cancel this meeting?' : Warning message to confirm the cancellation of a meeting.</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>icsCancelledMeetingInvite</source>
|
||||
<extracomment>'Meeting has been cancelled' : ICS Title for cancelled meetings</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ChatConferenceInvitationMessage</name>
|
||||
|
|
|
|||
|
|
@ -569,6 +569,11 @@ Serverwebbadressen är inte konfigurerad.</translation>
|
|||
<extracomment>'Do you really want do cancel this meeting?' : Warning message to confirm the cancellation of a meeting.</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>icsCancelledMeetingInvite</source>
|
||||
<extracomment>'Meeting has been cancelled' : ICS Title for cancelled meetings</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ChatConferenceInvitationMessage</name>
|
||||
|
|
|
|||
|
|
@ -568,6 +568,11 @@ Sunucu url'si yapılandırılmadı.</translation>
|
|||
<extracomment>'Do you really want do cancel this meeting?' : Warning message to confirm the cancellation of a meeting.</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>icsCancelledMeetingInvite</source>
|
||||
<extracomment>'Meeting has been cancelled' : ICS Title for cancelled meetings</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ChatConferenceInvitationMessage</name>
|
||||
|
|
|
|||
|
|
@ -570,6 +570,11 @@
|
|||
<extracomment>'Do you really want do cancel this meeting?' : Warning message to confirm the cancellation of a meeting.</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>icsCancelledMeetingInvite</source>
|
||||
<extracomment>'Meeting has been cancelled' : ICS Title for cancelled meetings</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ChatConferenceInvitationMessage</name>
|
||||
|
|
|
|||
|
|
@ -568,6 +568,11 @@
|
|||
<extracomment>'Do you really want do cancel this meeting?' : Warning message to confirm the cancellation of a meeting.</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>icsCancelledMeetingInvite</source>
|
||||
<extracomment>'Meeting has been cancelled' : ICS Title for cancelled meetings</extracomment>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>ChatConferenceInvitationMessage</name>
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ ConferenceInfoListModel::ConferenceInfoListModel (QObject *parent) : ProxyListMo
|
|||
auto conferenceInfos = coreManager->getCore()->getConferenceInformationList();
|
||||
QList<QSharedPointer<ConferenceInfoModel> > items;
|
||||
for(auto conferenceInfo : conferenceInfos){
|
||||
auto item = build(conferenceInfo);
|
||||
auto item = build(conferenceInfo, mBuildAll);
|
||||
if(item)
|
||||
items << item;
|
||||
}
|
||||
|
|
@ -53,10 +53,10 @@ ConferenceInfoListModel::ConferenceInfoListModel (QObject *parent) : ProxyListMo
|
|||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
QSharedPointer<ConferenceInfoModel> ConferenceInfoListModel::build(const std::shared_ptr<linphone::ConferenceInfo> & conferenceInfo) const{
|
||||
QSharedPointer<ConferenceInfoModel> ConferenceInfoListModel::build(const std::shared_ptr<linphone::ConferenceInfo> & conferenceInfo, const bool& buildAll) const{
|
||||
auto me = CoreManager::getInstance()->getCore()->getDefaultAccount()->getParams()->getIdentityAddress();
|
||||
std::list<std::shared_ptr<linphone::Address>> participants = conferenceInfo->getParticipants();
|
||||
bool haveMe = conferenceInfo->getOrganizer()->weakEqual(me);
|
||||
bool haveMe = buildAll || conferenceInfo->getOrganizer()->weakEqual(me);
|
||||
if(!haveMe)
|
||||
haveMe = (std::find_if(participants.begin(), participants.end(), [me](const std::shared_ptr<linphone::Address>& address){
|
||||
return me->weakEqual(address);
|
||||
|
|
@ -70,7 +70,7 @@ QSharedPointer<ConferenceInfoModel> ConferenceInfoListModel::build(const std::sh
|
|||
}
|
||||
|
||||
void ConferenceInfoListModel::add(const std::shared_ptr<linphone::ConferenceInfo> & conferenceInfo, const bool& sendEvents){
|
||||
auto item = build(conferenceInfo);
|
||||
auto item = build(conferenceInfo, mBuildAll);
|
||||
if( item)
|
||||
ProxyListModel::add(item);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ class ConferenceInfoListModel : public ProxyListModel {
|
|||
|
||||
public:
|
||||
ConferenceInfoListModel (QObject *parent = Q_NULLPTR);
|
||||
QSharedPointer<ConferenceInfoModel> build(const std::shared_ptr<linphone::ConferenceInfo> & conferenceInfo) const;
|
||||
QSharedPointer<ConferenceInfoModel> build(const std::shared_ptr<linphone::ConferenceInfo> & conferenceInfo, const bool& buildAll) const;
|
||||
void add(const std::shared_ptr<linphone::ConferenceInfo> & conferenceInfo, const bool& sendEvents = true);
|
||||
|
||||
|
||||
|
|
@ -50,7 +50,8 @@ public slots:
|
|||
void onRemoved(bool byUser);
|
||||
signals:
|
||||
void filterTypeChanged(int filterType);
|
||||
|
||||
private:
|
||||
bool mBuildAll = true; // Short term design choice : display all. As of 5.2.0 SDK and on cancel, there are no more more links between conference info and current account.
|
||||
};
|
||||
Q_DECLARE_METATYPE(ConferenceInfoListModel*)
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -144,10 +144,10 @@ Loader{
|
|||
color: ChatCalendarMessageStyle.type.cancelledColor
|
||||
font.pointSize: ChatCalendarMessageStyle.type.pointSize
|
||||
font.weight: Font.Bold
|
||||
text: 'You have cancelled the conference'
|
||||
//: 'Meeting has been cancelled' : ICS Title for cancelled meetings
|
||||
text:qsTr('icsCancelledMeetingInvite')
|
||||
}
|
||||
|
||||
|
||||
Text{
|
||||
id: title
|
||||
Layout.fillWidth: true
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue