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

Chapter 18. Internationalizing Packages > Step 4: Creating Language Directories

Step 4: Creating Language Directories

The directory structure of the translations has to follow a strict format because the Zope 3 developers have tried to keep it gettext compatible. By convention, you keep all message catalogs and message catalog templates in a directory called locales, which you should create now. This directory typically contains the message catalog template file (with the extension .pot) and the various language directories, such as en. Because you want to create a translation for English and German, you should create the directories en and de.

Now comes the part that might not make sense at first. The language directories do not contain the message catalog directly, but they contain another directory, called LC_MESSAGES. You should create this directory in each of the language directories.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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