Wikimedia

GettextFFS should implement isContentEqual

The MediaWiki Translate extension allows users to translate contents of wiki pages into multiple languages.

There's a class, GettextFFS, which supports some functionality in the extension. Your task here is to add an own implementation for this class, isContentEqual, to also take pluralised translations into account. This is needed so that import/export functionalities know, that a translated string is equal another one, even if it just changed by the pluralised version (see the task for more details).

Please also add phpunit test cases, which prove, that your implementation is correct.

Task tags

  • translate
  • php

Students who completed this task

taavi

Task type

  • code Code
close

2019