Last modified: 2005-03-09 09:12:19 UTC
The file LanguagePa.php needs to be updated sometime, at your soonest convenience.
Please attach patches for HEAD and REL1_4
Actually, there is no LanguagePa.php yet in CVS, so http://meta.wikimedia.org/wiki/LanguagePa.php is the first version.
*** Bug 1517 has been marked as a duplicate of this bug. ***
Created attachment 289 [details] Punjabi Language PHP
This file does not work with recent versions of MediaWiki. Please use the 1.4 branch for starting new language files.
(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"?
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
Created attachment 292 [details] Punjabi Language PHP - V2.1 Found a bug in the language file... fixed
(normal function on pa.wiki impossible)
Hi, What's the status with this update?
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
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.
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
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 ).
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.
Can anyone out there add this to the CVS?
Created attachment 333 [details] LanguagePa.php Adds the days of the week and month names that were taken out :/
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.
Created attachment 358 [details] LanguagePa.php; \r\n => \n (converted windows file endings to unix ones) Converted Windows newlines to unix newlines.
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.