Fix translation setup
The infra scripts really expect $REPODIR/locale to work, fix setup.cfg and rename the locale file so that infra scripts work. This fixes change Id9f5b08835a4780a8448c989a878c03b70a97803 which already said:"The proper place is for all python projects $PROJECT/locale/$PROJECT.pot - see setup.cfg." - but then during review we missed that instead of PROJECT=python-magnumclient, it used magnumclient - and the infra scripts do not cope with that since PROJECT really has to be the name of the repository. Change-Id: Idc5efe52a1ff1b0cb8599e1258e411522547f0e4
This commit is contained in:
parent
29b0aa543c
commit
0ea41595e6
@ -34,18 +34,18 @@ all_files = 1
|
||||
upload-dir = doc/build/html
|
||||
|
||||
[compile_catalog]
|
||||
directory = magnumclient/locale
|
||||
directory = python-magnumclient/locale
|
||||
domain = python-magnumclient
|
||||
|
||||
[update_catalog]
|
||||
domain = python-magnumclient
|
||||
output_dir = magnumclient/locale
|
||||
input_file = magnumclient/locale/python-magnumclient.pot
|
||||
output_dir = python-magnumclient/locale
|
||||
input_file = python-magnumclient/locale/python-magnumclient.pot
|
||||
|
||||
[extract_messages]
|
||||
keywords = _ gettext ngettext l_ lazy_gettext
|
||||
mapping_file = babel.cfg
|
||||
output_file = magnumclient/locale/python-magnumclient.pot
|
||||
output_file = python-magnumclient/locale/python-magnumclient.pot
|
||||
|
||||
[wheel]
|
||||
universal = 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user