Last modified: 2013-05-16 17:17:09 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 T50537, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 48537 - Localisation of "Semantic Statistics" hardcoded on Special:Statistics? (SMW 1.9-alpha)
Localisation of "Semantic Statistics" hardcoded on Special:Statistics? (SMW 1...
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Normal normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
http://semantic-mediawiki.org/wiki/Sp...
: i18n
Depends on: 48542
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-16 14:00 UTC by [[kgh]]
Modified: 2013-05-16 17:17 UTC (History)
5 users (show)

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


Attachments

Description [[kgh]] 2013-05-16 14:00:24 UTC
It seems that these messages are hardcoded right now, however I am pretty sure that I have done translations for the according messages.
Comment 1 [[kgh]] 2013-05-16 14:01:22 UTC
Adding URL to visualise the problem
Comment 2 MWJames 2013-05-16 14:12:38 UTC
This is done in SpecialStatistics::getOtherStats() in mw-core which does 

$name = $this->msg( $key )->inContentLanguage()->parse(); which does the translation of 'smw-statistics-property-instance' maintained in $extraStats['smw-statistics']['smw-statistics-property-instance'] 

The inContentLanguage is used and not the user language.
Comment 3 MWJames 2013-05-16 14:29:24 UTC
Changing the behaviour need replacement of

$name = $this->msg( $key )->inContentLanguage()->parse();

with

$name = $this->msg( $key )->parse();

It took me over 5 month to get the getOtherStats() stuff changed in mw-core which means doing this change will surely take another 5 month because people complaining about "commas".

Karsten, please raise an issue in mw-core and lets see how long it will take this time. You can refer to this bug and put me on as an assignee.
Comment 4 [[kgh]] 2013-05-16 15:32:21 UTC
Thank you for having a look into this James. I have just added the bug as advised which I am now adding here as "depends on".

Hoping things work out a bit faster. Indeed sometimes things appear irrational, but "living organisms" (software, people, processes, etc.) are just like it. Do not loose faith as I try not to.
Comment 5 MWJames 2013-05-16 17:17:09 UTC
[1] got merged with mw-core marking this fixed as it was a non-SMW issue.

[1] https://gerrit.wikimedia.org/r/#/c/64087/

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


Navigation
Links