Skip to content

Latest commit

 

History

History
71 lines (51 loc) · 1.56 KB

CODING_GUIDE.md

File metadata and controls

71 lines (51 loc) · 1.56 KB

Build & Run locally

use flatpak

Build & install

flatpak-builder --install --user --force-clean ./.flatpak-builder/out com.usebottles.bottles.yml

Run

flatpak run com.usebottles.bottles

Uninstall devel version

flatpak uninstall com.usebottles.bottles//master

Unit Test

run all tests

pytest .

Dependencies

Regenerate PYPI dependency manifest when requirements.txt changed

python ./utils/flatpak-pip-generator.py --runtime org.gnome.Sdk -r requirements.txt -o com.usebottles.bottles.pypi-deps --yaml

I18n files

po/POTFILES

List of source files containing translatable strings.
Regenerate this file when you added/moved/removed/renamed files that contains translatable strings.

cat > po/POTFILES <<EOF
# List of source files containing translatable strings.
# Please keep this file sorted alphabetically.
EOF
grep -rlP "_\(['\"]" bottles | sort >> po/POTFILES
cat >> po/POTFILES <<EOF
data/com.usebottles.bottles.desktop.in
data/com.usebottles.bottles.gschema.xml
data/com.usebottles.bottles.metainfo.xml.in
EOF

po/bottles.pot and po/*.po

We have a main pot file, which is template for other .po files
And for each language listed in po/LINGUAS we have a corresponding .po file
Regenerate these files when any translatable string added/changed/removed

# make sure you have `meson` and `blueprint-compiler` installed
meson setup /tmp/i18n-build
meson compile -C /tmp/i18n-build/ bottles-pot
meson compile -C /tmp/i18n-build/ bottles-update-po