Hi,
I have an extension (a skin, actually, but functionally it's exactly the same) which makes use of system messages to allow administrators to add extra content to some areas of wiki pages. So by default the messages are empty, and should never be translated.
You can see this in the Erudite.i18n.php change at https://gerrit.wikimedia.org/r/#/c/62623/
I would like to mark these messages as not to be translated. It looks like one can do this within the mediawiki core using tags; http://www.mediawiki.org/wiki/Help:Extension:Translate/Group_configuration#T...
But I can't see an equivalent method for extensions. Does such a thing exist? I plan to mention in the 'qqq' entries that they shouldn't be translated, but it would be nice if they could be tagged so they weren't shown in the translation interface at all.
If no such mechanism exists, what would be the best way of adding it? Using message documentation templates, or adding the possibility of something like a local mediawiki-defines.txt file for extensions?
I don't know the i18n code very well, so perhaps there is a perfectly good solution I am missing.
Thanks in advance,
Nick
On 21 May 2013 14:13, Nick White nick.white@durham.ac.uk wrote:
Hi,
I have an extension (a skin, actually, but functionally it's exactly the same) which makes use of system messages to allow administrators to add extra content to some areas of wiki pages. So by default the messages are empty, and should never be translated.
You can see this in the Erudite.i18n.php change at https://gerrit.wikimedia.org/r/#/c/62623/
If your extension/skin is translated at translatewiki.net, you can submit a patch against [1]. It has examples of that (search for ignored). If you are talking about translating somewhere else, it depends how you have configured the message group.
[1] https://git.wikimedia.org/blob/translatewiki.git/HEAD/groups%2FMediaWiki%2Fm...
-Niklas
-- Niklas Laxström
On Tue, May 21, 2013 at 07:37:29PM +0300, Niklas Laxström wrote:
On 21 May 2013 14:13, Nick White nick.white@durham.ac.uk wrote:
I have an extension (a skin, actually, but functionally it's exactly the same) which makes use of system messages to allow administrators to add extra content to some areas of wiki pages. So by default the messages are empty, and should never be translated.
If your extension/skin is translated at translatewiki.net, you can submit a patch against [1]. It has examples of that (search for ignored). If you are talking about translating somewhere else, it depends how you have configured the message group.
[1] https://git.wikimedia.org/blob/translatewiki.git/HEAD/groups%2FMediaWiki%2Fm...
Thanks for the information. I am not particularly knowledgable about how translatewiki.net works, so I didn't realise that mediawiki-defines.txt file worked for extensions there too. It should do exactly what I need, thanks a lot for the prompt reply.
Nick
I added a section "Messages that should not be translated" to https://www.mediawiki.org/wiki/Localisation#Message_documentation , with this information, plus the standard comments people appened to En, the {{optional}} in Qqq, the system messageTypes.inc file, etc.
These are my observations of the conventions in use, so fix any mistakes!
On Tue, May 21, 2013 at 9:37 AM, Niklas Laxström niklas.laxstrom@gmail.comwrote:
On 21 May 2013 14:13, Nick White nick.white@durham.ac.uk wrote:
Hi,
I have an extension (a skin, actually, but functionally it's exactly the same) which makes use of system messages to allow administrators to add extra content to some areas of wiki pages. So by default the messages are empty, and should never be translated.
You can see this in the Erudite.i18n.php change at https://gerrit.wikimedia.org/r/#/c/62623/
If your extension/skin is translated at translatewiki.net, you can submit a patch against [1]. It has examples of that (search for ignored). If you are talking about translating somewhere else, it depends how you have configured the message group.
[1] https://git.wikimedia.org/blob/translatewiki.git/HEAD/groups%2FMediaWiki%2Fm...
-Niklas
-- Niklas Laxström
Mediawiki-i18n mailing list Mediawiki-i18n@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-i18n
On Tue, May 21, 2013 at 12:01:25PM -0700, S Page wrote:
I added a section "Messages that should not be translated" to https:// www.mediawiki.org/wiki/Localisation#Message_documentation , with this information, plus the standard comments people appened to En, the {{optional}} in Qqq, the system messageTypes.inc file, etc.
That's awesome and looks very useful, thanks S Page!
Nick
mediawiki-i18n@lists.wikimedia.org