https://bugzilla.wikimedia.org/show_bug.cgi?id=12500
Van de Bugger <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #9122|0 |1 is obsolete| | --- Comment #9 from Van de Bugger <[email protected]> 2011-12-13 20:21:14 UTC --- Created attachment 9674 --> https://bugzilla.wikimedia.org/attachment.cgi?id=9674 Next attempt. > 'antispoof-unassigned' => 'Contains unassigned character $1', That's is not very good decision, because in different languages it may be written in different ways. For example, > "$1" ($2) (where $1 denotes character itself, $2 -- it's Unicode code) looks suitable for English language. > «$1» ($2) would be preferred in Russian. Have no idea about languages with right-to-left direction… May be > ($2) "$1" ? So I implemented another approach. First, I format character representation from character (if it is printable) and character code: > if ( mb_ereg( '^[[:print:]]', $symbol ) ) { > $char = wfMsg( 'antispoof-bad-char', $symbol, $code ); > } else { > $char = wfMsg( 'antispoof-bad-char-np', $code ); > } So it can be localized for different quotation marks, parenthesis, order, etc. Then, character representation is used to get final message: > return array( "ERROR", wfMsg( $msgId, $char ) ); It seems it works. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- 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
