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

       Web browser: ---
            Bug ID: 47209
           Summary: Exceptions are not internationalizable?
           Product: MediaWiki
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Internationalization
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---

I would like to display exceptions to the end user, but since exceptions cannot
be associated with i18n message ids, this is impossible.  I assume that this is
by design?

Otherwise, if it is sometimes appropriate to display messages, they should
behave something like:

class Surprise extends MWException {
  function __construct( $arg1, $arg2 ) {
    $this->mwMessage = wfMessage( 'msgname', $arg1, $arg2 );
  }

  function getMessage() {
    return $this->mwMessage->text();
  }
}

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

Reply via email to