mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-08-04 06:45:45 +02:00
i18n: adaptation for lrc chatview translation
Change-Id: I9fdb6a5646e487c974fe8884e36277985c48fa2a
This commit is contained in:
parent
6f762a8994
commit
28f19d33a0
3 changed files with 6 additions and 62 deletions
|
@ -387,35 +387,4 @@ Item {
|
||||||
// Generic dialog options
|
// Generic dialog options
|
||||||
property string optionOk: qsTr("Ok")
|
property string optionOk: qsTr("Ok")
|
||||||
property string optionCancel: qsTr("Cancel")
|
property string optionCancel: qsTr("Cancel")
|
||||||
|
|
||||||
// ChatView
|
|
||||||
property string backButtonTitle: qsTr("Hide chat view")
|
|
||||||
property string placeCallButtonTitle: qsTr("Place video call")
|
|
||||||
property string placeAudioCallButtonTitle: qsTr("Place audio call")
|
|
||||||
property string addToConversationsButtonTitle: qsTr("Add to conversations")
|
|
||||||
property string unbanButtonTitle: qsTr("Unban contact")
|
|
||||||
property string sendButtonTitle: qsTr("Send")
|
|
||||||
property string optionsButtonTitle: qsTr("Options")
|
|
||||||
property string backToBottomBtnInnerHTML: qsTr("Jump to latest")
|
|
||||||
property string sendFileButtonTitle: qsTr("Send file")
|
|
||||||
property string videoRecordButtonTitle: qsTr("Leave video message")
|
|
||||||
property string audioRecordButtonTitle: qsTr("Leave audio message")
|
|
||||||
property string acceptButtonTitle: qsTr("Accept")
|
|
||||||
property string refuseButtonTitle: qsTr("Refuse")
|
|
||||||
property string blockButtonTitle: qsTr("Block")
|
|
||||||
property string messageBarInputPlaceholder: qsTr("Type a message")
|
|
||||||
property string placeHolderTemporaryContact: qsTr("Note: an interaction will create a new contact.")
|
|
||||||
property string isNotInYourContacts: qsTr("is not in your contacts")
|
|
||||||
property string automaticallyAcceptInvitation: qsTr("Note: you can automatically accept this invitation by sending a message.")
|
|
||||||
property string daysAgo: qsTr("{0} days ago")
|
|
||||||
property string oneDayAgo: qsTr("one day ago")
|
|
||||||
property string hoursAgo: qsTr("{0} hours ago")
|
|
||||||
property string oneHourAgo: qsTr("one hour ago")
|
|
||||||
property string minutesAgo: qsTr("{0} minutes ago")
|
|
||||||
property string justNow: qsTr("just now")
|
|
||||||
property string failureString: qsTr("Failure")
|
|
||||||
property string acceptString: qsTr("Accept")
|
|
||||||
property string refuseString: qsTr("Refuse")
|
|
||||||
property string deleteString: qsTr("Delete")
|
|
||||||
property string retryString: qsTr("Retry")
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -193,37 +193,7 @@ Rectangle {
|
||||||
}
|
}
|
||||||
|
|
||||||
function parseI18nData() {
|
function parseI18nData() {
|
||||||
return {
|
return MessagesAdapter.chatviewTranslatedStrings
|
||||||
["backButtonTitle"] : JamiStrings.backButtonTitle,
|
|
||||||
["placeCallButtonTitle"] : JamiStrings.placeCallButtonTitle,
|
|
||||||
["placeAudioCallButtonTitle"] : JamiStrings.placeAudioCallButtonTitle,
|
|
||||||
["addToConversationsButtonTitle"] : JamiStrings.addToConversationsButtonTitle,
|
|
||||||
["unbanButtonTitle"] : JamiStrings.unbanButtonTitle,
|
|
||||||
["sendButtonTitle"] : JamiStrings.sendButtonTitle,
|
|
||||||
["optionsButtonTitle"] : JamiStrings.optionsButtonTitle,
|
|
||||||
["backToBottomBtnInnerHTML"] : JamiStrings.backToBottomBtnInnerHTML,
|
|
||||||
["sendFileButtonTitle"] : JamiStrings.sendFileButtonTitle,
|
|
||||||
["videoRecordButtonTitle"] : JamiStrings.videoRecordButtonTitle,
|
|
||||||
["audioRecordButtonTitle"] : JamiStrings.audioRecordButtonTitle,
|
|
||||||
["acceptButtonTitle"] : JamiStrings.acceptButtonTitle,
|
|
||||||
["refuseButtonTitle"] : JamiStrings.refuseButtonTitle,
|
|
||||||
["blockButtonTitle"] : JamiStrings.blockButtonTitle,
|
|
||||||
["messageBarInputPlaceholder"] : JamiStrings.messageBarInputPlaceholder,
|
|
||||||
["placeHolderTemporaryContact"] : JamiStrings.placeHolderTemporaryContact,
|
|
||||||
["isNotInYourContacts"] : JamiStrings.isNotInYourContacts,
|
|
||||||
["automaticallyAcceptInvitation"] : JamiStrings.automaticallyAcceptInvitation,
|
|
||||||
["daysAgo"] : JamiStrings.daysAgo,
|
|
||||||
["oneDayAgo"] : JamiStrings.oneDayAgo,
|
|
||||||
["hoursAgo"] : JamiStrings.hoursAgo,
|
|
||||||
["oneHourAgo"] : JamiStrings.oneHourAgo,
|
|
||||||
["minutesAgo"] : JamiStrings.minutesAgo,
|
|
||||||
["justNow"] : JamiStrings.justNow,
|
|
||||||
["failureString"] : JamiStrings.failureString,
|
|
||||||
["acceptString"] : JamiStrings.acceptString,
|
|
||||||
["refuseString"] : JamiStrings.refuseString,
|
|
||||||
["deleteString"] : JamiStrings.deleteString,
|
|
||||||
["retryString"] : JamiStrings.retryString
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
|
|
||||||
#include "lrcinstance.h"
|
#include "lrcinstance.h"
|
||||||
#include "qmladapterbase.h"
|
#include "qmladapterbase.h"
|
||||||
|
#include "api/chatview.h"
|
||||||
|
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
|
@ -27,6 +28,8 @@
|
||||||
class MessagesAdapter final : public QmlAdapterBase
|
class MessagesAdapter final : public QmlAdapterBase
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
Q_PROPERTY(QVariantMap chatviewTranslatedStrings MEMBER chatviewTranslatedStrings_ CONSTANT)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit MessagesAdapter(QObject* parent = 0);
|
explicit MessagesAdapter(QObject* parent = 0);
|
||||||
~MessagesAdapter() = default;
|
~MessagesAdapter() = default;
|
||||||
|
@ -106,6 +109,8 @@ private:
|
||||||
QString LastConvUid_;
|
QString LastConvUid_;
|
||||||
QString currentConvUid_;
|
QString currentConvUid_;
|
||||||
|
|
||||||
|
const QVariantMap chatviewTranslatedStrings_ {lrc::api::chatview::getTranslatedStrings()};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Interaction connections.
|
* Interaction connections.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue