Page MenuHomePhabricator

Patch for LanguageRu.php
Closed, ResolvedPublic

Description

Patches for HEAD (based on 1.423 Language.php) and REL1_4 (on 1.390.2.29)

A lot of fixes and improvements
(removed hardcoded links, renamed talk namespaces, new convertGrammar
function, new messages etc).

It has been tested at local Mediawiki site
(v1.4beta5 and v1.5pre-alpha).

New translations was discussed at special Russian Wikipedia
talk page http://ru.wikipedia.org/Википедия_обсуждение:Языковой_файл


Version: 1.4.x
Severity: normal

Details

Reference
bz1455

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:10 PM
bzimport set Reference to bz1455.
bzimport added a subscriber: Unknown Object (MLST).

*** Bug 1416 has been marked as a duplicate of this bug. ***

LanguageRu.php patch for HEAD

attachment LanguageRu_head.patch ignored as obsolete

LanguageRu.php patch for REL1_4

attachment LanguageRu_rel1_4.patch ignored as obsolete

This seems to include a lot of hardcoded uses of the name 'Wikipedia'. They need to be
excised and made generic for general release.

I'm sorry, but it is practically impossible to use $wgMetaNamespace var and
convertGramar function, because of several word-case (nominative, genitive,
dative, accusative, instrumental, prepositional) and grammatical gender
(masculine, feminine, neuter) in Russian language.

But I can use word "wiki-project" instead of "Wikipedia" in messages. I'll
rebuild patches tomorrow.

LanguageRu.php patch v2 for HEAD

attachment LanguageRu_head_v2.patch ignored as obsolete

LanguageRu.php patch v2 for REL1_4

attachment LanguageRu_rel1_4_v2.patch ignored as obsolete

Done. 'Wikipedia' name was excised.

Comment on attachment 258
LanguageRu.php patch v2 for REL1_4

based on Language.php 1.424

I've applied the patch to HEAD for now. Note that some of the email notification
messages have changed and should be updated. (There will be other message
changes before 1.5 release, of course...)

I'm holding off on the REL1_4 patch for now. The patch changes the name of the
Special: namespace and several talk namespaces, but doesn't provide the old
names as alternates in getNsIndex(); this would break existing links.

LanguageRu.php patch v3 for REL1_4

attachment LanguageRu_rel1_4_v3.patch ignored as obsolete

WONTFIX because of Release Candidate

balancer wrote:

When I use last patch (LanguageRu.php patch v3 for REL1_4), I get error:

patching file LanguageRu.php
patch: **** malformed patch at line 2562: + return $word;

zigger wrote:

Tweaked LanguageRu.php patch v3 for REL1_4

Tweaked the line-count for LanguageRu_rel1_4_v3.patch (LanguageRu.php patch v3
for REL1_4), so that patch no longer reports "malformed" error.

v3 had added five lines directly to the v2 patch without adjusting the line
count.

Attached:

Is here still something that needs to be done? 1.5 is soon out and has afaik
up-to-date Russian translations.