Skip to main content

django-hbs-makemessages

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 “”

Authors

Rafał Pitoń

Metadata

Release files for django-hbs-makemessages 0.9.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-hbs-makemessages 0.9.6
File Size Uploaded
django-hbs-makemessages-0.9.6.tar.gz 7.2 kB Details

Release files / django-hbs-makemessages-0.9.6.tar.gz

Download URL django-hbs-makemessages-0.9.6.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d8440d876dc18de908a7024ce4041c1fdf8e8111b286920e2ca61eb724d57bc7
BLAKE2b-256 checksum
How to use checksums
bef6c5eaac4fd07fd0f7d7b262173c9537b2f0020ab5589ce83b98bc8da4e412
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.9.6 This release

1 release file

0.9.5

1 release file

0.9.4

1 release file

0.9.3

1 release file

0.9.2

1 release file

0.9.1

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page