3 Star 0 Fork 1

Gitee 极速下载/bottles

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/bottlesdevs/Bottles
克隆/下载
CODING_GUIDE.md 1.61 KB
一键复制 编辑 原始数据 按行查看 历史

Build & Run locally

use flatpak

Build & install

flatpak-builder --install --user --force-clean ./.flatpak-builder/out ./build-aux/com.usebottles.bottles.Devel.json

Run

flatpak run com.usebottles.bottles.Devel

Uninstall devel version

flatpak uninstall com.usebottles.bottles.Devel

Unit Test

run all tests

pytest .

Dependencies

Regenerate PYPI dependency manifest when requirements.txt changed

python ./build-aux/req2flatpak/req2flatpak.py --requirements-file requirements.txt --yaml --target-platforms 312-x86_64 -o build-aux/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.in
data/com.usebottles.bottles.gschema.xml
data/com.usebottles.bottles.metainfo.xml.in.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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/mirrors/bottles.git
git@gitee.com:mirrors/bottles.git
mirrors
bottles
bottles
main

搜索帮助