My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
Gettext  
Gettext localization file example
Updated Mar 22, 2011 by phong.le...@gtempaccount.com

Introduction

Gettext is a standard format for localization, used in Django framework and on other various platforms.

Example

Following is an example of Gettext localization file

#: this is the context
msgid "master string"
msgstr ""

#: contrib/admin/media/js/SelectFilter2.js:59
msgctxt "another type of context"
msgid "master string"
msgstr ""

#: contrib/admin/media/js/calendar.js:24
msgid "master string"
"can be on "
"multiple line"
msgstr ""
  • Note that even the master string can be in multiple lines in the localization file, but when importing to Get Localization. All line break will be removed, thus in the example file, the imported master string for the last item will be master string can be on multiple line
Powered by Google Project Hosting