Page MenuHomePhabricator

Kazakh message updates
Closed, ResolvedPublic

Description

Author: alefzet

Description:
MediaWiki patch for trunk

New updates


Version: 1.13.x
Severity: enhancement

attachment mediawiki.diff ignored as obsolete

Details

Reference
bz12145

Event Timeline

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

alefzet wrote:

MediaWiki patch for trunk

Clean up kk-cn & kk-tr

attachment mediawiki.diff ignored as obsolete

alefzet wrote:

MediaWiki patch for trunk

rebuild messages

attachment mediawiki.diff ignored as obsolete

alefzet wrote:

MediaWiki patch for trunk

Yet another updates...

attachment mediawiki.diff ignored as obsolete

alefzet wrote:

MediaWiki patch for trunk

  • Fixed translations
  • Added new message keys as English
  • Stuff that shouldn't converted (variants tabs, javascript, css) moved to stub MessagesKk.php

attachment mediawiki.diff ignored as obsolete

alefzet wrote:

MediaWiki patch for trunk

Latest translations and fixes

attachment mediawiki.diff ignored as obsolete

Applied with r28263.

By the way, please note that:

4 message(s) of 1764 are not translated to kk-tr, but exist in en:

  • common.css
  • monobook.css
  • common.js
  • monobook.js

4 message(s) of 1764 are not translated to kk-cn, but exist in en:

  • common.css
  • monobook.css
  • common.js
  • monobook.js

4 message(s) of 1764 are not translated to kk-kz, but exist in en:

  • common.css
  • monobook.css
  • common.js
  • monobook.js

alefzet wrote:

Thanks, Shinjiman

See comment #6:

  • Stuff that shouldn't converted (variants tabs, javascript, css) moved to stub

MessagesKk.php

I guess this stuff (css & js) should be option. Don't worry...

alefzet wrote:

MediaWiki patch for trunk

part 1

attachment mediawiki_classes.diff ignored as obsolete

alefzet wrote:

MediaWiki patch for trunk

part 2

attachment mediawiki_messages.diff ignored as obsolete

alefzet wrote:

  • Move script code suffixes to ISO 15924 defined
  • Fixes for above in languages/Names.php and maintenance/language/messages.inc
  • Adding latin -> arabic converter
IMPORTANT:

Please do the svn move/copy operations prior applying the patch file
to preserving the file history on the repo. (as per r26179)

1st stage

svn copy:
languages/messages/MessagesKk_cn.php => languages/messages/MessagesKk_arab.php

languages/messages/MessagesKk_tr.php => languages/messages/MessagesKk_latn.php

languages/messages/MessagesKk_kz.php => languages/messages/MessagesKk_cyrl.php

svn move:
languages/classes/LanguageKk_kz.php => languages/classes/LanguageKk_cyrl.php

Please delete the old files since they are not used, only if the patch
is going to applied afterwards.

svn delete:
languages/classes/LanguageKk_kz.php (only if languages/classes/LanguageKk_cyrl.php exists)

2nd stage

Apply the patch (part 1 & part 2)

3rd stage

Change in files MessagesKk_latn.php and MessagesKk_arab.php:

-$fallback = 'kk-kz';
+$fallback = 'kk-cyrl';

Applied on r28319.

LanguageKk_kz.php has been removed from the trunk.

(In reply to comment #10)

Thanks, Shinjiman
See comment #6:

  • Stuff that shouldn't converted (variants tabs, javascript, css) moved to stub

MessagesKk.php

I guess this stuff (css & js) should be option. Don't worry...

However nobody knows when a webmaster would choose the language "kk-cyrl" as the content language but not "kk". As there is no fallback language are set for kk-cyrl, thus the messages for the untranslated part will be fallback to English.

alefzet wrote:

(In reply to comment #14)

However nobody knows when a webmaster would choose the language "kk-cyrl" as
the content language but not "kk". As there is no fallback language are set for
kk-cyrl, thus the messages for the untranslated part will be fallback to
English.

It's no matter. If You set site language code to "kk-cyrl" or other variant code, then converter will disabled and messages for converter tabs as js for rtl workaround not needed. Other effect for this is if site setted to "kk-arab" then rtl behevior enabled normally trough MediaWiki software.

alefzet wrote:

MediaWiki patch for trunk

  • Fix blocking errors in LanguageKk.php, LanguageKk_cyrl.php, LanguageKk.deps.php
  • Current translations and updates to MessagesKk_xx.php

attachment mediawiki.diff ignored as obsolete

alefzet wrote:

Priority promoted to 'Highest' (see comment #16)
Please commit to SVN as soon as possible

alefzet wrote:

The text of code is currently repeated twice in svn file LanguageKk_cyrl

Applied on r28330.

(In reply to comment #15)

(In reply to comment #14)

However nobody knows when a webmaster would choose the language "kk-cyrl" as
the content language but not "kk". As there is no fallback language are set for
kk-cyrl, thus the messages for the untranslated part will be fallback to
English.

It's no matter. If You set site language code to "kk-cyrl" or other variant
code, then converter will disabled and messages for converter tabs as js for
rtl workaround not needed. Other effect for this is if site setted to "kk-arab"
then rtl behevior enabled normally trough MediaWiki software.

If the site admin has chosen for the content language to "kk-cyrl", it has no fallback value. It will fallback to the English message (kk-arab and kk-latn has fallback to kk-cyrl). That means for "kk-cyrl":

'common.css' => '/** CSS placed here will be applied to all skins */',
'monobook.css' => '/* CSS placed here will affect users of the Monobook skin */',

'common.js' => '/* Any JavaScript here will be loaded for all users on every page load. */',
'monobook.js' => '/* Deprecated; use [[MediaWiki:common.js]] */',

It is better to having those messages localised, rather than those message appeared on the output of the checkLanguage.php.

alefzet wrote:

MediaWiki patch for trunk

  • Updates in MessagesKk_xxx.php files
  • Introduced in LanguageKk.php function regsConverter() for conversion based on regular expressions
  • Maintained wrapper in LanguageKk.php for enabling RTL direction trough MediaWiki (now needn't workaround in commons.js)
  • Maintained wrapper in LanguageKk.php for properly marking whole document language as kk-Arab and so (now now needn't javascript code like in commons.js from zh.wikipedia.org:

var htmlE=document.documentElement;
htmlE.setAttribute("lang",wgUserLanguage);
htmlE.setAttribute("xml:lang",wgUserLanguage);
...
)

  • CACHE_VERSION_KEY bumped to v. 5

attachment mediawiki.diff ignored as obsolete

alefzet wrote:

MediaWiki patch for trunk

Fix typos in last moment changes

attachment mediawiki.diff ignored as obsolete

alefzet wrote:

MediaWiki patch for trunk

  • New translations
  • Mark now 'tog-nolangconversion', 'yourvariant', 'common.css', 'monobook.css', 'common.js', 'monobook.js' as optional. First 2 messages need only for multi-variant languages such kk, ku, sr, zh.

attachment mediawiki.diff ignored as obsolete

Applied with r28717 and r28719.

alefzet wrote:

Patch for MediaWiki

Current translations

attachment mediawiki.diff ignored as obsolete

alefzet wrote:

Patch for MediaWiki

Updates

attachment mediawiki.diff ignored as obsolete

Applied on r29051

for more translation, use now Betawiki at http://translatewiki.net/wiki/Main_Page

This wiki is dedied for translation of messages, aliases, spacenames...

alefzet wrote:

Patch for MediaWiki

Updates

attachment mediawiki.diff ignored as obsolete

alefzet wrote:

Patch for MediaWiki

  • Messages translations
  • Language file bugfixes

attachment mediawiki.diff ignored as obsolete

alefzet wrote:

MediaWiki patch for trunk

Updates

attachment mediawiki.diff ignored as obsolete

alefzet wrote:

Patch for MediaWiki

  • messages updates
  • implementing hamza handling

attachment mediawiki.diff ignored as obsolete

alefzet wrote:

Patch for MediaWiki

Updates

attachment mediawiki.diff ignored as obsolete

alefzet wrote:

Comment on attachment 4527
Patch for MediaWiki

in attachment at end of 237 line:
+ 'tag' => array( 0, 'بەلگى', 'tag' )،

please replace arabic comma '،' with normal one ','
Sorry!

Removed BOM char on the MessagesKk_arab.php file and applied on r29594.

alefzet wrote:

Patch for MediaWiki

  • Fix for PHP Strict standards

attachment mediawiki.diff ignored as obsolete

alefzet wrote:

Patch for MediaWiki

Forgot 2 strings in MessagesKk.php

attachment mediawiki.diff ignored as obsolete

alefzet wrote:

p

Latest updates

attachment mediawiki.diff ignored as obsolete

alefzet wrote:

Patch for MediaWiki

Latest updates

attachment mediawiki.diff ignored as obsolete

alefzet wrote:

Patch for MediaWiki

Messages update

attachment mediawiki.diff ignored as obsolete

alefzet wrote:

Patch for MediaWiki

Updates

attachment mediawiki.diff ignored as obsolete

alefzet wrote:

Patch for MediaWiki

Additional translations

attachment mediawiki.diff ignored as obsolete

Why don't you request commit access to maintain the file directly in svn instead of reopening this bug every few days?

alefzet wrote:

Patch for MediaWiki

updates

attachment mediawiki.diff ignored as obsolete

alefzet wrote:

Patch for MediaWiki

New translations and fixes

attachment mediawiki.diff ignored as obsolete

alefzet wrote:

Patch for MediaWiki

Updates

attachment mediawiki.diff ignored as obsolete

alefzet wrote:

Patch for MediaWiki

Updates and fixes

attachment mediawiki.diff ignored as obsolete

alefzet wrote:

Patch for MediaWiki

Updates

attachment mediawiki.diff ignored as obsolete

leon wrote:

Commited to SVN trunk, r34206.

alefzet wrote:

patch for MediaWiki

  • Updates for translation
  • Restore regressions introduced by r34272, r34273
  • Remove most PLURAL. See b13869

attachment mediawiki.diff ignored as obsolete

leon wrote:

Commited to SVN trunk, r34589.

alefzet wrote:

patch for MediaWiki

Fixes termins conform acepted of the State Committee for Terminology

attachment mediawiki.diff ignored as obsolete

leon wrote:

Commited to SVN trunk, 34666.

leon wrote:

r34666, that is. Just for linking purposes.

alefzet wrote:

patch for MediaWiki

Updates

attachment mediawiki.diff ignored as obsolete

alefzet wrote:

patch for MediaWiki

Continuation of updates and fixes

attachment mediawiki.diff ignored as obsolete

alefzet wrote:

patch for Mediawiki

Updates and fixes

attachment mediawiki.diff ignored as obsolete

leon wrote:

Commited to SVN trunk, r34984.

alefzet wrote:

patch for MediaWiki

Updates

attachment mediawiki.diff ignored as obsolete

alefzet wrote:

patch for MediaWiki

current updates

attachment mediawiki.diff ignored as obsolete

alefzet wrote:

patch for MediaWiki

Current updates for terminology

attachment mediawiki.diff ignored as obsolete

done in r35238, but not applied MessagesKk_cn.php.

leon wrote:

Commited MessagesKk_cn.php to SVN trunk, r35259 (commit message r35260).

alefzet wrote:

patch for MediaWiki

updates

attachment mediawiki.diff ignored as obsolete

leon wrote:

As we learned from r35261, this should be @ingroup, not @addtogroup. Didn't commit that line. Commited the remaining parts to SVN trunk, r35275.

alefzet wrote:

patch for MediaWiki

Updates and conyinuation terminology fixes

attachment mediawiki.diff ignored as obsolete

alefzet wrote:

patch for MediaWiki

updates

attachment mediawiki.diff ignored as obsolete

alefzet wrote:

patch for MediaWiki

updates

attachment mediawiki.diff ignored as obsolete

alefzet wrote:

patch for MediaWiki

updates

attachment mediawiki.diff ignored as obsolete

alefzet wrote:

patch for MediaWiki

Updates

attachment mediawiki.diff ignored as obsolete

alefzet wrote:

patch for MediaWiki

Updates

attachment mediawiki.diff ignored as obsolete

leon wrote:

Commited to SVN trunk, r36152.

alefzet wrote:

patch for MediaWiki

updates

Attached: