i18n: Make the OK button label translateable

Change-Id: Idb7cb249b582f0bf15f1ea6ec1d0aece5c9efdc5
This commit is contained in:
Florian Schmidt 2016-09-14 17:17:35 +02:00
parent b8686223e5
commit a6d1e1f11a
3 changed files with 5 additions and 3 deletions

View file

@ -7,5 +7,6 @@
"cookiewarning-info": "Cookies help us deliver our services. By using our services, you agree to our use of cookies.",
"cookiewarning-desc": "Provides a notice at the top of the page about cookies.",
"cookiewarning-moreinfo-label": "More information",
"cookiewarning-more-link": "-"
"cookiewarning-more-link": "-",
"cookiewarning-ok-label": "OK"
}

View file

@ -7,5 +7,6 @@
"cookiewarning-info": "Information message for visitors of the wiki, informing them that this wiki uses cookies.",
"cookiewarning-desc": "{{desc|name=CookieWarning|url=https://www.mediawiki.org/wiki/Extension:CookieWarning}}",
"cookiewarning-moreinfo-label": "Label for the \"More information\" link in the cookiewarning information bar.",
"cookiewarning-more-link": "{{notranslate}}\nUsed as an on-wiki way to edit the target of the more information link."
"cookiewarning-more-link": "{{notranslate}}\nUsed as an on-wiki way to edit the target of the more information link.",
"cookiewarning-ok-label": "The label for the \"OK\" button in the cookiewarning information bar."
}

View file

@ -73,7 +73,7 @@ class CookieWarningHooks {
$moreLink .
Html::openElement( 'form', array( 'method' => 'POST' ) ) .
Html::submitButton(
'OK',
$sk->msg( 'cookiewarning-ok-label' )->text(),
array(
'name' => 'disablecookiewarning',
'class' => 'mw-cookiewarning-dismiss'