In the SearXNG project we have names of categories, these categories are configurable and the list of categories is generated at runtime. Some of the categories are very common and we serve translations of them.
Since pybabel extract can extract only what is somewhere written down in the source code, we added some dummygettext(<category>) to the source code.
In the SearXNG project we have names of categories, these categories are configurable and the list of categories is generated at runtime. Some of the categories are very common and we serve translations of them.
Since
pybabel extract
can extract only what is somewhere written down in the source code, we added some dummygettext(<category>)
to the source code.https://github.com/searxng/searxng/blob/c3473480f4255a81d83ac48201e0702778398d23/searx/webapp.py#L181-L194
Now my question is: Is there a way to add a stock of
msgid
's to the PO files which are not written down anywhere in the code?