Comments (4)
I talked to clouserw a while back about tower and we concluded that it doesn't offer anything that Django or Jinja don't already include in their latest versions, except maybe a way to collapse whitespace in Jinja templates.
IIRC Django's built in extraction and merging commands work fine, the blocktrans
class now has a trimmed
option for removing leading spaces, and it's possible to extract from Jinja templates, which is pretty much all that tower offered.
from sugardough.
Tower also changed the names of the .po files so you weren't stuck with django.po and djangojs.po. I thought that plus collapsing whitespace were two really important things to the l10n folks. If they're not, that'd be great.
from sugardough.
https://github.com/mozilla/masterfirefoxos/ based on sugardough doesn't use tower and it's on verbatim. No complains from the l10n team.
Sugardough nowadays sports django-jinja which overloads makemessages
/ compilemessages
commands and the l10n flow is very django-ish. I try to keep sugardough as close as possible to vanilla django and to avoid too much mozilla specific stuff, which were great back in the days but now their functionality is supported by django or other widely used packages.
from sugardough.
I'm all for nixing things and using the vanilla-est django possible. We're in the process of upgrading Input and SUMO to django 1.8 and for each of the Mozilla libraries, we're working through what to do with them.
Knowing that Mozilla l10n doesn't care about the things tower does (messages.po vs. django.po, collapsing whitespace, adding msgctxt with gettext/ngettext (django does this with pgettext/npgettext), etc), helps a ton. Thanks!
Given that, closing this out.
from sugardough.
Related Issues (20)
- Make requires.io, coveralls, etc. options at install time HOT 6
- Is our flake8 exclusion to migrations too lax?
- Questionable default pep8 exceptions HOT 5
- Severe lack of a license HOT 1
- Add setup.py and submit to PyPI HOT 2
- CACHES default setting
- Headers are clever but aren't clear HOT 1
- Add contribute.json to generated project HOT 1
- Include django-pipeline? HOT 7
- .jinja as file extension for Jinja templates? HOT 2
- What's the point of the settings directory? HOT 1
- Syntax error in @font-face declaration HOT 1
- Coverage 4.0.1
- Update instructions to run on py27 in the README file HOT 1
- Add Cookiecutter to https://wiki.mozilla.org/MOSS/Projects_in_use_by_Mozilla HOT 1
- Switch to Django LTS HOT 2
- bin/test_sugardough_docker.sh leaves running containers HOT 2
- Recommended handling of favicon HOT 1
- Wrong chown syntax in the dockerfile HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sugardough.