Coder Social home page Coder Social logo

Comments (12)

kghbln avatar kghbln commented on June 14, 2024

Pull request #25 addresses wfMsg

from semanticwatchlist.

kghbln avatar kghbln commented on June 14, 2024

Pull request #26 addresses wfMsgExt

from semanticwatchlist.

kghbln avatar kghbln commented on June 14, 2024

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()

@JeroenDeDauw

from semanticwatchlist.

kghbln avatar kghbln commented on June 14, 2024

@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.

JeroenDeDauw avatar JeroenDeDauw commented on June 14, 2024

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.

kghbln avatar kghbln commented on June 14, 2024

@siebrand This is the resistor: #10 (comment)

from semanticwatchlist.

siebrand avatar siebrand commented on June 14, 2024

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.

kghbln avatar kghbln commented on June 14, 2024

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.

siebrand avatar siebrand commented on June 14, 2024

Oh, wait. You did use rawParams. In that case, please ignore my semantically incorrect suggestion. You did do it correctly.

from semanticwatchlist.

kghbln avatar kghbln commented on June 14, 2024

Fast enough :)

from semanticwatchlist.

kghbln avatar kghbln commented on June 14, 2024

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.

kghbln avatar kghbln commented on June 14, 2024

This was the last hold-up for #36

from semanticwatchlist.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.