https://bugzilla.wikimedia.org/show_bug.cgi?id=18389
Summary: EXIF data lacking localization
Product: MediaWiki
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: Normal
Component: Internationalization
AssignedTo: [email protected]
ReportedBy: [email protected]
Numbers in the EXIF data block on image description pages are always rendered
in English format instead of the format of the user's preferred language.
The relevant code seems to be function formatNum on line 1082 of Exif.php,
which is
01082 function formatNum( $num ) {
01083 $m = array();
01084 if ( preg_match( '/^(\d+)\/(\d+)$/', $num, $m ) )
01085 return $m[2] != 0 ? $m[1] / $m[2] : $num;
01086 else
01087 return $num;
01088 }
It rather should be
01082 function formatNum( $num ) {
01083 global $wgLang;
01084 $m = array();
01085 if ( preg_match( '/^(\d+)\/(\d+)$/', $num, $m ) )
01086 return $wgLang->formatNum( $m[2] != 0 ? $m[1] /
$m[2] : $num );
01087 else
01088 return $wgLang->formatNum( $num );
01089 }
Thanks
--
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