Skip to content

Commit

Permalink
settings choosepanels : banana.i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
hugolpz committed Dec 12, 2023
1 parent 6c901e6 commit 5b6e233
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions popup/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,26 +253,25 @@ var browser = browser || chrome;
// Choose panels : both, definition, video
var panelsOption0 = new OO.ui.ButtonOptionWidget( {
data: 'definition',
label: 'Wiktionary text only'
label: banana.i18n("si-popup-settings-choosepanels-definition")
} ),
panelsOption1 = new OO.ui.ButtonOptionWidget( {
data: 'both',
label: 'Both'
label: banana.i18n("si-popup-settings-choosepanels-both")
} );
panelsOption2 = new OO.ui.ButtonOptionWidget( {
data: 'video',
label: 'Signed video only'
label: banana.i18n("si-popup-settings-choosepanels-video")
} );
choosepanelsWidget = new OO.ui.ButtonSelectWidget( {
items: [ panelsOption0, panelsOption1, panelsOption2 ]
} );
// Layout
choosepanelsLayout = new OO.ui.FieldLayout( choosepanelsWidget, {
label: "Panels to display:",
label: banana.i18n("si-popup-settings-choosepanels"),
align: 'top',
} );


// Populate UI with correct up to date user's selected values
// Select menus
signLanguageDropdown.getMenu().selectItemByData( _backgroundPage.params.signLanguage );
Expand Down

0 comments on commit 5b6e233

Please sign in to comment.