Page MenuHomePhabricator

Categories don't get updated when using Translate and MsCatSelect
Closed, InvalidPublic

Description

Hi,

I am using various extensions on my custom Mediawiki, like MLEB and MsCatSelect.
I have an already translated page, with existing categories, previously added : they display correctly on the translated page.

But when I go on my source page, then add categories, I can't edit them on the Translate module, and they are not updated in the translation either.

Here are my versions :

MediaWiki 1.27.0
PHP 5.5.37 (cgi-fcgi)
MySQL 5.1.73-community
ICU 51.2

MsCatSelect 6.1
MLEB 2016.04

Event Timeline

Tuxxic created this task.Aug 23 2016, 7:32 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 23 2016, 7:32 AM

Did you re-mark the page for translation? Changes to the source page do not show up for translators before marking.

Tuxxic added a comment.EditedAug 23 2016, 8:16 AM

Yes, this is included in my translation workflow. In fact, everything else is taken into account, for example : I add a new chunk of text, then mark for translation. A new translation unit is automatically added, and I can translate it.

I tested disabling MsCatSelect, and it didn't work either, so I think it's not related.

Maybe I have to add something to my categories for them to be translated ?

EDIT: OK - I understood.

When I use MsCatSelect, categories are added after the </translate> tag, so they are not taken into account for translation.
Do I have to go on every page I have and put the category tags BEFORE the </translate> tag ?

What I expected was that if the categories weren't in the <translate> tags, it was left untouched and "copied" directly - so an update in the categories would be consequently made to the translation page.

Categories outside <translate> tags are copied verbatim to translation pages, but only when you re-mark the page for translation.

Tuxxic added a comment.EditedAug 23 2016, 11:29 AM

That's right - I also had to run the runJobs.php script to have it correctly done.
Sorry to have bothered you with this.

Nikerabbit closed this task as Invalid.Aug 23 2016, 11:34 AM

Thanks for reporting. Good to hear from people who use MLEB.