forked from AFPy/python-docs-fr
Compare commits
2 Commits
d8ce7c55bf
...
5d61a97b8e
Author | SHA1 | Date |
---|---|---|
Florian Guillet | 5d61a97b8e | |
Julien Palard | f770a90e58 |
|
@ -23,8 +23,36 @@ la manipulation des fichiers ``.po`` et la traduction.
|
|||
|
||||
`Poutils <https://pypi.org/project/poutils/>`_ est un paquet PyPI qui
|
||||
regroupe un certain nombre d'outils liés à la traduction. Dans un
|
||||
environnement disposant de Python 3.7 ou plus, installez-le avec ::
|
||||
environnement disposant de Python 3.7 ou plus, installez-le avec :
|
||||
|
||||
Debian / Ubuntu ::
|
||||
|
||||
python3 -m pip install poutils
|
||||
|
||||
MacOS (intel) ::
|
||||
|
||||
brew install hunspell
|
||||
sudo mkdir /Library/Spelling/
|
||||
# Aller chercher le dictionnaire français sur grammalecte
|
||||
# http://grammalecte.net:8080/file?name=gc_lang/fr/oxt/Dictionnaires/dictionaries/fr-toutesvariantes.dic&ci=tip
|
||||
# http://grammalecte.net:8080/file?name=gc_lang/fr/oxt/Dictionnaires/dictionaries/fr-toutesvariantes.aff&ci=tip
|
||||
sudo mv ~/Downloads/fr-toutesvariantes.dic /Library/Spelling/fr_FR.dic
|
||||
sudo mv ~/Downloads/fr-toutesvariantes.aff /Library/Spelling/fr_FR.aff
|
||||
ln -s /usr/local/Cellar/hunspell/1.7.2/lib/libhunspell-1.7.0.dylib /usr/local/Cellar/hunspell/1.7.2/lib/libhunspell.dylib
|
||||
CFLAGS=$(pkg-config --cflags hunspell) LDFLAGS=$(pkg-config --libs hunspell) python3 -m pip install hunspell
|
||||
python3 -m pip install poutils
|
||||
|
||||
MacOS (Universal) ::
|
||||
|
||||
brew install hunspell
|
||||
sudo mkdir /Library/Spelling/
|
||||
# Aller chercher le dictionnaire français sur grammalecte
|
||||
# http://grammalecte.net:8080/file?name=gc_lang/fr/oxt/Dictionnaires/dictionaries/fr-toutesvariantes.dic&ci=tip
|
||||
# http://grammalecte.net:8080/file?name=gc_lang/fr/oxt/Dictionnaires/dictionaries/fr-toutesvariantes.aff&ci=tip
|
||||
sudo mv ~/Downloads/fr-toutesvariantes.dic /Library/Spelling/fr_FR.dic
|
||||
sudo mv ~/Downloads/fr-toutesvariantes.aff /Library/Spelling/fr_FR.aff
|
||||
ln -s /opt/homebrew/lib/libhunspell-1.7.0.dylib /opt/homebrew/Cellar/hunspell/1.7.2/lib/libhunspell-1.7.0.dylib
|
||||
CFLAGS=$(pkg-config --cflags hunspell) LDFLAGS=$(pkg-config --libs hunspell) python3 -m pip install hunspell
|
||||
python3 -m pip install poutils
|
||||
|
||||
Dans notre cas, les utilitaires de *Poutils* qui nous intéressent sont :
|
||||
|
|
|
@ -1 +1 @@
|
|||
poutils==0.15.1
|
||||
poutils>=0.15.2
|
||||
|
|
Loading…
Reference in New Issue