Last modified: 2007-06-05 09:28:03 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 T12144, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 10144 - Update to ParserFunctions.php
Update to ParserFunctions.php
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-06-05 09:04 UTC by Huji
Modified: 2007-06-05 09:28 UTC (History)
0 users

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


Attachments

Description Huji 2007-06-05 09:04:28 UTC
Please update the bottom section of ParserFunctions.php file to what you see below. This is to enable support for Farsi translation of parser functions. Thanks in advance.

-----

function wfParserFunctionsLanguageGetMagic( &$magicWords, $langCode ) {
    switch ( $langCode ) {
        case 'he':
            $magicWords['expr']    = array( 0, 'חשב',          'expr' );
            $magicWords['if']      = array( 0, 'תנאי',         'if' );
            $magicWords['ifeq']    = array( 0, 'שווה',         'ifeq' );
            $magicWords['ifexpr']  = array( 0, 'חשב תנאי',     'ifexpr' );
            $magicWords['switch']  = array( 0, 'בחר',          'switch' );
            $magicWords['default'] = array( 0, '#ברירת מחדל',  '#default' );
            $magicWords['ifexist'] = array( 0, 'קיים',         'ifexist' );
            $magicWords['time']    = array( 0, 'זמן',          'time' );
            $magicWords['rel2abs'] = array( 0, 'יחסי למוחלט',  'rel2abs' );
            break;
	case 'fa':
            $magicWords['expr']    = array( 0, 'حساب',         'expr' );
            $magicWords['if']      = array( 0, 'اگر',          'if' );
            $magicWords['ifeq']    = array( 0, 'اگرمساوی',     'ifeq' );
            $magicWords['ifexpr']  = array( 0, 'اگرحساب',      'ifexpr' );
            $magicWords['switch']  = array( 0, 'گزینه',        'switch' );
            $magicWords['default'] = array( 0, '#پیش‌فرض',      '#default' );
            $magicWords['ifexist'] = array( 0, 'اگرموجود',     'ifexist' );
            $magicWords['time']    = array( 0, 'زمان',         'time' );
            $magicWords['rel2abs'] = array( 0, 'نسبی‌به‌مطلق',   'rel2abs' );
            break;
        default:
            $magicWords['expr']    = array( 0, 'expr' );
            $magicWords['if']      = array( 0, 'if' );
            $magicWords['ifeq']    = array( 0, 'ifeq' );
            $magicWords['ifexpr']  = array( 0, 'ifexpr' );
            $magicWords['switch']  = array( 0, 'switch' );
            $magicWords['default'] = array( 0, '#default' );
            $magicWords['ifexist'] = array( 0, 'ifexist' );
            $magicWords['time']    = array( 0, 'time' );
            $magicWords['rel2abs'] = array( 0, 'rel2abs' );
            $magicWords['titleparts'] = array( 0, 'titleparts' );
    }
    return true;
}
Comment 1 Raimond Spekking 2007-06-05 09:28:03 UTC
Applied with r22750.

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


Navigation
Links