Page MenuHomePhabricator

Adding Language Variants to Belarusian
Closed, DeclinedPublic

Assigned To
None
Authored By
bzimport
May 27 2006, 6:49 PM
Referenced Files
F2893: MessagesBe_of.php
Nov 21 2014, 9:16 PM
F2894: LanguageBe_of.php
Nov 21 2014, 9:16 PM
F2892: LanguageBe.php
Nov 21 2014, 9:16 PM

Description

Author: Eugene.Zelenko

Description:
We need to add option for switching between variants of Belarusian spellings
(official and classic) into user preferences. Current translations are on
classic spelling, so it should be default for compatibility.

This option could affect namespaces, system messages and project name
($wgMetaNamespace and SITENAME), quickbar settings, skin names.

There is no trivial algorithm for converting official spelling to classic and
back, so automatic conversion should not be implemented. System messages will be
located in different files.

I see only one trivial task: to add aliases magic words on official spelling.

This is only problem definition; solution will require more communication and
discussions.

Thank you for help.


Version: 1.8.x
Severity: enhancement

Details

Reference
bz6113

Event Timeline

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

Eugene.Zelenko wrote:

Try to implement namespace aliases

I tried to implement namespace aliases (based on LanguageSk.php. I also added
variants for QuickbarSettings and SkinNames.

Attached:

Eugene.Zelenko wrote:

Official spelling variant of MessagesBe.php (version 15879)

Complement text in Names.php:

'be-of' => 'афіцыйны правапіс', # Belarusian. Official
spelling

Complement text in Names.php:

If language variant names could be more then 2 characters long, will be good
idea to replace of with official.

Fake converter still need to be implemented for allowing choosing variants.

attachment MessagesBe_of.php ignored as obsolete

Eugene.Zelenko wrote:

Official spelling variant of MessagesBe.php (version 15955)

Should be placed into SVN with name MessagesBe_of.php.

Attached:

Eugene.Zelenko wrote:

Official spelling variant of LanguageBe.php (version 15823)

Should be placed into SVN with name LanguageBe_of.php.

Attached:

jimmy.collins wrote:

Applied to r16711.

Eugene.Zelenko wrote:

Please revert latest SVN changes in LanguageBe.php and MessageBe.php.

Whole point of this patch was to introduce 2 different messages file. At least
now namespaces will be broken on BE:WP.

Please communicate with me to discuss implementation.

Thank you.

jimmy.collins wrote:

Done in r16712.

Eugene.Zelenko wrote:

Comment on attachment 2199
Official spelling variant of MessagesBe.php (version 15955)

Should be placed into SVN with name MessagesBe_of.php.

Should be named MessagesBe_of.php

After splitting the belarussian Wikipedia into be and be-x-old we have
MessagesBe.php and MessagesBe_x_old.php (see r20950, r20951 and r21223) now.

I assume we need a reworking of LanguageBe.php too. To be consistent I have
duplicated LanguageBe_x_old.php to LanguageBe.php (r21224). If necessary please
provide a patch to correct possible errors in this. Thank you.

Eugene.Zelenko wrote:

Should be fine. Thank you.

I'll close this bug report.