Skip to content

Commit f5979d5

Browse files
committed
fix: do not translate help text or POT header.
the help text is too large to submit to translation services. I am excluding the help text from admin.py as well when I generate po files for translation. The POT header shouldn't be translated AFAICT. It is always in english.
1 parent ace70ef commit f5979d5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

roundup/pygettext.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
__version__ = '1.5'
3939

40-
__doc__ = _("""pygettext -- Python equivalent of xgettext(1)
40+
__doc__ = """pygettext -- Python equivalent of xgettext(1)
4141
4242
Many systems (Solaris, Linux, Gnu) provide extensive tools that ease the
4343
internationalization of C programs. Most of these tools are independent of
@@ -170,7 +170,7 @@
170170
conjunction with the -D option above.
171171
172172
If `inputfile' is -, standard input is read.
173-
""")
173+
"""
174174

175175
default_keywords = ['_']
176176
DEFAULTKEYWORDS = ', '.join(default_keywords)
@@ -179,7 +179,7 @@
179179

180180
# The normal pot-file header. msgmerge and Emacs's po-mode work better if it's
181181
# there.
182-
pot_header = _('''\
182+
pot_header = '''\
183183
# SOME DESCRIPTIVE TITLE.
184184
# Copyright (C) YEAR ORGANIZATION
185185
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
@@ -197,7 +197,7 @@
197197
"Content-Transfer-Encoding: ENCODING\\n"
198198
"Generated-By: pygettext.py %(version)s\\n"
199199
200-
''')
200+
'''
201201

202202

203203
def usage(code, msg=''):

0 commit comments

Comments
 (0)