Contributing to French translation

Created on 5 March 2019, over 6 years ago
Updated 23 July 2025, 9 days ago

I'm currently working on the translation of the H5P interface into French, i.e. mostly adding missing translations (and fixing a few errors). I am using POEDIT (free version). I have set its Catalogue to sniff all H5P source code for translatable strings, and this works fine. Currently 276 strings found and translated.
However, there still are a (small) number of English strings located in .yml files, which POEDIT cannot reach. Those are h5p.links.menu.yml (1 x 2 strings) and h5p.permissions.yml (8 x 2 strings).

Now what is the best way to solve this?

I can edit my h5p-8.x-1.0-rc12.fr.po file with a text editor and add those strings as msgid and msgstr. I have checked on my local Drupal 8 site and it works OK.
But then if inside POEDIT I Update from source code my Catalogue, I will of course lose those extra added strings!
Should I only add those extra strings to my .fr.po file at the last minute and save that file without the Catalogue before uploading to the Drupal site here?
I also note that .po files distributed with Drupal do not contain the source references (such as #: src/Controller/H5PAJAX.php:50).
In summary, this is what I propose to upload: my h5p-8.x-1.0-rc12.fr.po file without any source references, and with the extra added strings taken from the .yml files mentioned above.
Is that OK? Any suggestions?

πŸ’¬ Support request
Status

Active

Component

User interface

Created by

πŸ‡«πŸ‡·France papijo

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States illeace

    As of 2.9-alpha6 and Drupal 11, there is a robust set of French translations for H5P, including most of the strings in the files you mentioned above. Further, I've confirmed that strings like the "description" value in files like h5p.links.menu.yml can be translated via .po files and with custom string translation in the Drupal UI at /admin/config/regional/translate.

    I realized that this does not at all answer the actual questions asked in the post. For the benefit of future visitors to this issue, this page provides an overview of Drupal's localization process β†’ with guidance on how to contribute.

Production build 0.71.5 2024