Comments (12)
Pull request #25 addresses wfMsg
from semanticwatchlist.
Pull request #26 addresses wfMsgExt
from semanticwatchlist.
The last transgressor:
Will this be the correct change?
wfMsgHtml( 'swl-watchlist-pagincontrol', $wgLang->pipeList( array( $firstLink, $nextLink ) ), $wgLang->pipeList( $limitLinks ) )
to
wfMessage( 'swl-watchlist-pagincontrol' )->rawParams( $wgLang->pipeList( array( $firstLink, $nextLink ) ), $wgLang->pipeList( $limitLinks ) )->escaped()
from semanticwatchlist.
@JeroenDeDauw It will be cool if we get this (#10 (comment)) into 1.0 Just advise if this change is cool and I will do a pull request for it.
from semanticwatchlist.
I've not used the MW i18n system for two years or so, hence I cannot tell if that is correct or not. Ping @Nikerabbit @siebrand
from semanticwatchlist.
@siebrand This is the resistor: #10 (comment)
from semanticwatchlist.
This:
wfMsgHtml( 'swl-watchlist-pagincontrol', $wgLang->pipeList( array( $firstLink, $nextLink ) ), $wgLang->pipeList( $limitLinks ) )
Should be converted to wfMessage as:
wfMessage( 'swl-watchlist-pagincontrol' )
->rawParams(
$wgLang->pipeList( array( $firstLink, $nextLink ) )
$wgLang->pipeList( $limitLinks )
)->escaped()
This results in 'swl-watchlist-pagincontrol' being escaped, and the parameters being used as raw parameters. The solution suggested in the earlier comment, would have resulted in escaped links.
from semanticwatchlist.
Thank you very much! Well this is just a single comma difference in text but a big difference in result. Will revisit this to understand it better! Will do the change now. Great!
from semanticwatchlist.
Oh, wait. You did use rawParams. In that case, please ignore my semantically incorrect suggestion. You did do it correctly.
from semanticwatchlist.
Fast enough :)
from semanticwatchlist.
Thanks again @siebrand It took me a long time but with this pull request #37 the migration is finally done for this extension.
from semanticwatchlist.
This was the last hold-up for #36
from semanticwatchlist.
Related Issues (20)
- Replace deprecated Hooks::run
- Add diff coloring
- Email notification stopped HOT 3
- Fatal error: Call to a member function rawParams() on a non-object in /home/ccc/htdocs/w/extensions/SemanticWatchlist/includes/SWL_Emailer.php on line 43 HOT 10
- Undefined offset / SWL_CustomTexts.php on line 62 HOT 3
- Attributes with space in name not shown in SWL menu HOT 1
- Could not update the watchlist group HOT 2
- Got explicit BEGIN from DatabaseBase::begin while atomic section(s) RenameuserSQL::rename are open. HOT 2
- Remove I18n shim for php-files
- Database / Call to a member function recordQueryCompletion() on null HOT 1
- Notification mail has HTML formatting issues with MediaWiki 1.27+ HOT 2
- Deprecations from MW 1.25 are causing trouble on Special:SemanticWatchlist HOT 1
- Drop PHP 5.3 and 5.4 compat HOT 1
- MW 1.34+ Use of undefined constant DB_SLAVE - assumed 'DB_SLAVE'
- Implement extension registration HOT 1
- SemanticWatchlist DB error HOT 3
- Call to undefined function wfRunHooks() HOT 3
- Trailing whitespace in message definition
- Replace usage of deprecated User::isBlocked HOT 1
- Replace deprecated Language::factory
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from semanticwatchlist.