HTML templates need to be prepared for translation

Bug #1157947 reported by Terri
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Postorius
Medium
Sumana Harihareswara

Bug Description

Before we start in on internationalization of the interface, we'll need to double-check that all strings in the HTML templates are correctly marked for translation. That is, we want stuff like:

<h1>{% trans 'Mailman settings' %}</h1>

to replace anything like

<h1>Mailman settings</h1>

Where the text is not marked for translation.

I'm *hoping* that there are no such places, but I noticed a couple when I was normalizing the interface yesterday, so I'm making this bug as a reminder that this should be done before we start i18n efforts. You'll need to read through all the stuff in templates/ (and if you notice any of those templates aren't in use, delete them, but I think I got rid of the extraneous ones yesterday so hopefully that won't be an issue).

This task is most definitely beginner-friendly.

Related branches

Terri (terriko)
description: updated
Revision history for this message
Terri (terriko) wrote :

If you want a nice intro to python/django internationalization issues (which will help you better understand this bug!), I recommend this PyCon 2013 talk:

Internationalization and Localization Done Right
http://pyvideo.org/video/1746/internationalization-and-localization-done-right

Slides:
https://speakerdeck.com/pyconslides/internationalization-and-localization-done-right-by-ruchi-varshney

Terri (terriko)
Changed in postorius:
status: New → Triaged
Revision history for this message
Ankit Anand (anand-ankit101) wrote :

it is a part bug that i have tried to fix. I have made some modification in this file. Please go through this and let me know if this is correct. I will continue fixing it.

Revision history for this message
Sumana Harihareswara (sumanah) wrote :

I'm now working on this in lp:~sumanah/postorius/bug-1157947 .

Changed in postorius:
assignee: nobody → Sumana Harihareswara (sumanah)
Revision history for this message
Sumana Harihareswara (sumanah) wrote :

I see in the bug history that anand-ankit101 removed the attachment that included their proposed fix, so I'm going forward on the assumption no one else has done work on this that I'm duplicating. :)

I am also assuming that mentions of

  <a href="http://list.org">GNU Mailman</a>

(as in the footer blocks) are exempt from the guideline and do not need to be translated -- is this correct?

Changed in postorius:
status: Triaged → Fix Committed
Changed in postorius:
milestone: none → 1.0.0
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers