Skip to content

Commit bf433d6

Browse files
authored
Update to v0.3.0
1 parent ea4309e commit bf433d6

File tree

9 files changed

+367
-51
lines changed

9 files changed

+367
-51
lines changed

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ love:
4747
man/${NAME}.${SECTION}.gz: man/${NAME}.${SECTION}
4848
@gzip -k9c man/${NAME}.${SECTION} > man/${NAME}.${SECTION}.gz
4949

50-
package: man/${NAME}.${SECTION}.gz
50+
src/${NAME}/po/fr/${NAME}.mo:
51+
@msgfmt --output-file=src/${NAME}/po/fr/${NAME}.mo src/${NAME}/po/fr/${NAME}.po
52+
53+
package: man/${NAME}.${SECTION}.gz src/${NAME}/po/fr/${NAME}.mo
5154
python -m build
5255

5356
upload-test:
@@ -57,5 +60,5 @@ upload:
5760
python -m twine upload dist/*
5861

5962
distclean:
60-
rm -rf build dist man/${NAME}.${SECTION}.gz src/*.egg-info
63+
rm -rf build dist man/${NAME}.${SECTION}.gz src/${NAME}/po/fr/${NAME}.mo src/*.egg-info
6164

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,6 @@ The results are only as good (or bad) as what's included in the dictionary used.
8686
The data in both the ABU and DELA dictionaries obviously contains errors, often on the same verbs...
8787
I do not know yet the proportion of correct conjugations.
8888

89-
I do not have a French localized version yet, which is weird for a French language utility.
90-
9189
## BUGS
9290
There are probably lots of peculiarities that would need specific processing,
9391
the verbs conjugated with the "être" auxiliary when used with a pronoun for example.

man/conjuguer.1

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.Dd September 11, 2021
1+
.Dd September 24, 2021
22
.Dt CONJUGUER 1
33
.Os
44
.Sh NAME
@@ -109,8 +109,6 @@ for stripping ANSI sequences in strings.
109109
The results are only as good (or bad) as what's included in the dictionary used.
110110
The data in both the ABU and DELA dictionaries obviously contains errors, often on the same verbs...
111111
I do not know yet the proportion of correct conjugations.
112-
.Pp
113-
I do not have a French localized version yet, which is weird for a French language utility.
114112
.Sh BUGS
115113
There are probably lots of peculiarities that would need specific processing,
116114
the verbs conjugated with the "etre" auxiliary when used with a pronoun for example.

setup.cfg

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = pnu_conjuguer
33
description = conjugaison des verbes Français
44
long_description = file: README.md
55
long_description_content_type = text/markdown
6-
version = 0.2.3
6+
version = 0.3.0
77
license = BSD 3-Clause License
88
license_files = License
99
author = Hubert Tournier
@@ -50,4 +50,6 @@ console_scripts =
5050
[options.data_files]
5151
man/man1 =
5252
man/conjuguer.1.gz
53+
share/locale/fr/LC_MESSAGES =
54+
src/conjuguer/po/fr/conjuguer.mo
5355

src/conjuguer/Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,18 @@ format: /usr/local/bin/black
4646
${NAME}.${SECTION}.gz: ../../man/${NAME}.${SECTION}
4747
@gzip -k9c ../../man/${NAME}.${SECTION} > ${NAME}.${SECTION}.gz
4848

49-
install: ${NAME}.${SECTION}.gz
49+
po/fr/${NAME}.mo:
50+
@msgfmt --output-file=po/fr/${NAME}.mo po/fr/${NAME}.po
51+
52+
install: ${NAME}.${SECTION}.gz po/fr/${NAME}.mo
5053
install -m 0755 -o root -g wheel main.py ${DESTROOTDIR}/bin/${NAME}
5154
install -m 0644 -o root -g wheel ${NAME}.${SECTION}.gz ${DESTROOTDIR}/man/man${SECTION}
55+
install -m 0644 -o root -g wheel po/fr/${NAME}.mo ${DESTROOTDIR}/share/locale/fr/LC_MESSAGES
5256

5357
uninstall:
5458
rm -f ${DESTROOTDIR}/bin/${NAME}
5559
rm -f ${DESTROOTDIR}/man/man${SECTION}/${NAME}.${SECTION}.gz
60+
rm -f ${DESTROOTDIR}/share/locale/fr/LC_MESSAGES/${NAME}.mo
5661

5762
whatis:
5863
makewhatis
@@ -61,7 +66,7 @@ love:
6166
@echo "Not war!"
6267

6368
clean:
64-
@rm -f ${NAME}.${SECTION}.gz
69+
@rm -f ${NAME}.${SECTION}.gz po/fr/${NAME}.mo
6570

6671
distclean: clean
6772

0 commit comments

Comments
 (0)