A
A
Artem2017-05-14 18:49:14
Python
Artem, 2017-05-14 18:49:14

How to mark an unknown string for translation?

I am using flask-babel to localize the application.
Is there any way to add translations manually?
The user adds a string to the database, which is then displayed on the page via gettext along with previously known strings. Everything is clear with the second. Extract finds them in the code and adds them to the .pot file. But the user line, obviously, does not see.
I'm ready to create a separate .pot/.po file for these strings and edit it manually, but then how do I compile it along with the rest of the translations?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2017-05-14
@dimonchik2013

well it's described

Now edit the translations/de/LC_MESSAGES/messages.po file as needed. Check out some gettext tutorials if you feel lost.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question