Translate database content with Poedit

430 views Asked by At

I'm developint a Flask-WebApp and I'd like to internationalize it. I'm following the Flask-Babel API but then I faced a problem, the translation with PoEdit.

Do I need to translate every entry I flag as to-translate manually? What if I want to translate content from the database? Such as comments or new posts? How do I maintain it?

Best Regards

1

There are 1 answers

0
Tony Vincent On

Translating database content with poedit is not the way to go about this as database content is dynamic and babel translations are static. The right approach would be creating a translation table (1:n relation object), and fetching transations.
Here is an SO question that might help, another one