Last modified: 2010-05-15 14:36:20 UTC
Basic necessary namespace update for Turkish language. Since there is no LanguageTr.php yet in cvs repository, this will be the first version. It is prepaired by using latest available Language.php file.
Created attachment 622 [details] first LanguageTr.php
Applied to REL1_4 and HEAD.
Comment on attachment 622 [details] first LanguageTr.php ><?php >require_once( "LanguageUtf8.php" ); > >if ( $wgMetaNamespace == "Wikipedia" ) { > $wgMetaNamespace = "Vikipedi"; >} >/* private */ $wgNamespaceNamesTr = array( > NS_MEDIA => 'Media', > NS_SPECIAL => 'Özel', > NS_MAIN => '', > NS_TALK => 'Tartışma', > NS_USER => 'Kullanıcı', > NS_USER_TALK => 'Kullanıcı_mesaj', > NS_PROJECT => $wgMetaNamespace, > NS_PROJECT_TALK => $wgMetaNamespace . '_tartışma', > NS_IMAGE => 'Resim', > NS_IMAGE_TALK => 'Resim_tartışma', > NS_MEDIAWIKI => 'MedyaViki', > NS_MEDIAWIKI_TALK => 'MedyaViki_tartışma', > NS_TEMPLATE => 'Şablon', > NS_TEMPLATE_TALK => 'Şablon_tartışma', > NS_HELP => 'Yardım', > NS_HELP_TALK => 'Yardım_tartışma', > NS_CATEGORY => 'Kategori', > NS_CATEGORY_TALK => 'Kategori_tartışma', >) + $wgNamespaceNamesEn; > >class LanguageTr extends LanguageUtf8 { > function getNamespaces() { > global $wgNamespaceNamesTr; > return $wgNamespaceNamesTr; > } > > function formatNum( $number, $year = false ) { > return $year ? $number : strtr($this->commafy($number), '.,', ',.' ); > } > > > >} > > >?>
Created attachment 623 [details] corrected version of LanguageTR.php with utf8 encoding corrected version of first upload
(In reply to comment #4) > Created an attachment (id=623) [edit] > corrected version with utf8 encoding > > corrected version of first upload Applied after changing \r\n to \n
Created attachment 630 [details] Missing function 'commafy' added. This is a HIGH PRIORITY update, because tr.wikipedia.org is not working at the moment. Missing function commafy() is added.
Comment on attachment 630 [details] Missing function 'commafy' added. tr.wikipedia.org is giving "Fatal error: Call to undefined function: commafy() in /usr/local/apache/common-local/php-1.4/languages/LanguageTr.php on line 3".
Comment on attachment 630 [details] Missing function 'commafy' added. Removing "patch" flag from complete file attachments.
I've removed the buggy file from REL1_4. Updates should go on HEAD for this weekend's 1.5 upgrade.
Resolving this as fixed-in-cvs. The file as given would need additional work to function properly on 1.4, and we're upgrading to 1.5 in a couple days.
(In reply to comment #10) > Resolving this as fixed-in-cvs. The file as given would need additional work to function properly > on 1.4, and we're upgrading to 1.5 in a couple days. > Fixed LanguageTR.php is still not uploaded on CVS.
Lowering priority.
current version works well. no need further fix.