Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install babel-obviel

How to install babel-obviel

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install babel-obviel
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.6
0.7.1Never BuiltWhy not?
0.6 Available View build log
Windows (64-bit)
Mac OS X (10.5+)
0.6
0.7.1Never BuiltWhy not?
0.6 Available View build log
0.5 Failed View build log
Linux (32-bit)
0.7.1 Available View build log
0.6 Available View build log
0.5 Failed View build log
Linux (64-bit)
0.7.1 Available View build log
0.6 Available View build log
0.5 Failed View build log
 
License
BSD
Dependencies
Lastest release
version 0.7.1 on Dec 3rd, 2012

babel-obviel

Babel Obviel integrates Obviel with the Babel i18n tools. You can then use the Babel extraction system to extract message ids from Obviel Template (.obvt) files. Babel Obviel knows about Obviel Template's rules for message id generation so should generate message ids that work with Obviel Template's i18n system.

You can configure Babel for .js and .obvt files with a mapping config file as follows:

[javascript: **.js]
extract_messages = _

[obvt: **.obvt]

If you named this config file mapping.cfg, you can run babel with this config file like this:

$ bin/pybabel extract -F mapping.cfg <some_directory>

You can also extract from a HTML file. The templates should be embedded in script tags of type text/template like this:

<html>
<body>
  <script type="text/template" id="my_template">
     <p data-trans="">Hello world!</p>
  </script>
</body>
</html>

To enable this for all HTML files in your project, add this to your configuration file:

[obvt_html: **.html]
CHANGES

0.7.1 (2012-06-27)

  • Normalize internal whitespace too for HTML. But for attributes, don't normalize any whitespace.

0.7 (2012-06-27)

  • If a message has surrounding whitespace, this whitespace should be removed.

0.6 (2012-06-06)

  • Support extracting translation markers from a script tag in HTML, using the html_obvt extractor.

0.5.2 (2012-06-06)

  • Now the release should be REALLY installable; add MANIFEST.in.

0.5.1 (2012-06-06)

  • Actually make it installable (missing doc/README.txt).

0.5 (2012-05-31)

Initial public release.

Subscribe to package updates

Last updated Dec 3rd, 2012

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.