Topic on Help talk:Extension:Translate

Semantic MediaWiki compatibility

5
Marlonke (talkcontribs)

Hi,


I was wondering the following:


I have a page with Semantic properties. When I translate this page to another language, the Semantic properties are copied as well. My goal is to ensure that, when the properties are changed in the source page, that they are automatically updated in the translated page as well.


Is there any feature that supports this?

Nikerabbit (talkcontribs)

Can you give an example? If they do not depend on a language, just put them outside <translate> tags and they are automatically copied when page is marked for translation.

Marlonke (talkcontribs)

Thanks for your reply, Nike. We appreciate it. Just to be clear, we're running Semantic MediaWiki.


I have a 'Context' property on a page. When initially creating the translated versions of the page, the property and value of this property ('situation') is copied correctly. However, what we aim for is that, when the value of the property of the source page (if we change the Context property's value to 'role' in the source page source code) - or if a new one is added - that the derived translated page automatically reflect this change as well.


In essence, we want it so that if properties are added, edited or deleted on the source page, it also automatically does this on the translated pages. Consistent semantic properties are a staple of our current work philosophy, and we want our users to have to do as little work as possible.

Nikerabbit (talkcontribs)

Currently translatable pages must be re-marked manually to update translation pages. Perhaps you want to have it possible to automate that.

Not sure if it works in your use case, but I believe if those values could be set via a template, then the same effect could be had by just updating that template.

Marlonke (talkcontribs)

We do use plenty of templates, but they are more akin to categories rather than managers of individual pages. I am probably going to look into automating the process of updating semantic properties whenever properties on a source page are edited. I've looked at some of the hooks of the Translate extension, and I think we can make it work somehow.


Thanks for your time, we really appreciate it.

Reply to "Semantic MediaWiki compatibility"