Page MenuHomePhabricator

Enabling variants (ekavian/iyekavian and Cyrillic/Latin) for Serbian language
Closed, ResolvedPublic

Assigned To
None
Authored By
bzimport
Nov 16 2005, 12:41 PM
Referenced Files
F2440: MessagesSr_el.php
Nov 21 2014, 8:55 PM
F2439: MessagesSr.diff
Nov 21 2014, 8:55 PM
F2438: LanguageSr_jl.deps.php
Nov 21 2014, 8:55 PM
F2436: LanguageSr_jc.deps.php
Nov 21 2014, 8:55 PM
F2434: LanguageSr.deps.php
Nov 21 2014, 8:55 PM
F2435: LanguageSr_el.deps.php
Nov 21 2014, 8:55 PM
F2433: LanguageSr_el.php
Nov 21 2014, 8:55 PM
F2431: Messages.diff
Nov 21 2014, 8:55 PM

Description

Author: branej

Description:
Enhancement of Mediawiki language files to enable viewing pages in Serbian
language in 2*2 variants (ekavian/iyekavian and/or Cyrillic/Latin). In order of
appearance:

  1. Language.php.diff - so everybody can see normal text in variant tabs
  2. LanguageSr.php.diff - rename LanguageSr.php to LanguageSr_ec.php, change

array and class names and add translations for variant tabs.

  1. Names.php.diff - so users can choose (in their settings) what variant they prefer
  2. LanguageSr_el.php - messages transliterated to Latin script
  3. LanguageSr_jc.php, LanguageSr_jl.php - for iyekavian variant (Cyrillic and

Latin), we need help from someone who natively uses or has good enough knowledge
of iyekavian variant to fix messages that need fixing


Version: unspecified
Severity: enhancement
URL: http://meta.wikimedia.org/wiki/User:BraneJ/Serbian_Variants

Details

Reference
bz3993

Event Timeline

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

branej wrote:

new version of LanguageSr.php

attachment LanguageSr.php ignored as obsolete

branej wrote:

move LanguageSr.php to LanguageSr_ec.php and change array and class names and add translations for variant tabs

attachment LanguageSr.php.diff ignored as obsolete

branej wrote:

add variantname tabs to Language.php

attachment Language.php.diff ignored as obsolete

branej wrote:

ekavian Latin variant

attachment LanguageSr_el.php ignored as obsolete

branej wrote:

iyekavian Cyrillic variant (a placeholder, but needed)

Attached:

branej wrote:

iyekavian Latin variant (a placeholder, but needed)

Attached:

branej wrote:

add variantname tabs to Names.php

attachment Names.php.diff ignored as obsolete

avarab wrote:

(In reply to comment #1)

Created an attachment (id=1074) [edit]
add variantname tabs

  • There's already a LanguageSr.php, please submit a unified diff against that
  • Please use default LanguageConverter begin/end/codesep/varsep/flagsep markup,

srwiki using specialized markup could cause great pain in any future upgrades to
the wikisyntax.

  • Please use tabs for indenting, not spaces.

avarab wrote:

(In reply to comment #2)

Created an attachment (id=1075) [edit]
move LanguageSr.php to LanguageSr_ec.php and change array and class names and
add translations for variant tabs

This one looks good.

avarab wrote:

(In reply to comment #3)

Created an attachment (id=1076) [edit]
add variantname tabs to Language.php

This one looks good.

branej wrote:

corrected version of LanguageSr.php - tabed, removed custom variant markers

attachment LanguageSr.php ignored as obsolete

branej wrote:

(In reply to comment #8)

(In reply to comment #1)

Created an attachment (id=1074) [edit] [edit]
add variantname tabs

  • There's already a LanguageSr.php, please submit a unified diff against that
  • Please use default LanguageConverter begin/end/codesep/varsep/flagsep markup,

srwiki using specialized markup could cause great pain in any future upgrades to
the wikisyntax.

  • Please use tabs for indenting, not spaces.

I retabbed the file and removed custom markers. As for diff against the existing
LanguageSr.php, second attachment was intended for that (I mixed up order when I
sent them, that should have been the first). Hope this is ok now.

avarab wrote:

Tried this earlier today, not all the patched applied to the current HEAD and it
spewed errors under E_ALL.

branej wrote:

move LanguageSr.php to LanguageSr_ec.php

new for CVS version (1.6alpha)

Attached:

branej wrote:

add Serbian variantname tabs to Names.php

new for CVS version (1.6alpha)

Attached:

branej wrote:

add Serbian variantname tabs to Messages.php

new for CVS version (1.6alpha)

Attached:

branej wrote:

new (converter) version of LanguageSr.php

new for CVS version (1.6alpha)

Attached:

branej wrote:

Serbian Ekavian Latin variant file (LanguageSr_el.php)

new for CVS version (1.6alpha)

Attached:

branej wrote:

LanguageSr.deps.php

new in CVS version (1.6alpha)

Attached:

branej wrote:

LanguageSr_el.deps.php

new for CVS version

Attached:

branej wrote:

LanguageSr_jc.deps.php

Attached:

branej wrote:

LanguageSr_jl.deps.php

Attached:

branej wrote:

move MessagesSr.php to MessagesSr_ec.php

new, for CVS version (1.6alpha)

Attached:

branej wrote:

Serbian latin ekavian variant messages - MessagesSr_el.php

new for CVS version (1.6alpha)

Attached:

branej wrote:

(In reply to comment #13)

Tried this earlier today, not all the patched applied to the current HEAD and it
spewed errors under E_ALL.

(Should be) corrected now, updated for HEAD, and tried with E_ALL & E_STRICT;
no errors or warnings reported, php 5.0.5, mysql 4.0.25

This extension has been applied to an almost up to date CVS version of 1.6alpha
here: http://conversion.vikimedija.org/

Nikerabbit commited it to CVS last night, and Brion presumably sinchronized, so
this is applied to the live site. Closing this