Update translations

This commit is contained in:
Star Brilliant 2013-09-30 23:27:33 +08:00
parent 7e0b0cf2eb
commit 4701fc7cd3
13 changed files with 141 additions and 17 deletions

View File

@ -10,7 +10,7 @@ import sys
import xml.dom.minidom
gettext.install('messages', 'locale')
gettext.install('danmaku2ass', 'locale')
def ProcessComments(comments, f, width, height, bottomReserved, fontface, fontsize, alpha, lifetime, reduced):
@ -212,15 +212,15 @@ def ConvertType2(row, height, bottomReserved):
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('-o', '--output', metavar='OUTPUT', help=_('Output file'))
parser.add_argument('-s', '--size', metavar='WIDTHxHEIGHT', required=True, help=_('Stage size in pixels'))
parser.add_argument('-fn', '--font', metavar='FONT', help=_('Specify font face'), default=_('(FONT) sans-serif')[7:])
parser.add_argument('-fs', '--fontsize', metavar='SIZE', help=(_('Default font size')), type=float, default=25.0)
parser.add_argument('-a', '--alpha', metavar='ALPHA', help=_('Text opaque'), type=float, default=1.0)
parser.add_argument('-l', '--lifetime', metavar='SECONDS', help=_('Duration of comment display'), type=float, default=5.0)
parser.add_argument('-p', '--protect', metavar='HEIGHT', help=_('Reserve blank on the bottom of the stage'), type=int, default=0)
parser.add_argument('-o', '--output', metavar=_('OUTPUT'), help=_('Output file'))
parser.add_argument('-s', '--size', metavar=_('WIDTHxHEIGHT'), required=True, help=_('Stage size in pixels'))
parser.add_argument('-fn', '--font', metavar=_('FONT'), help=_('Specify font face'), default=_('(FONT) sans-serif')[7:])
parser.add_argument('-fs', '--fontsize', metavar=_('SIZE'), help=(_('Default font size')), type=float, default=25.0)
parser.add_argument('-a', '--alpha', metavar=_('ALPHA'), help=_('Text opaque'), type=float, default=1.0)
parser.add_argument('-l', '--lifetime', metavar=_('SECONDS'), help=_('Duration of comment display'), type=float, default=5.0)
parser.add_argument('-p', '--protect', metavar=_('HEIGHT'), help=_('Reserve blank on the bottom of the stage'), type=int, default=0)
parser.add_argument('-r', '--reduce', action='store_true', help=_('Reduce the amount of comments if stage is full'))
parser.add_argument('file', metavar='FILE', nargs='+', help=_('Comment file to be processed'))
parser.add_argument('file', metavar=_('FILE'), nargs='+', help=_('Comment file to be processed'))
args = parser.parse_args()
try:
width, height = str(args.size).split('x', 1)

Binary file not shown.

View File

@ -1,8 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: Danmaku2ASS\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-09-20 18:20+0800\n"
"POT-Creation-Date: 2013-09-30 23:13+0800\n"
"Last-Translator: Star Brilliant <m13253@hotmail.com>\n"
"Language: en\n"
"MIME-Version: 1.0\n"
@ -19,6 +18,10 @@ msgstr "Invalid comment: %s"
msgid "Invalid comment: %r"
msgstr "Invalid comment: %r"
#: danmaku2ass.py:215
msgid "OUTPUT"
msgstr "OUTPUT"
#: danmaku2ass.py:215
msgid "Output file"
msgstr "Output file"
@ -27,10 +30,18 @@ msgstr "Output file"
msgid "Stage size in pixels"
msgstr "Stage size in pixels"
#: danmaku2ass.py:216
msgid "WIDTHxHEIGHT"
msgstr "WIDTHxHEIGHT"
#: danmaku2ass.py:217
msgid "(FONT) sans-serif"
msgstr "(FONT) Helvetica"
#: danmaku2ass.py:217
msgid "FONT"
msgstr "FONT"
#: danmaku2ass.py:217
msgid "Specify font face"
msgstr "Specify font face"
@ -39,6 +50,14 @@ msgstr "Specify font face"
msgid "Default font size"
msgstr "Default font size"
#: danmaku2ass.py:218
msgid "SIZE"
msgstr "SIZE"
#: danmaku2ass.py:219
msgid "ALPHA"
msgstr "ALPHA"
#: danmaku2ass.py:219
msgid "Text opaque"
msgstr "Text opaque"
@ -47,6 +66,14 @@ msgstr "Text opaque"
msgid "Duration of comment display"
msgstr "Duration of comment display"
#: danmaku2ass.py:220
msgid "SECONDS"
msgstr "SECONDS"
#: danmaku2ass.py:221
msgid "HEIGHT"
msgstr "HEIGHT"
#: danmaku2ass.py:221
msgid "Reserve blank on the bottom of the stage"
msgstr "Reserve blank on the bottom of the stage"
@ -59,6 +86,10 @@ msgstr "Reduce the amount of comments if stage is full"
msgid "Comment file to be processed"
msgstr "Comment file to be processed"
#: danmaku2ass.py:223
msgid "FILE"
msgstr "FILE"
#: danmaku2ass.py:230
#, python-format
msgid "Invalid stage size: %r"

Binary file not shown.

Binary file not shown.

View File

@ -1,8 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: Danmaku2ASS\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-09-20 18:20+0800\n"
"POT-Creation-Date: 2013-09-30 23:13+0800\n"
"Last-Translator: Star Brilliant <m13253@hotmail.com>\n"
"Language: ja\n"
"MIME-Version: 1.0\n"
@ -19,6 +18,10 @@ msgstr "無効なコメント:%s"
msgid "Invalid comment: %r"
msgstr "無効なコメント:%r"
#: danmaku2ass.py:215
msgid "OUTPUT"
msgstr "出力"
#: danmaku2ass.py:215
msgid "Output file"
msgstr "出力ファイル"
@ -27,10 +30,18 @@ msgstr "出力ファイル"
msgid "Stage size in pixels"
msgstr "ピクセル単位でステージのサイズ"
#: danmaku2ass.py:216
msgid "WIDTHxHEIGHT"
msgstr "幅x高"
#: danmaku2ass.py:217
msgid "(FONT) sans-serif"
msgstr "(FONT) MS PGothic"
#: danmaku2ass.py:217
msgid "FONT"
msgstr "フォント"
#: danmaku2ass.py:217
msgid "Specify font face"
msgstr "フォントを指定する"
@ -39,6 +50,14 @@ msgstr "フォントを指定する"
msgid "Default font size"
msgstr "デフォルトのフォントサイズ"
#: danmaku2ass.py:218
msgid "SIZE"
msgstr "サイズ"
#: danmaku2ass.py:219
msgid "ALPHA"
msgstr "アルファ"
#: danmaku2ass.py:219
msgid "Text opaque"
msgstr "テキストの不透明度"
@ -47,6 +66,14 @@ msgstr "テキストの不透明度"
msgid "Duration of comment display"
msgstr "コメント表示の時間"
#: danmaku2ass.py:220
msgid "SECONDS"
msgstr "秒数"
#: danmaku2ass.py:221
msgid "HEIGHT"
msgstr "高度"
#: danmaku2ass.py:221
msgid "Reserve blank on the bottom of the stage"
msgstr "ステージの下にブランクを予備する"
@ -59,6 +86,10 @@ msgstr "ステージがいっぱいになったのときにコメントの量を
msgid "Comment file to be processed"
msgstr "ファイルが処理されるコメント"
#: danmaku2ass.py:223
msgid "FILE"
msgstr "ファイル"
#: danmaku2ass.py:230
#, python-format
msgid "Invalid stage size: %r"

Binary file not shown.

Binary file not shown.

View File

