Coder Social home page Coder Social logo

integrate tower? about sugardough HOT 4 CLOSED

willkg avatar willkg commented on July 3, 2024
integrate tower?

from sugardough.

Comments (4)

Osmose avatar Osmose commented on July 3, 2024

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.

willkg avatar willkg commented on July 3, 2024

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.

glogiotatidis avatar glogiotatidis commented on July 3, 2024

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.

willkg avatar willkg commented on July 3, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.