Commit e4bc6b7a authored by Kateryna Kostiuk's avatar Kateryna Kostiuk

UI: update translations

Change-Id: I8cfdb9b8acf1061d0145035304ba2b3f64b42277
parent f356d500
......@@ -545,7 +545,7 @@ CVPixelBufferRef pixelBufferPreview;
[self setUpButtons: currentCall isRecording: (callModel->isRecording([self getcallID]) || mediaModel->getAlwaysRecord())];
[videoView setShouldAcceptInteractions: currentCall.status == Status::IN_PROGRESS];
callStateLabel.stringValue = currentCall.status == Status::INCOMING_RINGING ? @"wants to talk to you" : to_string(currentCall.status).toNSString();
callStateLabel.stringValue = currentCall.status == Status::INCOMING_RINGING ? NSLocalizedString(@"Wants to talk to you", @"In call status info") : to_string(currentCall.status).toNSString();
loadingIndicator.hidden = (currentCall.status == Status::SEARCHING ||
currentCall.status == Status::CONNECTING ||
currentCall.status == Status::OUTGOING_RINGING) ? NO : YES;
......@@ -729,11 +729,11 @@ CVPixelBufferRef pixelBufferPreview;
auto type = mediaModel->getCurrentRenderedDevice(callUid_).type;
if (type == lrc::api::video::DeviceType::DISPLAY || type == lrc::api::video::DeviceType::FILE) {
[self.shareButton startBlinkAnimationfrom:[NSColor buttonBlinkColorColor] to:[NSColor whiteColor] scaleFactor: 1 duration: 1.5];
NSString *source = type == lrc::api::video::DeviceType::DISPLAY ? @"Screen share" : @"File streaming";
self.shareButton.toolTip = [@"Stop " stringByAppendingString: source];
NSString *tooltip = type == lrc::api::video::DeviceType::DISPLAY ? NSLocalizedString(@"Stop screen sharing", @"share button tooltip") : NSLocalizedString(@"Stop file streaming", @"share button tooltip");
self.shareButton.toolTip = tooltip;
} else {
[self.shareButton stopBlinkAnimation];
self.shareButton.toolTip = @"share ";
self.shareButton.toolTip = NSLocalizedString(@"Share", @"share button tooltip");;
}
}
......@@ -1257,7 +1257,7 @@ CVPixelBufferRef pixelBufferPreview;
{
auto* mediaSelectorVC = [[ChooseMediaVC alloc] initWithNibName:@"ChooseMediaVC" bundle:nil];
auto shareScreen = QString::fromNSString(NSLocalizedString(@"Share screen", @"Contextual menu entry"));
auto shareFile = QString::fromNSString(NSLocalizedString(@"Choose file", @"Contextual menu entry"));
auto shareFile = QString::fromNSString(NSLocalizedString(@"Stream file", @"Contextual menu entry"));
QVector<QString> devices;
devices.append(shareScreen);
devices.append(shareFile);
......
......@@ -20,6 +20,9 @@
/* Class = "NSButton"; ibShadowedToolTip = "Start video call"; ObjectID = "cFH-d7-Erh"; */
"cFH-d7-Erh.ibShadowedToolTip" = "Start video call";
/* Class = "NSButton"; ibShadowedToolTip = "Enable plugins"; ObjectID = "FvO-Yj-ry0"; */
"FvO-Yj-ry0.ibShadowedToolTip" = "Enable plugins";
/* Class = "NSBox"; title = "Box"; ObjectID = "ciI-CA-tly"; */
"ciI-CA-tly.title" = "Box";
......
......@@ -20,6 +20,15 @@
/* Class = "NSButton"; ibShadowedToolTip = "Mute Video"; ObjectID = "LVS-yZ-98V"; */
"LVS-yZ-98V.ibShadowedToolTip" = "Mute Video";
/* Class = "NSButton"; ibShadowedToolTip = "Select video device"; ObjectID = "Vcv-ia-VEy"; */
"Vcv-ia-VEy.ibShadowedToolTip" = "Select video device";
/* Class = "NSButton"; ibShadowedToolTip = "Share"; ObjectID = "ZGn-Tc-sg3"; */
"ZGn-Tc-sg3.ibShadowedToolTip" = "Share";
/* Class = "NSButton"; ibShadowedToolTip = "Enable plugins"; ObjectID = "YtG-ob-etP"; */
"YtG-ob-etP.ibShadowedToolTip" = "Enable plugins";
/* Class = "CocoaBindingsConnection"; ibShadowedMultipleValuesPlaceholder = "Send a message"; ObjectID = "NRc-5f-Ujc"; */
"NRc-5f-Ujc.ibShadowedMultipleValuesPlaceholder" = "Send a message";
......@@ -33,7 +42,7 @@
"QYT-0n-4sw.ibShadowedToolTip" = "Record";
/* Class = "NSButton"; ibShadowedToolTip = "add contact to call"; ObjectID = "Vhk-fx-6RW"; */
"Vhk-fx-6RW.ibShadowedToolTip" = "add contact to call";
"Vhk-fx-6RW.ibShadowedToolTip" = "Add contact to call";
/* Class = "NSTextFieldCell"; title = "Text Cell"; ObjectID = "YGj-SP-ikj"; */
"YGj-SP-ikj.title" = "Text Cell";
......@@ -65,8 +74,14 @@
/* Class = "NSButton"; ibShadowedToolTip = "Send"; ObjectID = "rqa-be-VIB"; */
"rqa-be-VIB.ibShadowedToolTip" = "Send";
/* Class = "NSButton"; ibShadowedToolTip = "Mute Audio"; ObjectID = "tQl-cT-0Lb"; */
"tQl-cT-0Lb.ibShadowedToolTip" = "Mute Audio";
/* Class = "NSButton"; ibShadowedToolTip = "Select audio output device"; ObjectID = "Yma-O2-Ljp"; */
"Yma-O2-Ljp.ibShadowedToolTip" = "Select audio output device";
/* Class = "NSButton"; ibShadowedToolTip = "Select audio input device"; ObjectID = "aMU-l3-xFT"; */
"aMU-l3-xFT.ibShadowedToolTip" = "Select audio input device";
/* Class = "NSButton"; ibShadowedToolTip = "Mute microphone"; ObjectID = "N0A-rb-6rf"; */
"N0A-rb-6rf.ibShadowedToolTip" = "Mute microphone";
/* Class = "NSTextFieldCell"; placeholderString = "Person name"; ObjectID = "ues-20-34k"; */
"ues-20-34k.placeholderString" = "Person name";
......
......@@ -634,7 +634,7 @@
<action selector="muteVideo:" target="-2" id="a6W-aB-zWX"/>
</connections>
</button>
<button toolTip="Chose camera" horizontalHuggingPriority="750" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Vcv-ia-VEy" userLabel="video menu" customClass="HoverButton">
<button toolTip="Select camera" horizontalHuggingPriority="750" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Vcv-ia-VEy" userLabel="video menu" customClass="HoverButton">
<rect key="frame" x="15" y="34" width="15" height="15"/>
<constraints>
<constraint firstAttribute="height" constant="15" id="Led-gW-IX8"/>
......@@ -828,7 +828,7 @@
<action selector="toggleRecording:" target="-2" id="zVh-ci-nzl"/>
</connections>
</button>
<button toolTip="Plugin settings" horizontalHuggingPriority="750" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="YtG-ob-etP" userLabel="Plugin" customClass="HoverButton">
<button toolTip="Enable plugins" horizontalHuggingPriority="750" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="YtG-ob-etP" userLabel="Plugin" customClass="HoverButton">
<rect key="frame" x="384" y="0.0" width="44" height="44"/>
<constraints>
<constraint firstAttribute="width" constant="44" id="6mg-84-7TU"/>
......
......@@ -41,7 +41,7 @@
"Canceled" = "Canceled";
/* Contextual menu entry */
"Choose file" = "Choose file";
"Stream file" = "Stream file";
/* Contextual menu action */
"Clear conversation" = "Clear conversation";
......@@ -292,3 +292,15 @@
/* Contextual menu for message */
"Resend" = "Resend";
/* In call status info */
"Wants to talk to you" = "Wants to talk to you";
/* share button tooltip */
"Stop screen sharing" = "Stop screen sharing";
/* share button tooltip */
"Stop file streaming" = "Stop file streaming";
/* share button tooltip */
"Share" = "Share";
/* Class = "NSTextFieldCell"; title = "Text Cell"; ObjectID = "AKi-13-dtu"; */
"AKi-13-dtu.title" = "Text Cell";
/* Class = "NSButtonCell"; title = "Reset "; ObjectID = "D9j-gd-LWV"; */
"D9j-gd-LWV.title" = "Reset";
/* Class = "NSTextFieldCell"; title = "Helloo"; ObjectID = "Jrd-mN-1au"; */
"Jrd-mN-1au.title" = "Helloo";
/* Class = "NSTextFieldCell"; title = "Helloo"; ObjectID = "JyY-qU-zsb"; */
"JyY-qU-zsb.title" = "Helloo";
/* Class = "NSButtonCell"; title = "Button"; ObjectID = "M8G-lZ-vR7"; */
"M8G-lZ-vR7.title" = "Button";
/* Class = "NSTextFieldCell"; title = "Helloo"; ObjectID = "W6n-h8-q4l"; */
"W6n-h8-q4l.title" = "Helloo";
/* Class = "NSMenuItem"; title = "Item 2"; ObjectID = "cWg-Cy-BhL"; */
"cWg-Cy-BhL.title" = "Item 2";
/* Class = "NSMenuItem"; title = "Item 3"; ObjectID = "f79-ei-pjh"; */
"f79-ei-pjh.title" = "Item 3";
/* Class = "NSBox"; title = "Box"; ObjectID = "lYX-hG-hsz"; */
"lYX-hG-hsz.title" = "Box";
/* Class = "NSButtonCell"; title = "Uninstall "; ObjectID = "mGm-c5-1jM"; */
"mGm-c5-1jM.title" = "Uninstall";
/* Class = "NSMenuItem"; title = "Item 1"; ObjectID = "mPV-9L-qQv"; */
"mPV-9L-qQv.title" = "Item 1";
/* Class = "NSTextFieldCell"; title = "Helloo"; ObjectID = "uD9-3W-Ndg"; */
"uD9-3W-Ndg.title" = "Helloo";
/* Class = "NSTextFieldCell"; title = "Text Cell"; ObjectID = "Qx4-Y0-fZV"; */
"Qx4-Y0-fZV.title" = "Text Cell";
/* Class = "NSTextFieldCell"; title = "Plugins: "; ObjectID = "XB4-Up-bZ1"; */
"XB4-Up-bZ1.title" = "Plugins: ";
/* Class = "NSButtonCell"; title = "Enable"; ObjectID = "pPm-jX-Tod"; */
"pPm-jX-Tod.title" = "Enable";
/* Class = "NSButtonCell"; title = "Install a new plugin"; ObjectID = "prw-rQ-hjv"; */
"prw-rQ-hjv.title" = "Install a new plugin";
\ No newline at end of file
/* Class = "NSTextFieldCell"; title = "Helloo"; ObjectID = "7rT-Ns-iap"; */
"7rT-Ns-iap.title" = "Helloo";
/* Class = "NSMenuItem"; title = "Item 2"; ObjectID = "9ZH-fm-6TK"; */
"9ZH-fm-6TK.title" = "Item 2";
/* Class = "NSMenuItem"; title = "Item 3"; ObjectID = "DAN-zd-92a"; */
"DAN-zd-92a.title" = "Item 3";
/* Class = "NSTextFieldCell"; title = "Helloo"; ObjectID = "GIl-Iu-IYQ"; */
"GIl-Iu-IYQ.title" = "Helloo";
/* Class = "NSTextFieldCell"; title = "Helloo"; ObjectID = "OcN-3h-Etg"; */
"OcN-3h-Etg.title" = "Helloo";
/* Class = "NSButtonCell"; title = "Button"; ObjectID = "WMq-ho-19f"; */
"WMq-ho-19f.title" = "Button";
/* Class = "NSTextFieldCell"; title = "Helloo"; ObjectID = "WVe-n7-Ofe"; */
"WVe-n7-Ofe.title" = "Helloo";
/* Class = "NSTextFieldCell"; title = "Text Cell"; ObjectID = "Zax-Ve-pLS"; */
"Zax-Ve-pLS.title" = "Text Cell";
/* Class = "NSMenuItem"; title = "Item 1"; ObjectID = "hMi-BO-mO2"; */
"hMi-BO-mO2.title" = "Item 1";
\ No newline at end of file
......@@ -25,3 +25,10 @@
/* Class = "NSToolbarItem"; paletteLabel = "Video"; ObjectID = "jLi-an-TR2"; */
"jLi-an-TR2.paletteLabel" = "Video";
/* Class = "NSToolbarItem"; label = "Plugins"; ObjectID = "zzE-XA-cFn"; */
"zzE-XA-cFn.label" = "Plugins";
/* Class = "NSToolbarItem"; paletteLabel = "Plugins"; ObjectID = "zzE-XA-cFn"; */
"zzE-XA-cFn.paletteLabel" = "Plugins";
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment