bitinerant/bitburrow

Support localization/translation

Opened this issue · 2 comments

Currently there is a comment at the top of main.py that " " should be localized and ' ' should not be. A true solution to this would be to support full localization. One such package that does this well in Django: https://docs.djangoproject.com/en/stable/topics/i18n/translation/

We hopefully wouldn't need everything Django provides (web server, etc) and could just pull out the translation portions.

Translation would then look something like:

from django.utils.translation import gettext as _

def my_view(request):
    output = _("Welcome to my site.")

Great. I'll convert "string" to _("string") as soon as I'm done with the current refactoring.

Strings have been converted (commit 76dfac6). Actual localization is a low priority at this time.