Skip to content

Commit

Permalink
Merge pull request #43 from luleyleo/fix-flatpak-translations
Browse files Browse the repository at this point in the history
Fix translations in Flatpak build
  • Loading branch information
luleyleo authored Nov 17, 2024
2 parents de8b74a + 1b08a5b commit a74843e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ install: build
install -Dm0755 {{desktop-src}} {{desktop-dst}}
install -Dm0755 {{metainfo-src}} {{metainfo-dst}}
install -Dm0755 {{icon-svg-src}} {{icon-svg-dst}}
cp -r {{po-src}} {{po-dst}}
cp -r {{po-src}}/* {{po-dst}}/

make-makefile target='build-aux/Makefile':
echo "# This file was generated by 'just make-makefile'" > {{target}}
Expand Down Expand Up @@ -103,6 +103,7 @@ add-translation language:
msginit -l {{language}}.UTF8 -o po/{{language}}.po -i po/messages.pot

build-translations:
rm -r assets/locale
cat po/LINGUAS | while read lang; do \
mkdir -p assets/locale/$lang/LC_MESSAGES; \
msgfmt -o assets/locale/$lang/LC_MESSAGES/{{appid}}.mo po/$lang.po; \
Expand Down
3 changes: 2 additions & 1 deletion makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# This file was generated by 'just make-makefile'
.PHONY: install
install:
rm -r assets/locale
cat po/LINGUAS | while read lang; do mkdir -p assets/locale/$$lang/LC_MESSAGES; msgfmt -o assets/locale/$$lang/LC_MESSAGES/de.leopoldluley.Clapgrep.mo po/$$lang.po; done
cargo build --package clapgrep-gnome --release
mkdir -p /app/share/locale
install -Dm0755 target/release/clapgrep-gnome /app/bin/clapgrep
install -Dm0755 assets/de.leopoldluley.Clapgrep.desktop /app/share/applications/de.leopoldluley.Clapgrep.desktop
install -Dm0755 assets/de.leopoldluley.Clapgrep.metainfo.xml /app/share/metainfo/de.leopoldluley.Clapgrep.metainfo.xml
install -Dm0755 assets/icons/hicolor/scalable/apps/de.leopoldluley.Clapgrep.svg /app/share/icons/hicolor/scalable/apps/de.leopoldluley.Clapgrep.svg
cp -r assets/locale /app/share/locale
cp -r assets/locale/* /app/share/locale/

0 comments on commit a74843e

Please sign in to comment.