kiwix / libkiwix

Common code base for all Kiwix ports
https://download.kiwix.org/release/libkiwix/
GNU General Public License v3.0
118 stars 55 forks source link

Use fake language in our translation unit tests. #749

Closed mgautierfr closed 1 year ago

mgautierfr commented 2 years ago

Following #679

The current tests on translation are based on Armenian language. But it is subject to translation made on translatewiki. We should use a fake language we could use on test to be sure that translator will not break our tests.

kelson42 commented 2 years ago

Translatewiki uses « qqq » for comments abour strings. Maybe you can reuse that code?

veloman-yunkan commented 2 years ago

qqq.json contains only descriptions of messages without placeholders for parameters that must be replaced in the real message. Thus using qqq pseudolanguage in the unit tests will not verify that parameters are properly set in the code.

kelson42 commented 2 years ago

000 ?

mgautierfr commented 2 years ago

Or test ?

kelson42 commented 2 years ago

@mgautierfr @veloman-yunkan Can we go forward with test

kelson42 commented 2 years ago

@mgautierfr @veloman-yunkan please use artificial test Language for testing

kelson42 commented 1 year ago

@veloman-yunkan Woukd be good if that one could be implemented. Seems straight forward.