Hi,
I have a little problem to which I currently do not have a solution.
I added a new system message key to the UploadWizard extension via configuration in the "LocalSettings.php" file called "mwe-upwiz-license-c". On the special page using it it is shown as expected as <mwe-upwiz-license-c>. Now I added my translations to "MediaWiki:mwe-upwiz-license-c" and "MediaWiki:mwe-upwiz-license-c/n" respectively. However on the special page it still shows as <mwe-upwiz-license-c> after adding the translations.
I currently have no idea what to do about is. This is what I have tried apart from using a fresh browser:
- Setting `$wgMainCacheType =CACHE_NONE;` did not work.
- Setting `$wgParserCacheExpireTime = 0;` dit not work
- Running both the "rebuildmessages.php" and "rebuildLocalisationCache.php" maintenace script did not work.
If someone has a little hint for me, that will be much apprechiated. Probably it is just a small thing but currently I am somewhat blind on this.
Cheers
You need to also add it to the message dependencies of the ext.uploadWizard ResourceLoader module - backend logic can look up messages on the spot, frontend logic cannot. Probably something like $wgExtensionFunctions[] = function () { $wgResourceModules['ext.uploadWizard']['messages'][] = 'mwe-upwiz-license-c'; }; would work. Although UploadWizard should do this itself if it exposes its messages to be configurable, so I'd say this is a bug.
Hello Gergő,
thank you for this suggestion, however it still does not work on UploadWizards special page. :(
Just to cross-check if MediaWiki recognizes my translations I added {{int:mwe-upwiz-license-c}} to my test page. Here everything shows up as expected.
Anyhow I just created a task on Phabricator for this [0].
Thanks for your help!
Cheers
[0] https://phabricator.wikimedia.org/T273161
Am 28.01.21 um 00:01 schrieb Gergo Tisza:
You need to also add it to the message dependencies of the ext.uploadWizard ResourceLoader module - backend logic can look up messages on the spot, frontend logic cannot. Probably something like $wgExtensionFunctions[] = function () { $wgResourceModules['ext.uploadWizard']['messages'][] = 'mwe-upwiz-license-c'; }; would work. Although UploadWizard should do this itself if it exposes its messages to be configurable, so I'd say this is a bug.
Hallo,
fyi as a follow up. Some voodoo like the one described here [0] is needed to make this happen. It is a bit painful but acutally this is what I also did back in 2018 with MW 1.31. I forgot about it - senior moments!
It appears that UploadWizard is located in extension Mordor and needs some love to make it usable not just for WMF. Here is the respective Phabricator issue in case you are interested: [1]
Cheers
[0] https://www.mediawiki.org/wiki/Topic:V2at02b7oxy5pkwl [1] https://phabricator.wikimedia.org/T256616
PS I just got my delivery of assorted Romanian Zacuscă so my day is still looking bright.
Am 28.01.21 um 09:53 schrieb [[kgh]]:
Hello Gergő,
thank you for this suggestion, however it still does not work on UploadWizards special page. :(
Just to cross-check if MediaWiki recognizes my translations I added {{int:mwe-upwiz-license-c}} to my test page. Here everything shows up as expected.
Anyhow I just created a task on Phabricator for this [0].
Thanks for your help!
Cheers
mediawiki-i18n@lists.wikimedia.org