Questions tagged [python-babel]

Python internationalization library with an emphasis on web-based applications. Use with the [python] tag and any relevant version tags.

158 questions
0
votes
1 answer

Trying to setup Rhode Code on Ubuntu and ran into

While following instructions on how to setup Rhode Code listed here: http://pythonhosted.org/RhodeCode/setup.html I was on the step where I am supposed to use the command: paster setup-rhodecode production.ini I ran into the following error: File…
0
votes
1 answer

Flask Bable - [jinja2: **/templates/**.html] SyntaxError: invalid syntax

I find the documentation between Flask Babel and Jinja confusing. ubuntu@ubuntu-VirtualBox:~/workspace/rtbopsConfig/rtbDashboard3$ python run.py Traceback (most recent call last): File "run.py", line 11, in from app import app File…
Tampa
  • 75,446
  • 119
  • 278
  • 425
0
votes
2 answers

Flask-Babel -0 pybabel: error: unknown locale 'jp'

I am having issues with Flask-babel. I cant create a translation for Japanese. pybabel: error: unknown locale 'jp' Is this a Flask-Babel issue? That is the same error when a language does not exists. But, german works. So.....babel does nit…
Tampa
  • 75,446
  • 119
  • 278
  • 425
0
votes
1 answer

extend Babel date format tags in Django

I'm using BabelDjango to format dates and times in templates. Babel comes with some predefined formats called "short", "long", and "full". I know you can also just pass in your custom format like "DDD mmm" etc, but I would like to create a few…
-1
votes
1 answer

Getting an error while running an odoo-bin in odoo 15

Getting an error as ModuleNotFoundError: No module named 'babel.dates'; 'babel' is not a package while running an odoo-bin I have clone odoo 15.0 repostiorary i have tried to run requirement file and tries to install babel
-1
votes
2 answers

jinja2.exceptions.UndefinedError: '_' is undefined

I am using flask_babel for localization of a python project. When extracting translatable strings from templates, which is put in {{ _('') }} , i am getting the following error. If anyone of you can solve it, please share the solution here.…
lungsang
  • 133
  • 13
-1
votes
1 answer

Syntax error when trying to render form field in Jinja

I am trying to get the placeholder on my form to be translated with Flask-Babel's _() function. {{ render_field(form.search, placeholder="{{ _('Buscar') }}" }} I get this error: File "/home/john/Scripts/Python/games/templates/index.html", line…
nadermx
  • 2,596
  • 7
  • 31
  • 66
1 2 3
10
11