User:Kebap/translation infrastructure

From Mudlet
< User:Kebap
Revision as of 08:32, 5 April 2019 by Kebap (talk | contribs) (How to exclude text from translation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

History


Main sources of text

  • Mudlet client itself
  • Mudlet website
  • Mudlet wiki
  • "other" spontaneus texts need to be included manually


Processes for each

  1. Find out a way to tell outdated texts from relevant current texts which need translation.
  2. Get texts out of sources (see above). Can this be automated with any tool? Who should be responsible?
  3. Get texts in to translation tool.
  4. Translating inside tool (ok this is to be expected, but also needs good interface and workflows)
  5. Translators report confusing strings back to Mudlet team with information how they need to be adjusted.
  6. Mudlet team updates text in source. Either because of reports, or because of natural evolution.
  7. Updated texts from source need updates in translation tool. Export and import again, plus diff.
  8. Translated texts will be finished. Export them from translation tool. Automation again?
  9. Import translated text to source.
  10. Display of translations in source. Here we will need some sort of language toggle switch in each source.


References


Decisions

  • We want to use US English in the source. Sometimes it is still en/GB - e.g. "licence/license", "color/colour", etc. SlySven will provide a dedicated en/GB translation, but origin will be en/US
  • When a language offers multiple choices on how to address the reader, we will choose the less formal, more friendly way
  • Some texts can't be translated easily in Crowdin, as they are surrounded by < and > for example. This needs to be adjusted in source. See PR #1804 for example and possible solution.
    • Some IRC texts start with ! or alike symbols which must not be translated. Compare above solution.


Updating input strings for translation


Review progress on each language

  • Crowdin offers statistics in settings, counting translation percentage of words
  • Whereas Mudlet counts percentage of strings and languages >95% receive a gold star
  • How to review the progress of current Crowdin translations:
    • Open PR "new Crowdin translation" created automagically by integration robots (Example)
    • Open information from automatic Travis CI build, for example Linux gcc qmake (Example)
    • Find lines starting like "Project MESSAGE: Building translations" and see statistics following (Example)

Example progress snapshot from 2019-04:

Project MESSAGE: Building translations
lang	trnsl	utrnsl	finish	unfin	total	percentage
de_DE	1863	28		1863	0		1891	98
el_GR	0		1891	0		0		1891	0
en_GB	403		1488	403		0		1891	21
es_ES	735		1156	735		0		1891	38
fr_FR	150		1741	150		0		1891	7
it_IT	809		1082	809		0		1891	42
nl_NL	45		1846	45		0		1891	2
pl_PL	514		1377	514		0		1891	27
pt_PT	260		1631	260		0		1891	13
ru_RU	1686	205		1684	2		1891	89
zh_CN	961		930		961		0		1891	50
zh_TW	0		1891	0		0		1891	0
en_US	11		0		11		0		11		100

How to exclude text from translation