https://bugzilla.wikimedia.org/show_bug.cgi?id=35752

Sam Reed (reedy) <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|Unprioritized               |Normal

--- Comment #2 from Sam Reed (reedy) <[email protected]> ---
Of course, actually implementing this is rather easy... Something like:

    /**
     * {{#validlanguage:string}}
     *
     * Reports whether language code is valid.
     * @param $parser Parser
     * @param $inStr string
     * @return bool
     */
    public static function runValidLanguagecode ( $parser, $inStr = '' ) {
        wfProfileIn( __METHOD__ );

        $inStr = self::killMarkers( $parser, (string)$inStr );
        $valid = Language::isValidCode( $inStr );

        wfProfileOut( __METHOD__ );
        return $valid;
    }

It could go in string functions and it could also go into core... That's the
hard part

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to