File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed
rater-src/Windows/Components Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 7474 "placeholder-parameter-name" : " parameter name" ,
7575 "placeholder-parameter-value" : " parameter value" ,
7676 "label-add-parameter" : " Add parameter:" ,
77+ "button-add-parameter" : " Add parameter" ,
7778 "label-class" : " Class" ,
7879 "label-importance" : " Importance" ,
7980 "option-no-class" : " no class" ,
Original file line number Diff line number Diff line change 7474 "placeholder-parameter-name" : " имя параметра" ,
7575 "placeholder-parameter-value" : " значение параметра" ,
7676 "label-add-parameter" : " Добавить параметр:" ,
77+ "button-add-parameter" : " Добавить параметр" ,
7778 "label-class" : " Класс" ,
7879 "label-importance" : " Важность" ,
7980 "option-no-class" : " без класса" ,
Original file line number Diff line number Diff line change 55 * @cfg {Number} displayLimit The most to show at once. If the number of items
66 * is more than this, then only the first (displayLimit - 1) items are shown.
77 */
8+ import i18n from "../../i18n" ;
9+
810var ParameterListWidget = function ParameterListWidget ( config ) {
911 config = config || { } ;
1012
@@ -46,13 +48,18 @@ var ParameterListWidget = function ParameterListWidget( config ) {
4648
4749 // Add the button that allows user to add more parameters
4850 this . addParametersButton = new OO . ui . ButtonWidget ( {
49- label : "Add parameter",
51+ label : i18n . t ( "button-add- parameter") ,
5052 icon : "add" ,
5153 framed : false ,
5254 $element : $ ( "<span style='margin-bottom:0'>" )
5355 } ) ;
5456 this . addItems ( [ this . addParametersButton ] ) ;
5557
58+ // Refresh label after i18n loads
59+ i18n . load ( ) . then ( function ( ) {
60+ this . addParametersButton . setLabel ( i18n . t ( "button-add-parameter" ) ) ;
61+ } . bind ( this ) ) ;
62+
5663 /* --- Events --- */
5764
5865 // Handle delete events from ParameterWidgets
You can’t perform that action at this time.
0 commit comments