Paste number 32174: xgettext test

Paste number 32174: xgettext test
Pasted by: pjenvey
When:2 years, 6 months ago
Share:Tweet this! | http://paste.lisp.org/+OTQ
Channel:None
Paste contents:
Raw Source | XML | Display As
pjenvey@bob:/tmp[5]$ cat test.py 
import gettext
_('underscore')
gettext('gettext')
ugettext('ugettext')
ngettext('ngettext', 'ngettexts', 3)
ungettext('ungettext', 'ungettexts', 
          4)

h._('h underscore')
h.gettext('h gettext')
h.ugettext('h ugettext')
h.ngettext('h ngettext', 'h ngettexts', 3)
h.ungettext('h ungettext', 'h ungettexts', 
            4)
pjenvey@bob:/tmp[5]$ xgettext -L python test.py 
pjenvey@bob:/tmp[5]$ cat messages.po 
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2006-12-11 22:43-0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"

#: test.py:2
msgid "underscore"
msgstr ""

#: test.py:3
msgid "gettext"
msgstr ""

#: test.py:4
msgid "ugettext"
msgstr ""

#: test.py:5
msgid "ngettext"
msgid_plural "ngettexts"
msgstr[0] ""
msgstr[1] ""

#: test.py:6
msgid "ungettext"
msgid_plural "ungettexts"
msgstr[0] ""
msgstr[1] ""

#: test.py:9
msgid "h underscore"
msgstr ""

#: test.py:10
msgid "h gettext"
msgstr ""

#: test.py:11
msgid "h ugettext"
msgstr ""

#: test.py:12
msgid "h ngettext"
msgid_plural "h ngettexts"
msgstr[0] ""
msgstr[1] ""

#: test.py:13
msgid "h ungettext"
msgid_plural "h ungettexts"
msgstr[0] ""
msgstr[1] ""

This paste has no annotations.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.