Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3421570
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T06:07:06+00:00 2026-05-18T06:07:06+00:00

Django makemessage could generate i18n files, and make it more easier to translate. As

  • 0

Django makemessage could generate i18n files, and make it more easier to translate.

As I see, tornado has support both CSV format and gettext format, but I can only use CSV version, because I will use it at appengine.

So, I am looking for a way to generate these CSV files for tornado base on scanning my codes and templates.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T06:07:06+00:00Added an answer on May 18, 2026 at 6:07 am

    Ok, I think you a bit confused. You can use gettext and po/mo files from within appengine, since gettext is exported from Google’s django.util implementation (a discussion of this can be found in the google-appengine google group) :

    from django.utils.translation import gettext as _ 
    

    I am not familiar with AppEngine CSV’s i18n format, but there is a very easy way to extract internationalized strings from tornado’s code and templates using xgettext, just basically force python from the command line. As an example:

     xgettext -L Python -o myproject.pot  *.html
    

    That command will get all i18n’ed strings from *.html in your current directory and will place them on myproject.pot. You can initialize that file and translate into let’s say ./it_IT/myproject.po using any commercial or opensource tool (I would recommend poedit or pootle) and once you have translated all strings you can convert the file into CVS using Translate Toolkit’s po2csv, which is also written in python:

    po2csv -i it_IT/myproject.po -o it_IT/myproject.csv 
    

    The format is location:codeLine,source,target which is pretty simple end easy to convert to whichever other format you need (I am not familiar with appengine’s i18n CSV format), you can call po2csv with no -o argument and pipe the output out from STDOUT.

    I don’t know if that solves your question, but basically I think you should adopt a code->pot/po->csv workflow since there are many tools that expect po/pot/mo and will allow you to handle your translations or work with translation memories/spellcheckers, etc…. try and let me know if you need any more help with that.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

django's manager docs has a paragraph overwritten with DO NOT FILTER AWAY ANY RESULTS
Django has various numeric fields available for use in models, e.g. DecimalField and PositiveIntegerField
Django's get_or_create function always cause get() returned more than one Model name error in
Django has a DATE_FORMAT and a DATE_TIME_FORMAT options that allow us to choose which
Django has truncatewords template tag, which cuts the text at the given word count.
Django uses real Python files for settings, Trac uses a .ini file, and some
Django as a framework is a neat little package. There are very few files
Django can make use of multiple database engines at the same time. My problem
Django has the StackedInline-Feature for the Admin-Backend - is there any equivalent for django.forms?
Running Django on Windows 7. I'm currently trying to translate a couple of Django

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.