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.
Metadata
Release files for babel-obviel 0.7.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| babel-obviel-0.7.1.tar.gz | 10.9 kB | Without provenance | Details |
Release files / babel-obviel-0.7.1.tar.gz
| Download URL | babel-obviel-0.7.1.tar.gz |
|---|---|
| Size | 10.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fa60a89120522382b4f445a1d2868ff8473366a8cfd8a7fc7d3a677f1ab040e8
|
|
BLAKE2b-256 checksum How to use checksums |
729d5b5553b539d5cb6650e131f2774ba5920234d746a2c1a609066456018f81
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for babel-obviel 0.7.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.