Page MenuHomePhabricator

Translation review fails for some messages
Closed, InvalidPublic

Description

Originally reported here on twn. The affected messages are:

  • Smw-pa-property-predefined sci cite key
  • Smw-pa-property-predefined sci cite reference
  • Smw-pa-property-predefined sci cite text
  • Smw-pa-property-predefined sci cite
  • Smw-pa-property-predefined sci doi
  • Smw-pa-property-predefined sci pmcid
  • Smw-pa-property-predefined sci pmid
  • Smw-pa-property-predefined sci oclc
  • Smw-pa-property-predefined sci olid
  • Smw-pa-property-predefined sci viaf

They all belong to the Semantic Cite extension but given the content of the messages I currently do not see a reason why the review should error out as it does now.

--> quick testing link

Reproducing the error:

  1. visiting https://translatewiki.net/wiki/Special:Translate?group=mediawiki
  2. Sliding mouse wheel and clicking Review
  3. checking any of the messages above
  4. a yellow rectangle is shown under check mark

Event Timeline

You forgot to include in the task description the steps to reproduce which were included in the thread.

If you follow the link to https://translatewiki.net/w/i.php?title=MediaWiki:Smw-pa-property-predefined_sci_cite_reference/de&action=edit you'll also see that this message is not recognised as existing. In fact en.json has smw-pa-property-predefined__sci_cite_reference. The double space goes against MediaWiki conventions and is not fully supported: maybe the key can be normalised in some more places, maybe the bug will be considered invalid.

This extension seems to have been recently created; you may want to educate the developer about https://www.mediawiki.org/wiki/Manual:Coding_conventions#System_messages to reduce future errors and problems.

Error given is {error: {code: "unknownmessage", info: "Unknown message",…}}.

Did you try whether editing these messages work? There might be something funny with the names, or some stale interim cache.

Did you try whether editing these messages work?

Indeed editing works and gets recorded in the version history. The change as such gets however ignored by the interface.

You forgot to include in the task description the steps to reproduce which were included in the thread.

This was what the quick test link was meant for since I was able to reproduce by following it. I am sorry that this did not work for you to reproduce. I have now copied the steps into the description.

If you follow the link to https://translatewiki.net/w/i.php?title=MediaWiki:Smw-pa-property-predefined_sci_cite_reference/de&action=edit you'll also see that this message is not recognised as existing. In fact en.json has smw-pa-property-predefined__sci_cite_reference. The double space goes against MediaWiki conventions and is not fully supported: maybe the key can be normalised in some more places, maybe the bug will be considered invalid.

This extension seems to have been recently created; you may want to educate the developer about https://www.mediawiki.org/wiki/Manual:Coding_conventions#System_messages to reduce future errors and problems.

Thanks for your insight. Thus closing as invalid.

The change as such gets however ignored by the interface.

I am sorry but this info is incorrect. After editing these messages also vanish from the translation interface.