File tree Expand file tree Collapse file tree 9 files changed +367
-51
lines changed Expand file tree Collapse file tree 9 files changed +367
-51
lines changed Original file line number Diff line number Diff line change 4747man/${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
5356upload-test :
@@ -57,5 +60,5 @@ upload:
5760 python -m twine upload dist/*
5861
5962distclean :
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
Original file line number Diff line number Diff line change @@ -86,8 +86,6 @@ The results are only as good (or bad) as what's included in the dictionary used.
8686The data in both the ABU and DELA dictionaries obviously contains errors, often on the same verbs...
8787I 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
9290There are probably lots of peculiarities that would need specific processing,
9391the verbs conjugated with the "être" auxiliary when used with a pronoun for example.
Original file line number Diff line number Diff line change 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.
109109The results are only as good (or bad) as what's included in the dictionary used.
110110The data in both the ABU and DELA dictionaries obviously contains errors, often on the same verbs...
111111I 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
115113There are probably lots of peculiarities that would need specific processing,
116114the verbs conjugated with the "etre" auxiliary when used with a pronoun for example.
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name = pnu_conjuguer
33description = conjugaison des verbes Français
44long_description = file: README.md
55long_description_content_type = text/markdown
6- version = 0.2.3
6+ version = 0.3.0
77license = BSD 3-Clause License
88license_files = License
99author = Hubert Tournier
@@ -50,4 +50,6 @@ console_scripts =
5050[options.data_files]
5151man/man1 =
5252 man/conjuguer.1.gz
53+ share/locale/fr/LC_MESSAGES =
54+ src/conjuguer/po/fr/conjuguer.mo
5355
Original file line number Diff line number Diff 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
5357uninstall :
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
5762whatis :
5863 makewhatis
6166 @echo " Not war!"
6267
6368clean :
64- @rm -f ${NAME} .${SECTION} .gz
69+ @rm -f ${NAME} .${SECTION} .gz po/fr/ ${NAME} .mo
6570
6671distclean : clean
6772
You can’t perform that action at this time.
0 commit comments