Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Library providing makemessages for Handlebars.js templates

Project description

https://travis-ci.org/rafalp/django-hbs-makemessages.png?branch=master

Library providing django-admin-hbs.py script that exposes custom makemessages command that can extract language strings from .hbs and .handlebars files.

This library complements django-ember-gettext Ember.js addon that provides Django’s gettext support in Ember.js application.

Tutorial

Install library via pip:

pip install django-hbs-makemessages

CD to project containing locale directory and JS app and fire makemessages for your locale:

django-admin-hbs.py makemessages –l en_us –d djangojs

Now check your locale’s djangojs.po file for your locale and see if it contains translation files:

#: emberapp/routes/application.js:8 msgid “Connection lost” msgstr “”

#: emberapp/routes/application.js:13 msgid “Page not available” msgstr “”

#: emberapp/routes/application.js:24 msgid “Page not found” msgstr “”

#: emberapp/templates/application.handlebars.:2 #: emberapp/templates/application.hbs.:2 msgid “Welcome to Ember.js!” msgstr “”

#: emberapp/templates/application.handlebars.:3 #: emberapp/templates/application.hbs.:3 msgid “IndexController renders %(template)s template!” msgstr “”

Project details


Release history Release notifications

This version
History Node

0.9.6

History Node

0.9.5

History Node

0.9.4

History Node

0.9.3

History Node

0.9.2

History Node

0.9.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
django-hbs-makemessages-0.9.6.tar.gz (7.2 kB) Copy SHA256 hash SHA256 Source None Jan 25, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page