Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
1127962
Update to new Nemo import path
ichthyosaurus Aug 12, 2025
5b75328
Load survey page with bindings to series page to fix lookup errors
ichthyosaurus Aug 12, 2025
7f79a8e
Only load survey page once
ichthyosaurus Aug 12, 2025
b3ddd5c
Use MenuLabel for labels in pulley menus
ichthyosaurus Aug 12, 2025
133b2c9
Add id for app window to access it from anywhere
ichthyosaurus Aug 12, 2025
1b19d14
Remove unnecessary ids from initial page and cover page components
ichthyosaurus Aug 12, 2025
c8df3ce
Use page stack with urls instead of components
ichthyosaurus Aug 12, 2025
3e3bb0d
Add Opal items to gitignore
ichthyosaurus Aug 12, 2025
e446dfa
Update svg files and more them to icons-src
ichthyosaurus Aug 12, 2025
d565aec
Add svg source for placeholder image
ichthyosaurus Aug 12, 2025
006cff5
Use standard icon sizes
ichthyosaurus Aug 12, 2025
d697dbc
Add opal-render-icons and render all images
ichthyosaurus Aug 12, 2025
5dc7e55
Add (disabled) Sailjail profile and backup section
ichthyosaurus Aug 12, 2025
e5f1b92
Update placeholder image
ichthyosaurus Aug 12, 2025
abbf5f2
Rewrite cover page
ichthyosaurus Aug 12, 2025
4bba322
Add Opal modules: About, Delegates, LinkHandler, MenuSwitch, SmartScr…
ichthyosaurus Aug 12, 2025
086535c
Update translations
ichthyosaurus Aug 12, 2025
1639dc5
Make the rpm validator script happy
ichthyosaurus Aug 12, 2025
4df3bb2
Refactor search page
ichthyosaurus Aug 12, 2025
ba7301d
Use https for network requests
ichthyosaurus Aug 12, 2025
2b35a7a
Clear trailing spaces
ichthyosaurus Aug 12, 2025
c335d17
Rewrite most of the GUI
ichthyosaurus Aug 12, 2025
b43707f
Implement "make update" to update Python translation catalogs
ichthyosaurus Aug 12, 2025
c997ddb
Make date formats translatable
ichthyosaurus Aug 12, 2025
5637ff3
Update Python translations
ichthyosaurus Aug 12, 2025
f385548
Update Qt translations
ichthyosaurus Aug 12, 2025
bb0690f
Merge Opal translations
ichthyosaurus Aug 12, 2025
90e66a2
Actually build all translations
ichthyosaurus Aug 12, 2025
a252fdf
Update German translation
ichthyosaurus Aug 12, 2025
1f0e5b6
Don't animate deleting shows to avoid visually removing the next one too
ichthyosaurus Aug 12, 2025
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
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
*.user*
build/
build-release/
dist/
__pycache__
rpm/*.rpm
TODO
*~
MANIFEST

icons-src/raw
icons-src/*/raw

libs/opal-translations
libs/opal-docs
58 changes: 46 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,37 +1,71 @@
##########################################################################
# Makefile for SeriesFinale

# This is a helper Makefile to build the python translation files
# since that is not automatically done with qtcreator.
# The .ls files are converted to .po files with lconvert. A tool
# that comes with the Qt distribution.
# The .po files are compiled to binary .mo format with msgfmt.
#
# This is a helper Makefile to build the Python translation files
# since that is not automatically done with QtCreator.
#
# Dependencies:
# - lconvert: a language file conversion tool that comes with
# the Qt distribution
# - pybabel: a Python tool for managing gettext translations,
# https://pypi.org/project/babel
# - msgfmt: a tool for compiling gettext translations from .po to .mo,
# comes with the gettext distribution
##########################################################################

TSFILES = $(wildcard translations/python-messages-*.ts)
POFILES = $(subst .ts,.po,$(subst python-messages-,,$(TSFILES)))
POFILES = $(patsubst translations/python-messages-%.ts,translations/%/LC_MESSAGES/python-messages.po, $(TSFILES))
TSFAKES = $(patsubst translations/python-messages-%.ts,translations/python-messages-%-fake.ts, $(TSFILES))
LOCALEDIR = src/SeriesFinale/locale
MOFILES = $(patsubst translations/%.po,$(LOCALEDIR)/%/LC_MESSAGES/seriesfinale.mo, $(POFILES))
MOFILES = $(patsubst translations/%/LC_MESSAGES/python-messages.po,$(LOCALEDIR)/%/LC_MESSAGES/seriesfinale.mo, $(POFILES))

LCONVERT = /opt/Qt/6.7.0/gcc_64/bin/lconvert
LCONVERT = /usr/bin/lconvert6
PYBABEL = pybabel
MSGFMT = msgfmt

.PHONY: help clean

help:
@echo ""
@echo " make translations Convert and build python translation files"
@echo " ** Manage Python translations **"
@echo ""
@echo " make update Update translation catalogs for translating"
@echo " make translations Convert and build Python translation files"
@echo " make clean Remove generated and compiled files"
@echo ""
@echo " Note: Qt translations are built automatically when building the app"
@echo ""

translations: $(MOFILES)

translations/%.po: translations/python-messages-%.ts
translations/%/LC_MESSAGES/python-messages.po: translations/python-messages-%.ts
@mkdir -p $(@D)
$(LCONVERT) $< -o $@

$(LOCALEDIR)/%/LC_MESSAGES/seriesfinale.mo: translations/%.po
$(LOCALEDIR)/%/LC_MESSAGES/seriesfinale.mo: translations/%/LC_MESSAGES/python-messages.po
@mkdir -p $(@D)
$(MSGFMT) $< -o $@
@rm -r $(subst LC_MESSAGES/python-messages.po,,$<)

update-pot:
$(PYBABEL) extract \
--project "harbour-seriesfinale" \
--copyright-holder "harbour-seriesfinale contributors" \
-c "TRANSLATORS" --no-wrap \
src/SeriesFinale/series.py \
-o translations/python-messages.pot

translations/python-messages-%-fake.ts: translations/%/LC_MESSAGES/python-messages.po
$(LCONVERT) $< -o $(subst -fake.ts,.ts,$@) \
-target-language $(subst -fake.ts,,$(subst translations/python-messages-,,$@)) \
-no-obsolete -locations absolute
@rm -r $(subst LC_MESSAGES/python-messages.po,,$<)

update-po: update-pot $(POFILES)
$(PYBABEL) update --no-wrap -D python-messages -i translations/python-messages.pot -d translations

update: update-po $(TSFAKES)
$(LCONVERT) translations/python-messages.pot -o translations/python-messages.ts -drop-translations

clean:
rm -f $(POFILES)
Expand Down
171 changes: 0 additions & 171 deletions data/seriesfinale.svg

This file was deleted.

Loading