heic2jpg

git clone git://archive.git.mtrnord.blog/MTRNord/heic2jpg.git
Log | Files | Refs | README | LICENSE

README.md (1933B)


      1 # HEIC2JPG
      2 
      3 ## About
      4 
      5 ![Screenshot of HEIC2JPG](data/resources/screenshots/screenshot1.png)
      6 
      7 HEIC2JPG is an application to batch convert HEIC images to JPG images. It is packaged as a Flatpak for easy installation and usage.
      8 
      9 ## Building the project
     10 
     11 ```shell
     12 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
     13 flatpak-builder --user flatpak_app build-aux/dev.nordgedanken.heic2jpg.Devel.json
     14 ```
     15 
     16 ## Running the project
     17 
     18 ```shell
     19 flatpak-builder --run flatpak_app build-aux/dev.nordgedanken.heic2jpg.Devel.json heic2jpg
     20 ```
     21 
     22 ## Installing the application
     23 
     24 To install the application, add the repository and install the package using the following commands:
     25 
     26 ```shell
     27 flatpak remote-add --user heic2jpg https://mtrnord.github.io/heic2jpg/index.flatpakrepo
     28 flatpak install --user dev.nordgedanken.heic2jpg.Devel
     29 ```
     30 
     31 ## Translations
     32 
     33 ### Extract gettext strings
     34 
     35 `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`
     36 
     37 ### Adding a new language and translating
     38 
     39 To add a new language and translate the application, follow these steps:
     40 
     41 1. **Add the language to the LINGUAS file**:
     42    Open the `po/LINGUAS` file and add the language code (e.g., `fr` for French) to the list.
     43 
     44 2. **Generate the .po file for the new language**:
     45    Use the `msginit` command to create a new `.po` file for the language. For example, to add French translations, run:
     46 
     47    ```shell
     48    msginit --input=po/heic2jpg.pot --locale=fr --output-file=po/fr.po
     49    ```
     50 
     51 3. **Translate the strings**:
     52    Open the newly created `po/fr.po` file in a text editor or a translation tool like Poedit and translate the strings.
     53 
     54 By following these steps, you can add support for new languages and provide translations for the HEIC2JPG application.