mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-09 09:09:58 +00:00
Add missing popup i18n messages
This commit is contained in:
@@ -28,6 +28,8 @@ struct InitData: Codable {
|
||||
let i18n_mediaTypeApp: String
|
||||
let i18n_mediaTypeTab: String
|
||||
let i18n_mediaTypeScreen: String
|
||||
let i18n_mediaSelectCastLabel: String
|
||||
let i18n_mediaSelectToLabel: String
|
||||
}
|
||||
|
||||
struct ReceiverSelection: Codable {
|
||||
@@ -101,9 +103,9 @@ class ViewController: NSViewController {
|
||||
self.mediaTypePopUpButton.selectItem(at: initData.defaultMediaType.rawValue)
|
||||
|
||||
let mediaTypeStackView = NSStackView(views: [
|
||||
makeLabel("Cast"),
|
||||
makeLabel(initData.i18n_mediaSelectCastLabel),
|
||||
self.mediaTypePopUpButton,
|
||||
makeLabel("to:")
|
||||
makeLabel(initData.i18n_mediaSelectToLabel)
|
||||
])
|
||||
|
||||
|
||||
|
||||
@@ -15,6 +15,12 @@
|
||||
, "popupMediaTypeScreen": {
|
||||
"message": "Screen"
|
||||
}
|
||||
, "popupMediaSelectCastLabel": {
|
||||
"message": "Cast"
|
||||
}
|
||||
, "popupMediaSelectToLabel": {
|
||||
"message": "to:"
|
||||
}
|
||||
, "popupCastButtonLabel": {
|
||||
"message": "Cast"
|
||||
}
|
||||
|
||||
@@ -61,6 +61,8 @@ class NativeMacReceiverSelectorManager
|
||||
, i18n_mediaTypeApp: _("popupMediaTypeApp")
|
||||
, i18n_mediaTypeTab: _("popupMediaTypeTab")
|
||||
, i18n_mediaTypeScreen: _("popupMediaTypeScreen")
|
||||
, i18n_mediaSelectCastLabel: _("popupMediaSelectCastLabel")
|
||||
, i18n_mediaSelectToLabel: _("popupMediaSelectToLabel")
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
@@ -97,7 +97,7 @@ class PopupApp extends Component<{}, PopupAppState> {
|
||||
return (
|
||||
<div>
|
||||
<div className="media-select">
|
||||
Cast
|
||||
{ _("popupMediaSelectCastLabel") }
|
||||
<select value={ this.state.mediaType }
|
||||
onChange={ this.onSelectChange }
|
||||
className="media-select-dropdown">
|
||||
@@ -115,7 +115,7 @@ class PopupApp extends Component<{}, PopupAppState> {
|
||||
{ _("popupMediaTypeScreen") }
|
||||
</option>
|
||||
</select>
|
||||
to:
|
||||
{ _("popupMediaSelectToLabel") }
|
||||
</div>
|
||||
<ul className="receivers">
|
||||
{ this.state.receivers.map((receiver, i) => {
|
||||
|
||||
Reference in New Issue
Block a user