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

Chapter 10. Introduction to Zope's I18n ... > Internationalizing Message Strings

Internationalizing Message Strings

Now let's have a look at how strings are marked up in the various programming languages.

Python Code

As mentioned earlier in this chapter, Zope is not a simple application, and therefore you cannot translate a text message directly in the Python code (because you do not know the user's locale), but you must mark it as a translatable string, which is known as a message ID. Message IDs are created using MessageId factories. The factory takes the domain as an argument to the constructor:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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