Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix translations in Flatpak build #43

Merged
merged 1 commit into from
Nov 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/
Loading