Page MenuHomePhabricator

Kazakh language variants (cyrillic-latin-arabic script conversion, language and messages files)
Closed, ResolvedPublic

Description

Author: alefzet

Description:
kazakh language actually have three script variants: Cyrillic, Latin, Arabic.
I implemented switching routine like in sr and zh wikis.
I request checking and adding to SVN and live site kk.wikipedia.org
Files followed in minutes...


Version: 1.9.x
Severity: enhancement

Details

Reference
bz6706

Event Timeline

There are a very large number of changes, so older changes are hidden. Show Older Changes

alefzet wrote:

(In reply to comment #14)

Can you please update your patches to the new format?

OK. I will do this as soon as possible.

alefzet wrote:

LanguageKk.deps.php

attachment LanguageKk.deps.php ignored as obsolete

alefzet wrote:

LanguageKk.php

attachment LanguageKk.php ignored as obsolete

alefzet wrote:

LanguageKk_cn.deps.php

attachment LanguageKk_cn.deps.php ignored as obsolete

alefzet wrote:

LanguageKk_cn.php

attachment LanguageKk_cn.php ignored as obsolete

alefzet wrote:

LanguageKk_kz.php

attachment LanguageKk_kz.php ignored as obsolete

alefzet wrote:

LanguageKk_tr.deps.php

attachment LanguageKk_tr.deps.php ignored as obsolete

alefzet wrote:

LanguageKk_tr.php

attachment LanguageKk_tr.php ignored as obsolete

alefzet wrote:

MessagesKk_cn.php

attachment MessagesKk_cn.php ignored as obsolete

alefzet wrote:

MessagesKk_kz.php

attachment MessagesKk_kz.php ignored as obsolete

alefzet wrote:

MessagesKk_tr.php

attachment MessagesKk_tr.php ignored as obsolete

alefzet wrote:

(In reply to comment #14)

Can you please update your patches to the new format?

Done.

jimmy.collins wrote:

If I select 'kk' in my profile, the interface language falls back zo 'en'.
Shouldn't it better be one of the variants?

jimmy.collins wrote:

errors & hints to kk_*

Attached you will find some errors/hints for your translations. Can you please
fix them? Especially the tranlation for the extensions have to be removed -
they have to be done in the extensions directly.

attachment errors_hints_kk.txt ignored as obsolete

jimmy.collins wrote:

For 'blocklogtext' and 'cannotdelete' you use something like

http://{{SERVERNAME}}/w/index.php?title=

This won't work on all installations - can you please replace this with wiki
links, like f.e.

"[[Special:Newpages]]" instead of
"http://{{SERVERNAME}}/w/index.php?title=Special:Newpages"

jimmy.collins wrote:

Also in 'prefs-help-email' the url is not correct:

href="http://{{SERVERNAME}}/wiki/Help:E-poşta_jayın_kwälandırw"

What if someone wants to install his wiki under
"http://hisserver.com/another-subdirectory/"?

alefzet wrote:

MessagesKk_cn.php

attachment MessagesKk_cn.php ignored as obsolete

alefzet wrote:

MessagesKk_kz.php

attachment MessagesKk_kz.php ignored as obsolete

alefzet wrote:

MessagesKk_tr.php

attachment MessagesKk_tr.php ignored as obsolete

alefzet wrote:

LanguageKk.php

attachment LanguageKk.php ignored as obsolete

alefzet wrote:

Files, I hope, are fixed. Fallbacks works before converting to new format. I cannot test it on
my localhost wiki because it is 1.61 only. Can You Jimmy or You Filip help with fallbacks stuff?

jimmy.collins wrote:

Message files are now looking good. Which variant should be the default for 'kk'?

alefzet wrote:

(In reply to comment #36)

Message files are now looking good. Which variant should be the default for 'kk'?

Default is 'kk-kz' (Cyrillic script)

alefzet wrote:

MessagesKk.php

attachment MessagesKk.php ignored as obsolete

alefzet wrote:

MessagesKk_cn.php

attachment MessagesKk_cn.php ignored as obsolete

alefzet wrote:

MessagesKk_kz.php

attachment MessagesKk_kz.php ignored as obsolete

alefzet wrote:

MessagesKk_tr.php

attachment MessagesKk_tr.php ignored as obsolete

alefzet wrote:

Added strings borrowed from 'sr'. I pray...

jimmy.collins wrote:

patch for trunk

I removed some useless empty else{} blocks, did some other code formattings
(tabs, spaces, dos2unix, ...) and created a unifed patch.

Can someone please doublecheck it? For me it seems to be OK.

attachment bug6706.patch ignored as obsolete

jimmy.collins wrote:

Comment on attachment 2397
errors & hints to kk_*

has been fixed

alefzet wrote:

(In reply to comment #43)

Created an attachment (id=2411) [edit]patch for trunkI removed some useless empty else{} blocks,

did some other code formattings(tabs, spaces, dos2unix, ...) and created a unifed patch.Can someone
please doublecheck it? For me it seems to be OK.

Currently I found some errors by my side. We soon votes for final. See [[kk:User:AlefZet]] for files
versions and it's talk pages.

alefzet wrote:

Today I download and install on localhost svn 16668. Switching of variants, fallback works as well,
but what hell happened with specialpages? Is 16668 work version?

alefzet wrote:

(In reply to comment #46)

Today I download and install on localhost svn 16668. Switching of variants, fallback works as

well, but what hell happened with specialpages? Is 16668 work version?

See also bug 7491

jimmy.collins wrote:

patch for trunk

Changed for new directory

attachment bug6706.patch ignored as obsolete

jimmy.collins wrote:

(In reply to comment #46)

Today I download and install on localhost svn 16668. Switching of variants,

fallback works as well,

but what hell happened with specialpages? Is 16668 work version?

Please tell us what exactly your/the problem with the specialpages?

alefzet wrote:

languages\classes\LanguageKk.deps.php

attachment LanguageKk.deps.php ignored as obsolete

alefzet wrote:

languages\classes\LanguageKk.php

attachment LanguageKk.php ignored as obsolete

alefzet wrote:

languages\classes\LanguageKk_kz.php

attachment LanguageKk_kz.php ignored as obsolete

alefzet wrote:

languages\messages\MessagesKk.php

attachment MessagesKk.php ignored as obsolete

alefzet wrote:

languages\messages\MessagesKk_kz.php

attachment MessagesKk_kz.php ignored as obsolete

alefzet wrote:

languages\messages\MessagesKk_tr.php

attachment MessagesKk_tr.php ignored as obsolete

alefzet wrote:

languages\messages\MessagesKk_cn.php

attachment MessagesKk_cn.php ignored as obsolete

alefzet wrote:

See above final version files for kk. All synchronized with SVN r17021.
Please commit it to SVN and live kk brunches of Wikimedia projects.

Thanks.

ayg wrote:

For the future, it's easier for the devs if you use the command "svn diff" to
create a single patch file that will add all the files when applied, rather than
a number of separate files that must be manually placed in the correct locations.

alefzet wrote:

languages\classes\LanguageKk.php

typo

attachment LanguageKk.php ignored as obsolete

alefzet wrote:

languages\messages\MessagesKk_cn.php

update

attachment MessagesKk_cn.php ignored as obsolete

alefzet wrote:

languages\messages\MessagesKk_kz.php

update

attachment MessagesKk_kz.php ignored as obsolete

alefzet wrote:

languages\messages\MessagesKk_tr.php

update

attachment MessagesKk_tr.php ignored as obsolete

alefzet wrote:

(In reply to comment #58)

For the future, it's easier for the devs if you use the command "svn diff" tocreate a single patch

file that will add all the files when applied, rather thana number of separate files that must be
manually placed in the correct locations.

"svn diff" does patch for 2 files only that in SVN, namely for 'MessagesKk.php'
and 'MessagesKk_cn.php', and does not includes MessagesKk_kz.php etc

rotemliss wrote:

(In reply to comment #63)

(In reply to comment #58)

For the future, it's easier for the devs if you use the command "svn diff"

tocreate a single patch

file that will add all the files when applied, rather thana number of separate

files that must be

manually placed in the correct locations.

"svn diff" does patch for 2 files only that in SVN, namely for 'MessagesKk.php'
and 'MessagesKk_cn.php', and does not includes MessagesKk_kz.php etc

Use "svn add languages/messages/MessagesKk_kz.php" etc. to add them to your
working copy folders (so that they are not considered "some unknown files", but
"files to be added to the next commit/diff"), and therefore for the diff. It
will be exist in the diffs until you use "svn revert". See
http://www.mediawiki.org/wiki/Subversion for additional information.

alefzet wrote:

(In reply to comment #64)

Use "svn add languages/messages/MessagesKk_kz.php" etc.

Does not work with error "is not under version control".

alefzet wrote:

languages\messages\MessagesKk_cn.php

MakeSysop messages is synchronized with MakeSysop extension

attachment MessagesKk_cn.php ignored as obsolete

alefzet wrote:

languages\messages\MessagesKk_kz.php

MakeSysop messages is synchronized with MakeSysop extension

attachment MessagesKk_kz.php ignored as obsolete

alefzet wrote:

languages\messages\MessagesKk_tr.php

MakeSysop messages is synchronized with MakeSysop extension

attachment MessagesKk_tr.php ignored as obsolete

alefzet wrote:

Changed summary to more descriptive expression

alefzet wrote:

languages\messages\MessagesKk_cn.php

updates

attachment MessagesKk_cn.php ignored as obsolete

alefzet wrote:

languages\messages\MessagesKk_kz.php

updates

attachment MessagesKk_kz.php ignored as obsolete

alefzet wrote:

languages\messages\MessagesKk_tr.php

updates

attachment MessagesKk_tr.php ignored as obsolete

alefzet wrote:

patch for trunk

Patch for trunk, include
2501: languages\classes\LanguageKk.deps.php
2503: languages\classes\LanguageKk_kz.php
2504: languages\messages\MessagesKk.php
2514: languages\classes\LanguageKk.php
2544: languages\messages\MessagesKk_cn.php
2545: languages\messages\MessagesKk_kz.php
2546: languages\messages\MessagesKk_tr.php

attachment diffKk.txt ignored as obsolete

alefzet wrote:

Jimmy and Rotem,
please commit the patch to SVN. Seems, everething works as expected.
Thanks,
[[kk:User_talk:AlefZet]]

jimmy.collins wrote:

(In reply to comment #74)

Jimmy and Rotem,
please commit the patch to SVN. Seems, everething works as expected.
Thanks,
[[kk:User_talk:AlefZet]]

Please do NOT add people to CC without asking them before - Rotem and me are
reading the bugzilla mailing list (wikibugs-l@wikipedia.org). We do not need
this kind of spam ...

alefzet wrote:

patch for trunk (extensions)

Kazakh internationalizations for extensions (mostly installed on Wikimedia
projects).

Attached:

alefzet wrote:

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

alefzet wrote:

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

alefzet wrote:

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

alefzet wrote:

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

alefzet wrote:

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

alefzet wrote:

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

alefzet wrote:

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

alefzet wrote:

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

alefzet wrote:

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

alefzet wrote:

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

alefzet wrote:

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

alefzet wrote:

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

alefzet wrote:

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

alefzet wrote:

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

alefzet wrote:

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

alefzet wrote:

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

alefzet wrote:

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

alefzet wrote:

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

alefzet wrote:

patch for trunk (MediaWiki)

added newly introduced key 'undeleterevision-missing'

attachment kk_diff.txt ignored as obsolete

alefzet wrote:

patch for trunk (MediaWiki)

cross links to namespace aliases

attachment kk_diff.txt ignored as obsolete

rotemliss wrote:

Comment on attachment 2580
patch for trunk (MediaWiki)

This patch seems to break when the "mb" PHP extension is not installed (e.g. my
installation). It may not break on Wikimedia sites, but it should be fixed to
match installations without "mb".

alefzet wrote:

The crucial problem is mb_strlen () function. Please try add in GlobalFunctions.php the function
bellow:

UTF-8 strlen function based on a PHP manual http://www.php.net/manual/function.strlen.php comment

by anpaza at mail dot ru
if ( !function_exists( 'mb_strlen' ) ) {
function mb_strlen( $str ) {

		$i = 0;
		$count = 0;
		$len = strlen ($str);
		while ($i < $len) {
			$chr = ord ($str[$i]);
			$count++;
			$i++;
			if ($i >= $len)
				break;

			if ($chr & 0x80) {
				$chr <<= 1;
				while ($chr & 0x80) {
					$i++;
					$chr <<= 1;
				}
			}
		}
		return $count;

}
}

alefzet wrote:

(In reply to comment #99)
Don't worry. I rewrite the code. See attach.

alefzet wrote:

patch for trunk (MediaWiki)

attachment kk_diff.txt ignored as obsolete

alefzet wrote:

(In reply to comment #100)

I rewrite the code...

...without any mbstring functions. (Forgot add end words.)
So,not need custom mb_strlen() function.

alefzet wrote:

patch for trunk (MediaWiki)

latest updates (tooltips an other stuff)

attachment kk_diff.txt ignored as obsolete

alefzet wrote:

patch for trunk (MediaWiki)

typo

attachment kk-diff.txt ignored as obsolete

alefzet wrote:

patch for trunk (MediaWiki)

synchronize with r17308

attachment kk-diff.txt ignored as obsolete

alefzet wrote:

patch for trunk (MediaWiki)

added $specialPageAliases conten

attachment kk-diff.txt ignored as obsolete

alefzet wrote:

patch for trunk (MediaWiki)

attachment kk-diff.txt ignored as obsolete

alefzet wrote:

Hi people. Is any chance for it patch to be merge to svn?
It is tested repetedly on my localhost. Seems ready...

alefzet wrote:

patch for trunk (MediaWiki)

message updates

attachment kk-diff.txt ignored as obsolete

alefzet wrote:

patch for trunk (MediaWiki)

Rebuild messages, clean up the code

Attached:

rotemliss wrote:

Added patch to r17461, except for the special page alises which should be added
to http://www.mediawiki.org/wiki/Special_page_names instead for now, I think. If
something went wrong, it's possible to revert.

Sorry for the long wait, and thanks for your work. You are welcome to update the
translation when the English one is updated, but please, do that in another bug
;-) .

alefzet wrote:

Reopened because is not merged patch for extensions i18n
http://bugzilla.wikimedia.org/attachment.cgi?id=2578

alefzet wrote:

See Bug 7971: Kazakh i18n updates for extensions

*** This bug has been marked as a duplicate of 7971 ***

rotemliss wrote:

Not a duplicate, because most of the bug was about the regular updates.