This is done experimentally, with only a Names.php entry and
namespace translations, before we have actual localized strings.
For details, see https://www.mediawiki.org/wiki/Future_of_Language_Incubation.
I've tested it on my local MediaWiki instance, and it works
as expected: no user interface translations, but the namespaces
appear corretly in page titles, Special:AllPages, etc.,
when `$wgLanguageCode = 'nr'` is set in LocalSettings.php,
and the language name appears correctly in the dropdown in the
"Internationalisation" section in the Preferences.
Bug: T375377
Change-Id: I44cf6a6dabf2ade873506a78573db4f7783a9c99
Change the edit recovery prompt to ask before recovering the
saved data, instead of recovering and then asking whether to
revert the recovery.
Also change the button's to the shorter text, and so remove the
need to have them on separate lines.
Bug: T364664
Change-Id: I05e53f302a80a9ad8223d4d2cacf2ca5fca6cc65
This adds a new message box for successful messages, and reworks the old
one to handle all error messages.
Error messages are inline for now (like the old Special:Block). Note
these are only the server-side messages, that chiefly serve as a
fallback for clientside error states which will be tackled in a future
patch.
A loading state is added for the block API request by simply disabling
the form fields. Once completed, the user is scrolled to the top to view
the appropriate messaging. This uses "smooth" scrolling so that it's a
bit less "in your face", but this is subject to design review. For now,
it's just important the user is brought to the approriate error message.
Other changes:
* Add a bit of left margin to the inline error message, consistent with
the no-JS version of this page. Without this, things "jump" a bit as
the Vue applicaton loads. More refinements for this to come later.
* Fix styles for .mw-block-partial-options to be exactly the same as
Codex labels.
* Remove unnecessary IIFE from init.js, and add a class to the form
so we can style it closer to the designs.
Bug: T369471
Bug: T358934
Change-Id: I47344e9581439289642c9424a5f229929805cdbe
The `copyright` has been marked as deprecated with
I5fd5607f8d43b6e934c8d4d35097cec430c56043 and was then removed by the
l10n bot in I6d82a827e20d18ff4d78d7351aa9e9c08129e400. Since the english
message has been kept, banana:core fails with:
>> 1 message lacks documentation in qqq.json:
>> * copyright
Restore the qqq message, I am assuming the deprecated `copyright`
message has been kept on english language for a good reason.
Bug: T45646
Change-Id: I116af83d7216ea492280183217d9528cfe7f14d1
This reflects the actual situation on translatewiki
and in the i18n json files:
* mnc is the main code, and it is in the Latin script
* mnc-mong is in the Mongolian script
* mnc-latn is a compatibility redirect to mnc
In the future, we may swap between mnc and mnc-latn,
but for now, let's at least make sure that the two
variants are supported in core properly.
This also adds namespace translations
given by User:MiiCii at
https://translatewiki.net/w/i.php?title=User_talk:MiiCii&oldid=12654825
(Note the different "Category" translation towards
the end.)
Bug: T284043
Change-Id: I3998d84aa51f3fced5642f611ba235687f4fe003
The mdy and ymd formats are removed because they are
not valid date formats in Croatian.
Bug: T373592
Change-Id: I579dd71c719aa14860b5cd7546e084c6ec6a21a3
Replaces 'copyright' with 'copyright-footer' and 'history_copyright'
with 'copyright-footer-history' (the original still takes precedence
if set). Adds SkinCopyrightFooterMessage hook which works the same
way as SkinCopyrightFooter for the new messages. Allows disabling
the old messages by setting $wgAllowRawHtmlCopyrightMessages = false.
Co-Authored-By: Gergő Tisza <tgr.huwiki@gmail.com>
Bug: T45646
Change-Id: I5fd5607f8d43b6e934c8d4d35097cec430c56043
Why:
* When code throws a UserNotLoggedIn error for a temporary account,
this takes them to Special:UserLogin and asks them to log in to
an account
* Users using temporary accounts are less likely to have a named
account, so should instead be sent to Special:CreateAccount
(as described in T358586)
* When doing this, the warning message should be customised to
talk about the user needing to create an account (and not
log in)
What:
* Update UserNotLoggedIn to redirect to Special:CreateAccount
when the user is logged in to a temporary account
** The code which constructs the exception object can override
this and force the redirect to always be to Special:UserLogin.
* When the redirect is to Special:CreateAccount, allow customising
the message shown by adding a '-for-temp-user' suffix to the
message key in UserNotLoggedIn.
** This suffix is only added if the resulting message exists,
so that code can choose whether they need a message that is
different to the one on Special:UserLogin.
* Update SpecialPage::requiredNamedUser to allow special pages to
force the redirect to always be to Special:UserLogin
** This is made use of in Special:ChangeEmail and
Special:ConfirmEmail, as these special pages only make sense
for use with an existing account.
* Update and add message keys to allow a different message for
Special:CreateAccount.
* Update and add tests for these changes.
Bug: T358586
Change-Id: Ie0dd06f51b1e2b85eef6be377f673a02732ce604
Why:
* The 'resetpass-no-info' message key was added in
bceb3c7d1a but was no longer used
after 854a462dc0.
* Removing this message will reduce the need for unnecessary
translations.
** This will also help reduce the extra message keys needed as a
result of T358586
What:
* Remove the 'resetpass-no-info' message as unused.
Bug: T358586
Change-Id: Ia3148c213732a03d04c13cae1203feb6d3ce30de
This changes the wording from "displayed" to "displaying" for the
whatlinkshere-count message.
Bug: T374759
Change-Id: I768167e1d5b8af6a297076bdc133121a05302502
Why:
* The 'exception-nologin-text-manual' message key was added in
68f3a22654 but then made unused in
d0439af89f
* The message key is unused and has been since 2014.
* Removing this message key will reduce unnecessary translation.
What:
* Remove the 'exception-nologin-text-manual' message key as unused.
Bug: T358586
Change-Id: Id4c868dfabbc133cb5aa9fb82956ccd70cf9f554
This update the fallback language from Minnan (nan) to Minnan (Traditional Han script) (nan-hant).
Change-Id: I40182e667c72778ad8e00a1a541bbc941938b11f