Add header to all .pot files consistently

This commit is contained in:
Alexey Sokolov
2017-11-25 00:35:16 +00:00
parent 625d70fa85
commit 12b3e167ee
46 changed files with 239 additions and 11 deletions

View File

@@ -1,3 +1,8 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: adminlog.cpp:29
msgid "Show the logging target"
msgstr ""

View File

@@ -1,3 +1,8 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: alias.cpp:141
msgid "missing required parameter: {1}"
msgstr ""

View File

@@ -1,3 +1,8 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: autoattach.cpp:94
msgid "Added to list"
msgstr ""

View File

@@ -1,3 +1,8 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: autocycle.cpp:27 autocycle.cpp:30
msgid "[!]<#chan>"
msgstr ""

View File

@@ -1,3 +1,8 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: autoop.cpp:154
msgid "List all users"
msgstr ""

View File

@@ -1,3 +1,8 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: autoreply.cpp:25
msgid "<reply>"
msgstr ""

View File

@@ -1,3 +1,8 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: autovoice.cpp:120
msgid "List all users"
msgstr ""

View File

@@ -1,3 +1,8 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: awaystore.cpp:67
msgid "You have been marked as away"
msgstr ""

View File

@@ -1,3 +1,8 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: block_motd.cpp:26
msgid "[<server>]"
msgstr ""

View File

@@ -1,3 +1,8 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: bouncedcc.cpp:101 bouncedcc.cpp:119 bouncedcc.cpp:121
msgctxt "list"
msgid "Type"

View File

@@ -1,3 +1,8 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: buffextras.cpp:45
msgid "Server"
msgstr ""

View File

@@ -1,3 +1,8 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: chansaver.cpp:91
msgid "Keeps config up-to-date when user joins/parts."
msgstr ""

View File

@@ -1,3 +1,8 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: clearbufferonmsg.cpp:160
msgid "Clears all channel and query buffers whenever the user does something"
msgstr ""

View File

@@ -1,3 +1,8 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: clientnotify.cpp:47
msgid "<message|notice|off>"
msgstr ""

View File

@@ -1,3 +1,8 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: controlpanel.cpp:51 controlpanel.cpp:63
msgctxt "helptable"
msgid "Type"

View File

@@ -1,3 +1,8 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: crypt.cpp:198
msgid "<#chan|Nick>"
msgstr ""

View File

@@ -1,3 +1,8 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: ctcpflood.cpp:25 ctcpflood.cpp:27
msgid "<limit>"
msgstr ""

View File

@@ -1,3 +1,8 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: cyrusauth.cpp:42
msgid "Shows current settings"
msgstr ""

View File

@@ -1,3 +1,8 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: dcc.cpp:88
msgid "<nick> <file>"
msgstr ""

View File

@@ -1,3 +1,8 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: disconkick.cpp:32
msgid "You have been disconnected from the IRC server"
msgstr ""

View File

@@ -1,3 +1,8 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: fail2ban.cpp:25
msgid "[minutes]"
msgstr ""

View File

@@ -1,3 +1,8 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: flooddetach.cpp:30
msgid "Show current limits"
msgstr ""

View File

@@ -1,3 +1,8 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: identfile.cpp:30
msgid "Show file name"
msgstr ""

View File

@@ -1,3 +1,8 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: imapauth.cpp:168
msgid "[ server [+]port [ UserFormatString ] ]"
msgstr ""

View File

@@ -1,3 +1,8 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: keepnick.cpp:39
msgid "Try to get your primary nick"
msgstr ""

View File

@@ -1,3 +1,8 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: kickrejoin.cpp:56
msgid "<secs>"
msgstr ""

View File

@@ -1,3 +1,8 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: log.cpp:59
msgid "<rules>"
msgstr ""

View File

@@ -1,3 +1,8 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: missingmotd.cpp:36
msgid "Sends 422 to clients when they login"
msgstr ""

View File

@@ -1,3 +1,8 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: modperl.cpp:382
msgid "Loads perl scripts as ZNC modules"
msgstr ""

View File

@@ -1,3 +1,8 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: modpython.cpp:512
msgid "Loads python scripts as ZNC modules"
msgstr ""

View File

@@ -1,3 +1,8 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: modules_online.cpp:117
msgid "Makes ZNC's *modules to be \"online\"."
msgstr ""

View File

@@ -1,3 +1,8 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: nickserv.cpp:31
msgid "Password set"
msgstr ""

View File

@@ -1,3 +1,8 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: notify_connect.cpp:24
msgid "attached"
msgstr ""

View File

@@ -1,3 +1,8 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: partyline.cpp:60
msgid "There are no open channels."
msgstr ""

View File

@@ -1,3 +1,8 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: perleval.pm:23
msgid "Evaluates perl code"
msgstr ""

View File

@@ -1,3 +1,8 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: pyeval.py:49
msgid "You must have admin privileges to load this module."
msgstr ""

View File

@@ -1,3 +1,8 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: raw.cpp:43
msgid "View all of the raw traffic"
msgstr ""

View File

@@ -1,3 +1,8 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: route_replies.cpp:209
msgid "[yes|no]"
msgstr ""

View File

@@ -1,3 +1,8 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: sample.cpp:31
msgid "Sample job cancelled"
msgstr ""

View File

@@ -1,3 +1,8 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: samplewebapi.cpp:59
msgid "Sample Web API module."
msgstr ""

View File

@@ -1,3 +1,8 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: savebuff.cpp:65
msgid "<password>"
msgstr ""

View File

@@ -1,3 +1,8 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: shell.cpp:37
msgid "Failed to execute: {1}"
msgstr ""

View File

@@ -1,3 +1,8 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: simple_away.cpp:56
msgid "[<text>]"
msgstr ""

View File

@@ -1,3 +1,8 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: stripcontrols.cpp:63
msgid ""
"Strips control codes (Colors, Bold, ..) from channel and private messages."

View File

@@ -1,3 +1,8 @@
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: watch.cpp:334
msgid "All entries cleared."
msgstr ""

View File

@@ -55,17 +55,20 @@ for tmpl_dir in args.tmpl_dirs:
else:
tmpl.append('msgstr ""')
tmpl.append('')
if tmpl:
with open(tmpl_pot, 'wt', encoding='utf8') as f:
print('msgid ""', file=f)
print('msgstr ""', file=f)
print(r'"Content-Type: text/plain; charset=UTF-8\n"', file=f)
print(r'"Content-Transfer-Encoding: 8bit\n"', file=f)
print(file=f)
for line in tmpl:
print(line, file=f)
subprocess.check_call(['msguniq', '-o', tmpl_uniq_pot, tmpl_pot])
pot_list.append(tmpl_uniq_pot)
# Bundle header to .tmpl, even if there were no .tmpl files.
# Some .tmpl files contain non-ASCII characters, and the header is needed
# anyway, because it's omitted from xgettext call below.
with open(tmpl_pot, 'wt', encoding='utf8') as f:
print('msgid ""', file=f)
print('msgstr ""', file=f)
print(r'"Content-Type: text/plain; charset=UTF-8\n"', file=f)
print(r'"Content-Transfer-Encoding: 8bit\n"', file=f)
print(file=f)
for line in tmpl:
print(line, file=f)
subprocess.check_call(['msguniq', '--force-po', '-o', tmpl_uniq_pot, tmpl_pot])
pot_list.append(tmpl_uniq_pot)
# .cpp
main_pot = args.tmp_prefix + '_main.pot'