Skip to content

Commit 4e5504f

Browse files
committed
chore: remove Transifex integration, prefer precompiled .mo files in extra/locale/
Should repair local makefile execution, where tx complained about an empty token in secrets.mk
1 parent 2b7d31b commit 4e5504f

38 files changed

+9
-35
lines changed

.github/workflows/lazarus.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,6 @@ jobs:
112112
- name: Install FPM
113113
run: sudo gem install --no-document fpm
114114

115-
- name: Pull from transifex
116-
uses: transifex/cli-action@v2
117-
with:
118-
token: ${{ secrets.TX_TOKEN }}
119-
args: pull -a
120-
121115
- name: Create release archives (Linux GTK)
122116
run: make tar-gtk2
123117

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
/out/qt5
1313
/out/locale
1414
/extra/locale/*/LC_MESSAGES
15-
# Compiled translations
16-
/extra/locale/heidisql.*.mo
1715
# Secrets, DO NOT COMMIT
1816
/secrets.mk
1917

Makefile

Lines changed: 9 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -12,55 +12,37 @@ BINQT := ./out/qt5/heidisql
1212

1313
# Check for environment variable GITHUB
1414
ifeq ($(origin GITHUB), undefined)
15-
# GITHUB is not set — require secrets.mk
16-
ifeq (,$(wildcard ./secrets.mk))
17-
$(error "secrets.mk not found! Please create it first.")
18-
endif
19-
include ./secrets.mk
15+
# GITHUB is not set
2016
tag := $(shell git describe --tags $(shell git rev-list --tags --max-count=1) 2>/dev/null || echo "v0.0.0")
2117
else
22-
# GITHUB is set — skip including secrets.mk
23-
$(info GITHUB is set, not loading secrets.mk)
18+
# GITHUB is set
19+
$(info GITHUB is set)
2420
endif
2521

2622
VERSION := $(shell echo $(tag) | sed "s/v//")
2723

28-
TRANSIFEX_TOKEN ?= help
29-
3024
.PHONY: all clean tx-pull copy-locale build-mo build-gtk2 run-gtk2 build-qt5 run-qt5 deb-package tar-gtk2 tar-qt5
3125

32-
all: clean tx-pull build-mo build-gtk2 build-qt5 deb-package tar-gtk2 tar-qt5
26+
all: clean build-gtk2 build-qt5 deb-package tar-gtk2 tar-qt5
3327

3428
clean:
3529
@echo "=== Cleaning"
3630
@rm -rf ./bin/lib/x86_64-linux/*
3731
@rm -f ./out/gtk2/* ./out/qt5/*
3832
@rm -rf ./deb ./rpm ./tar ./dist
3933

40-
tx-pull:
41-
@echo "=== Pulling from Transifex"
42-
@TX_TOKEN=$(TRANSIFEX_TOKEN) ./extra/internationalization/tx pull -a
43-
4434
copy-locale:
4535
@echo "=== Copying .mo from extra/locale to out/locale"
4636
@mkdir -p ./out/locale
4737
@cp -fv ./extra/locale/*.mo ./out/locale
4838

49-
build-mo:
50-
@echo "=== Building MO files"
51-
@for file in $(shell find ./extra/locale -iname '*.po'); do \
52-
lang=`echo $${file} | cut -d'/' -f4`; \
53-
echo "Building MO file for $${lang}"; \
54-
msgfmt -o "./extra/locale/heidisql.$${lang}.mo" $${file}; \
55-
done
56-
5739
build-gtk2:
5840
@echo "=== Building GTK2"
5941
$(LAZBUILD) $(OPTS) $(LPI)
6042
@mkdir -p ./out/gtk2
6143
@mv -v $(BIN) $(BINGTK)
6244

63-
run-gtk2: build-gtk2 tx-pull build-mo
45+
run-gtk2: build-gtk2
6446
@echo "=== Running GTK2"
6547
@mkdir -p ./run/locale
6648
@cp -vf ./extra/locale/*.mo ./run/locale
@@ -74,15 +56,15 @@ build-qt5:
7456
@mkdir -p ./out/qt5
7557
@mv -v $(BIN) $(BINQT)
7658

77-
run-qt5: build-qt5 tx-pull build-mo
59+
run-qt5: build-qt5
7860
@echo "=== Running GTK2"
7961
@mkdir -p ./run/locale
8062
@cp -vf ./extra/locale/*.mo ./run/locale
8163
@cp -vf ./extra/ini/*.ini ./run
8264
@cp -v $(BINQT) ./run/heidisql
8365
@./run/heidisql
8466

85-
deb-package: build-mo
67+
deb-package:
8668
@echo "=== Creating debian package"
8769
rm -vrf deb
8870
cp -R package-skeleton deb
@@ -104,7 +86,7 @@ deb-package: build-mo
10486
./deb/=/
10587
rm control.txt
10688

107-
tar-gtk2: build-mo
89+
tar-gtk2:
10890
@echo "=== Creating GTK2 archive"
10991
rm -vrf tar
11092
mkdir -p tar/locale dist
@@ -116,7 +98,7 @@ tar-gtk2: build-mo
11698
chmod +x tar/heidisql
11799
cd tar && tar -zcvf ../dist/build-gtk2-$(tag).tgz *
118100

119-
tar-qt5: build-mo
101+
tar-qt5:
120102
@echo "=== Creating QT5 archive"
121103
rm -vrf tar
122104
mkdir -p tar/locale dist

extra/locale/heidisql.bg.mo

146 KB
Binary file not shown.

extra/locale/heidisql.ca.mo

60 KB
Binary file not shown.

extra/locale/heidisql.cs.mo

107 KB
Binary file not shown.

extra/locale/heidisql.da.mo

53.2 KB
Binary file not shown.

extra/locale/heidisql.de.mo

113 KB
Binary file not shown.

extra/locale/heidisql.el.mo

86.1 KB
Binary file not shown.

extra/locale/heidisql.en.mo

106 KB
Binary file not shown.

0 commit comments

Comments
 (0)