For Localisers/Translators

Translation status

Portmod’s internationalization is handled using Project Fluent.


Localisation can be done using Portmod’s Weblate Project.

For Portmod Developers

Text displayed to the user should be output using the portmodlib.l10n:l10n function, and added to the source localisation file l10n/en-GB/main.ftl.

Also see Good Practices for Developers

Internally, the localisation is done using fluent-rs and compiled into portmod’s rust extension. The localisations themselves are also compiled into the rust extension, so after adding localisations it is also necessary to either rebuild the rust extension or to build the extension in debug mode where it will read the files directly from the filesystem at runtime (see Developer Setup for Portmod).