StringFunctions needed for reviewing proposed changes

StringFunctions needed for reviewing proposed changes

Following a previous discussion, I'm wondering if it's possible to enable MediaWiki's StringFunctions on this site, in order to provide a better view of a package of proposed changes across messages.

If I could use {{#replace}} (which is included in StringFunctions), it would be easier to set up an index page that compactly present a list of improvements onto a set of message. For example, I could preesnt a list of proposed changes where 'NewName' replaces 'TentativeName', by writing like:

 == Messages with proposed changes regarding the phrase 'TentativeName' ==
 * [[MediaWiki:newfunc-foo]]: {{#replace:{{MediaWiki:newfunc-foo}}|TentativeName|<del>TentativeName</del><ins>NewName</ins>}}
 * [[MediaWiki:newfunc-bar]]: {{#replace:{{MediaWiki:newfunc-bar}}|TentativeName|<del>TentativeName</del><ins>NewName</ins>}}
 ...

In this way, people can easily review the proposed changes in context and see how they're going to look like across messages. (and of course, some neat templates can reduce the effort to write the repeated parts.)

According to mw:Extension:ParserFunctions, the function can be enabeld by adding this line to LocalSettings.php (or something equivalent): $wgPFEnableStringFunctions = true;.

whym12:58, 6 January 2011

I don't think this is a good idea. The possible performance impact of this change is very hard to oversee and if there is an underlying user story that is useful for more users, this should simply be a feature request for the Translate extension.

Siebrand20:00, 6 January 2011
 

I'm not generally opposed, if it makes things easier for users. However, we should not over-engineer this. I think it's perfectly reasonable to describe in words the suggested changes.

Nike10:05, 7 January 2011

Hearing your comments, I'm not sure if the benefit is big enough to justify the 'overkill'. I and (possibly) other Japanese translators are going to review/revise a significant number of old translations soon. So I'd like to pend my request until we'll find things are difficult or manageable with existing tools only.

Thank you for taking your time.

whym13:24, 7 January 2011

I have enabled the StringFunctions. Please try and if the server goes down pls ping me on IRC.

Raymond15:08, 7 January 2011

Thank you, then, I'll start working with the functions. As far as I can see in the first small trial, it looks nice :)

whym16:05, 7 January 2011