Last modified: 2005-03-09 09:12:19 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T3478, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 1478 - Punjabi languagexx.php needs to be made live (was:Punjabi languagexx.php file update)
Punjabi languagexx.php needs to be made live (was:Punjabi languagexx.php file...
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Language setup (Other open bugs)
unspecified
All All
: Highest blocker with 2 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch
: 1517 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-02-06 06:19 UTC by Mark
Modified: 2005-03-09 09:12 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Punjabi Language PHP (72.51 KB, text/plain)
2005-02-15 21:09 UTC, Sukh
Details
Punjabi Language PHP - V2 (77.75 KB, text/plain)
2005-02-16 15:16 UTC, Sukh
Details
Punjabi Language PHP - V2.1 (81.52 KB, text/plain)
2005-02-16 15:58 UTC, Sukh
Details
A LanguagePa.php file that works. (36.06 KB, text/plain)
2005-03-02 03:27 UTC, Ævar Arnfjörð Bjarmason
Details
Punjabi Language PHP - V3 (35.59 KB, text/plain)
2005-03-02 16:37 UTC, Sukh
Details
Cleanup, extra translations etc. (32.22 KB, text/plain)
2005-03-02 17:33 UTC, Ævar Arnfjörð Bjarmason
Details
LanguagePa.php (33.38 KB, text/plain)
2005-03-02 22:20 UTC, Ævar Arnfjörð Bjarmason
Details
LanguagePa.php (34.39 KB, text/plain)
2005-03-03 22:04 UTC, Sukh
Details
LanguagePa.php; \r\n => \n (converted windows file endings to unix ones) (34.36 KB, text/plain)
2005-03-09 05:17 UTC, Ævar Arnfjörð Bjarmason
Details

Description Mark 2005-02-06 06:19:36 UTC
The file LanguagePa.php needs to be updated sometime, at your soonest convenience.
Comment 1 Brion Vibber 2005-02-08 14:19:46 UTC
Please attach patches for HEAD and REL1_4
Comment 2 Mark 2005-02-08 23:37:12 UTC
Actually, there is no LanguagePa.php yet in CVS, so
http://meta.wikimedia.org/wiki/LanguagePa.php is the first version.
Comment 3 Zigger 2005-02-13 01:40:54 UTC
*** Bug 1517 has been marked as a duplicate of this bug. ***
Comment 4 Sukh 2005-02-15 21:09:50 UTC
Created attachment 289 [details]
Punjabi Language PHP
Comment 5 JeLuF 2005-02-15 21:17:46 UTC
This file does not work with recent versions of MediaWiki.
Please use the 1.4 branch for starting new language files.
Comment 6 Mark 2005-02-16 01:10:20 UTC
(In reply to comment #5)
> This file does not work with recent versions of MediaWiki.
> Please use the 1.4 branch for starting new language files.

I am not sure what is different, I already attempted previously to fix this
file. Can you tell us what is wrong so we can fix the existing language file
rather than starting from "scratch"?
Comment 7 Sukh 2005-02-16 15:16:28 UTC
Created attachment 291 [details]
Punjabi Language PHP - V2

I've attempted to update this using the latest version from the CVS.  I think
it's right - but to be honest, I'm not sure what I'm doing :D
Comment 8 Sukh 2005-02-16 15:58:50 UTC
Created attachment 292 [details]
Punjabi Language PHP - V2.1

Found a bug in the language file... fixed
Comment 9 Mark 2005-02-16 16:40:25 UTC
(normal function on pa.wiki impossible)
Comment 10 Sukh 2005-02-26 17:16:22 UTC
Hi,

What's the status with this update?
Comment 11 Ævar Arnfjörð Bjarmason 2005-03-02 03:27:17 UTC
Created attachment 324 [details]
A LanguagePa.php file that works.

I took the 2.1 version here and fixed the bugs in it (it had 2 fatal syntax
errors), and simplified it a lot, I deleted a lot of the untranslated messages
and commented out others so that they're inherited from Language.php now (as
they should be). 

It WorksForMe™ on my box running the HEAD branch, it *should* most definitely
work on REL1_4 but I haven't tried it on that.

What sukhjinder_sidhu@hotmail.com might want to tell us is how he wants the
linktrail to be, currently this is:
 "linktrail"	=> "/^([a-z]+)(.*)$/sD"
The linktrail is, the regular expression matched on links that tells the
software when to expand on link patterns, so in short it turns this:
 [[foo]]bar
into this:
[[foo|foobar]]
however as soon as it encounters something other than a to z in the English
alphabet it ceases to work:
[[foo]]xxææxxx becomes [[foo|fooxx]]ææxxx

So, do you want any other characters inside that expression to expand on,
German for example has: /^((?:ä|ö|ü|ß|[a-z])+)(.*)$/sD to accommodate its
special characters.

However you might not want this at all, this works for Germanic languages but
might not be applicable to Punjabi at all, perhaps it doesn't form plurals by
adding suffixes (.e.g. [[bridge]]s) or in any other way contain something you
want to link to at the beginning of a word but not at the end of it.

In any case this can be fixed later, it's no big issue if it doesn't get into
this particular revision
Comment 12 JeLuF 2005-03-02 12:34:53 UTC
These functions are obsolete:
	function getMonthName( $key )
	{
		global $wgMonthNamesPa;
		return $wgMonthNamesPa[$key-1];
	}

	function getWeekdayName( $key )
	{
		global $wgWeekdayNamesPa;
		return $wgWeekdayNamesPa[$key-1];
	}

They have been converted to use wgAllMessages instead.
Comment 13 Sukh 2005-03-02 16:37:38 UTC
Created attachment 327 [details]
Punjabi Language PHP - V3

Phew, after lots of work I have cleaned it up even more.  Sorted out the tabing
to make it easier to maintain.	I've also stripped out all hardcoded references
to Wikipedia and tried to make it more in tune with the contents of
Language.php.

Sukh
Comment 14 Ævar Arnfjörð Bjarmason 2005-03-02 17:33:02 UTC
Created attachment 329 [details]
Cleanup, extra translations etc.

This is a much more cleaned up version, sukh will have to translate the extra
arrays I added ( wgQuickbarSettingsPa, wgSkinNamesPa ).
Comment 15 Ævar Arnfjörð Bjarmason 2005-03-02 22:20:34 UTC
Created attachment 330 [details]
LanguagePa.php

* linktrail works.
* Merged translations from "Punjabi Language PHP - V3"
* Removed redundant code that didn't do anything.

This should no be good enough (perfect?) to apply it to the live Wikipedia.
Comment 16 Sukh 2005-03-03 21:40:25 UTC
Can anyone out there add this to the CVS?
Comment 17 Sukh 2005-03-03 22:04:09 UTC
Created attachment 333 [details]
LanguagePa.php

Adds the days of the week and month names that were taken out :/
Comment 18 Mark 2005-03-09 05:02:17 UTC
Tim,

As I may have stated before, my logic for the priority is as follows (amusing
that you change the priority and then just skip the bug):

There are a number of people clearly interested in participating in this
Wikipedia, and their participation depends primarily on the implementation of a
localised interface.

This has been waiting for quite some time now. I have asked numerous times in
#mediawiki over a number of months, but nobody was there at those times. I have
added it to the request page, to no avail. I have even coordinated with
Sukhjinder Sidhu.

Most recently I added it as a bug in bugzilla because that was suggested on
wikipedia-l.

If you are not willing to fix it yourself, please do not change the priority and
skip over it.
Comment 19 Ævar Arnfjörð Bjarmason 2005-03-09 05:17:02 UTC
Created attachment 358 [details]
LanguagePa.php; \r\n => \n (converted windows file endings to unix ones)

Converted Windows newlines to unix newlines.
Comment 20 Brion Vibber 2005-03-09 09:12:19 UTC
Ahhhh, nice! Unlike many language files we receive, this file actually is valid PHP and compiles and runs! :)))))))

I've made some corrections to the linktrail, trimmed the untranslated messages, fixed a couple hardcoded localized 
'Special:' namespaces, and swapped some {{ns:4}}:s for Project:s. Committed to REL1_4 and HEAD and put live.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links