HEIC2JPG is an application to batch convert HEIC images to JPG images. It is packaged as a Flatpak for easy installation and usage.
flatpak install --user org.gnome.Sdk//47 org.gnome.Platform//47 org.freedesktop.Sdk.Extension.rust-stable//24.08 org.freedesktop.Sdk.Extension.llvm18//24.08
flatpak-builder --user flatpak_app build-aux/dev.nordgedanken.heic2jpg.Devel.json
flatpak-builder --run flatpak_app build-aux/dev.nordgedanken.heic2jpg.Devel.json heic2jpg
To install the application, add the repository and install the package using the following commands:
flatpak remote-add --user heic2jpg https://mtrnord.github.io/heic2jpg/index.flatpakrepo
flatpak install --user dev.nordgedanken.heic2jpg.Devel
xgettext --package-name=heic2jpg --package-version=main --msgid-bugs-address=https://github.com/MTRNord/heic2jpg/issues --files-from=po/POTFILES.in --output=po/heic2jpg.pot
To add a new language and translate the application, follow these steps:
-
Add the language to the LINGUAS file: Open the
po/LINGUAS
file and add the language code (e.g.,fr
for French) to the list. -
Generate the .po file for the new language: Use the
msginit
command to create a new.po
file for the language. For example, to add French translations, run:msginit --input=po/heic2jpg.pot --locale=fr --output-file=po/fr.po
-
Translate the strings: Open the newly created
po/fr.po
file in a text editor or a translation tool like Poedit and translate the strings.
By following these steps, you can add support for new languages and provide translations for the HEIC2JPG application.