How to maintain your language profile¶
You have already added your language profile to the HPO translation repository, and now it is time to update your language translations.
To remind yourself of the general process, please watch this introductory video again:
There are two important kinds changes that are typically maintained: new values (like HPO phenotype names) need to be translated, or changes to existing names need to be confirmed.
Translating new, as of yet untranslated values¶
- The official HPO translation pipeline can be found here.
- All untranslated values can be found in the file called
hp-*-not-translated.babelon.tsv
. For an example (Czech translation), see here. This file contains all values for all terms that are currently not translated in your language profile. - We suggest to download this TSV file, and open it in the program of your choice (Google sheets, Excel) and add translations for all values. Change the translation status to something suitable, like
OFFICIAL
orCANDIDATE
. - Add all your newly updated translations to your translation profile in the HPO translation repository, e.g. this file for the Czech translation. We also call this file the "source of truth". If you update your translations, you should always remember to update this file!
- Open a Pull Request on the repository, and you are done! Alternatively, if you do not have the technical expertise for making a pull request yourself, please open an issue on the issue tracker with a link to your updated TSV file, and a request to update the current one. We assume that the link you provide contains all your translations, so we will download the file, and overwrite whatever you have currently stored in the HPO translation repository. If you do not have a GitHub account, please email the profile to the HPOIE contacts.
Confirming changed values¶
HPO labels and definitions are revised on a regular basis. Similar to the case of new values (see above), the HPO release pipeline will create files that contain all the updated values here.
- All updated values can be found in the file called
hp-*-changed.babelon.tsv
. For an example (Czech translation), see here. - Download this file, and update your translation profile in the HPO translation repository, e.g. this file for the Czech translation as follows:
- For each updated value, update the value in
source_value
column (the column with the orginial HPO value). This confirms that it is, indeed, that value that you are translating. - Update, if needed, your translation (
translated_value
). - Update the translation status, if needed (for example, to
OFFICIAL
). - Follow the instructions for updating the source of truth in the section above (the translation of untranslated values)