@ -1,8 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: Danmaku2ASS\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-09-20 18:20+0800\n"
"POT-Creation-Date: 2013-09-30 23:13+0800\n"
"Last-Translator: Star Brilliant <m13253@hotmail.com>\n"
"Language: zh_CN\n"
"MIME-Version: 1.0\n"
@ -19,6 +18,10 @@ msgstr "无效弹幕:%s"
msgid "Invalid comment: %r"
msgstr "无效弹幕:%r"
#: danmaku2ass.py:215
msgid "OUTPUT"
msgstr "输出"
#: danmaku2ass.py:215
msgid "Output file"
msgstr "输出文件"
@ -27,10 +30,18 @@ msgstr "输出文件"
msgid "Stage size in pixels"
msgstr "舞台尺寸的像素数目"
#: danmaku2ass.py:216
msgid "WIDTHxHEIGHT"
msgstr "宽x高"
#: danmaku2ass.py:217
msgid "(FONT) sans-serif"
msgstr "(FONT) 黑体"
#: danmaku2ass.py:217
msgid "FONT"
msgstr "字体"
#: danmaku2ass.py:217
msgid "Specify font face"
msgstr "指定字体名称"
@ -39,6 +50,14 @@ msgstr "指定字体名称"
msgid "Default font size"
msgstr "默认字号"
#: danmaku2ass.py:218
msgid "SIZE"
msgstr "尺寸"
#: danmaku2ass.py:219
msgid "ALPHA"
msgstr "ALPHA"
#: danmaku2ass.py:219
msgid "Text opaque"
msgstr "文字不透明度"
@ -47,6 +66,14 @@ msgstr "文字不透明度"
msgid "Duration of comment display"
msgstr "弹幕显示时长"
#: danmaku2ass.py:220
msgid "SECONDS"
msgstr "秒数"
#: danmaku2ass.py:221
msgid "HEIGHT"
msgstr "高度"
#: danmaku2ass.py:221
msgid "Reserve blank on the bottom of the stage"
msgstr "在舞台底部预留空位"
@ -59,6 +86,10 @@ msgstr "在舞台满时减少弹幕数量"
msgid "Comment file to be processed"
msgstr "将要处理的弹幕文件"
#: danmaku2ass.py:223
msgid "FILE"
msgstr "文件"
#: danmaku2ass.py:230
#, python-format
msgid "Invalid stage size: %r"

Binary file not shown.

Binary file not shown.

View File

@ -1,8 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: Danmaku2ASS\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-09-20 18:20+0800\n"
"POT-Creation-Date: 2013-09-30 23:13+0800\n"
"Last-Translator: Star Brilliant <m13253@hotmail.com>\n"
"Language: zh_TW\n"
"MIME-Version: 1.0\n"
@ -19,6 +18,10 @@ msgstr "無效彈幕:%s"
msgid "Invalid comment: %r"
msgstr "無效彈幕:%r"
#: danmaku2ass.py:215
msgid "OUTPUT"
msgstr "輸出"
#: danmaku2ass.py:215
msgid "Output file"
msgstr "輸出檔案"
@ -27,10 +30,18 @@ msgstr "輸出檔案"
msgid "Stage size in pixels"
msgstr "舞臺尺寸的畫素數目"
#: danmaku2ass.py:216
msgid "WIDTHxHEIGHT"
msgstr "寬x高"
#: danmaku2ass.py:217
msgid "(FONT) sans-serif"
msgstr "(FONT) Microsoft JhengHei"
#: danmaku2ass.py:217
msgid "FONT"
msgstr "字型"
#: danmaku2ass.py:217
msgid "Specify font face"
msgstr "指定字型名稱"
@ -39,6 +50,14 @@ msgstr "指定字型名稱"
msgid "Default font size"
msgstr "默認字型大小"
#: danmaku2ass.py:218
msgid "SIZE"
msgstr "尺寸"
#: danmaku2ass.py:219
msgid "ALPHA"
msgstr "ALPHA"
#: danmaku2ass.py:219
msgid "Text opaque"
msgstr "文字不透明度"
@ -47,6 +66,14 @@ msgstr "文字不透明度"
msgid "Duration of comment display"
msgstr "彈幕顯示時長"
#: danmaku2ass.py:220
msgid "SECONDS"
msgstr "秒數"
#: danmaku2ass.py:221
msgid "HEIGHT"
msgstr "高度"
#: danmaku2ass.py:221
msgid "Reserve blank on the bottom of the stage"
msgstr "在舞臺底部預留空位"
@ -59,6 +86,10 @@ msgstr "在舞臺滿時減少彈幕數量"
msgid "Comment file to be processed"
msgstr "將要處理的彈幕檔案"
#: danmaku2ass.py:223
msgid "FILE"
msgstr "檔案"
#: danmaku2ass.py:230
#, python-format
msgid "Invalid stage size: %r"

Binary file not shown.