• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 18. Internationalizing Packages > Step 5: Extracting Translatable Strin...

Step 5: Extracting Translatable Strings

Zope provides a very powerful extraction tool for grabbing all translatable text strings from Python, page template and ZCML files. With each translatable string, the file and line number are recorded, and then they are later added as a comment in the message catalog template file.

After all strings are collected and duplicates are merged into single entries, the tool saves the strings in a message catalog template file called domain.pot. This is the beginning of localization. From this point on, you are only concerned about using the template to create translations.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint