diff --git a/indent-2.2.9-zh_TW.patch b/indent-2.2.9-zh_TW.patch new file mode 100644 index 0000000..f26daeb --- /dev/null +++ b/indent-2.2.9-zh_TW.patch @@ -0,0 +1,580 @@ +diff -burpN indent-2.2.9/po/LINGUAS indent-2.2.9-po/po/LINGUAS +--- indent-2.2.9/po/LINGUAS 2002-12-16 17:03:13.000000000 +0100 ++++ indent-2.2.9-po/po/LINGUAS 2006-02-03 15:18:28.000000000 +0100 +@@ -1 +1 @@ +-ca da de eo et fi fr gl hu it ja ko nl pl pt_BR ru sk sv tr zh_TW.Big5 ++ca da de eo et fi fr gl hu it ja ko nl pl pt_BR ru sk sv tr zh_TW +diff -burpN indent-2.2.9/po/zh_TW.Big5.po indent-2.2.9-po/po/zh_TW.Big5.po +--- indent-2.2.9/po/zh_TW.Big5.po 2002-12-16 17:14:37.000000000 +0100 ++++ indent-2.2.9-po/po/zh_TW.Big5.po 1970-01-01 01:00:00.000000000 +0100 +@@ -1,283 +0,0 @@ +-# Language file for GNU indent (use indent.pot as template). +-# Copyright (C) 2001 Free Software Foundation, Inc. +-# Carlo Wood , 2001. +-# +-msgid "" +-msgstr "" +-"Project-Id-Version: indent 2.2.7\n" +-"POT-Creation-Date: 2002-12-16 16:12+0000\n" +-"PO-Revision-Date: 2001-09-05 08:38+0800\n" +-"Last-Translator: Franklin W. \n" +-"Language-Team: zh_TW.Big5 \n" +-"MIME-Version: 1.0\n" +-"Content-Type: text/plain; charset=big5\n" +-"Content-Transfer-Encoding: 8bit\n" +- +-#: src/args.c:543 +-msgid "usage: indent file [-o outfile ] [ options ]\n" +-msgstr "用法:indent <輸入檔> [-o 輸出檔] [選項]\n" +- +-#: src/args.c:544 +-msgid " indent file1 file2 ... fileN [ options ]\n" +-msgstr " indent <輸入檔1> <輸入檔2> ... [ 選項 ]\n" +- +-#: src/args.c:609 +-#, c-format +-msgid "indent: missing argument to parameter %s\n" +-msgstr "indent: 找不到 %s 的參數\n" +- +-#: src/args.c:717 +-#, c-format +-msgid "indent: unknown option \"%s\"\n" +-msgstr "indent: 未知的選項 \"%s\"\n" +- +-#: src/args.c:728 +-#, c-format +-msgid "option: %s\n" +-msgstr "選項:%s\n" +- +-#: src/args.c:744 +-#, c-format +-msgid "GNU indent %s\n" +-msgstr "" +- +-#: src/args.c:827 +-#, c-format +-msgid "indent: option ``%s'' requires a numeric parameter\n" +-msgstr "indent: ``%s'' 選項需要一個數字做為參數\n" +- +-#: src/args.c:836 +-#, c-format +-msgid "indent: set_option: internal error: p_type %d\n" +-msgstr "indent: 內部錯誤:set_option 函式中出現錯誤的 proto type %d\n" +- +-#: src/args.c:892 +-#, fuzzy +-msgid "Profile contains an unterminated comment" +-msgstr "設定檔中含有錯誤的字元" +- +-#: src/args.c:929 +-msgid "Profile contains unpalatable characters" +-msgstr "設定檔中含有錯誤的字元" +- +-#: src/backup.c:404 +-msgid "indent: Strange version-control value\n" +-msgstr "indent: 版本控制資訊有錯誤\n" +- +-#: src/backup.c:405 +-msgid "indent: Using numbered-existing\n" +-msgstr "indent: 將改採現存的版本號\n" +- +-#: src/backup.c:434 +-#, c-format +-msgid "indent: Can't make backup filename of %s\n" +-msgstr "indent: 無法產生 %s 的備份檔\n" +- +-#: src/backup.c:442 +-#, c-format +-msgid "Can't open backup file %s" +-msgstr "無法開啟備份檔 %s" +- +-#: src/backup.c:449 +-#, c-format +-msgid "Can't write to backup file %s" +-msgstr "無法寫入備份檔 %s" +- +-#: src/backup.c:463 +-#, c-format +-msgid "Can't preserve modification time on backup file %s" +-msgstr "無法在備份檔 %s 中保留最後變更日期" +- +-#: src/globs.c:41 src/globs.c:64 +-msgid "indent: Virtual memory exhausted.\n" +-msgstr "indent: 虛擬記憶體已用完\n" +- +-#: src/globs.c:79 +-#, c-format +-msgid "indent: %s:%d: %s:" +-msgstr "" +- +-#: src/globs.c:93 +-msgid "indent: Fatal Error: " +-msgstr "indent: 嚴重錯誤:" +- +-#: src/globs.c:103 +-msgid "indent: System Error: " +-msgstr "indent: 系統錯誤:" +- +-#: src/globs.h:25 +-msgid "Warning" +-msgstr "" +- +-#: src/globs.h:29 +-msgid "Error" +-msgstr "" +- +-#: src/indent.c:156 +-msgid "Ran out of memory" +-msgstr "記憶體已用完" +- +-#: src/indent.c:588 src/indent.c:1248 +-#, c-format +-msgid "Extra %c" +-msgstr "多的字元 %c" +- +-#: src/indent.c:1352 src/indent.c:1378 src/indent.c:2438 +-msgid "Line broken" +-msgstr "有一至數行被分割,請確認" +- +-#: src/indent.c:1969 +-msgid "Unmatched #else" +-msgstr "#else 找不到相對應的關鍵字" +- +-#: src/indent.c:1970 +-msgid "Unmatched #elif" +-msgstr "#elif 找不到相對應的關鍵字" +- +-#: src/indent.c:1997 +-msgid "Unmatched #endif" +-msgstr "#endif 找不到相對應的關鍵字" +- +-#: src/indent.c:2381 +-msgid "EOF encountered in comment" +-msgstr "在註解中碰到檔案結尾" +- +-#: src/indent.c:2610 +-msgid "Unexpected end of file" +-msgstr "檔案結尾有問題" +- +-#: src/indent.c:2616 +-#, c-format +-msgid "There were %d non-blank output lines and %d comments\n" +-msgstr "已編排 %d 個非空白行與 %d 個註解\n" +- +-#: src/indent.c:2620 +-#, c-format +-msgid "(Lines with comments)/(Lines with code): %6.3f\n" +-msgstr "註解行與程式碼行的比例為:%6.3f\n" +- +-#: src/indent.c:2644 +-#, fuzzy +-msgid "Line broken 2" +-msgstr "有一至數行被分割,請確認" +- +-#: src/indent.c:2846 +-#, c-format +-msgid "indent: only one output file (2nd was %s)\n" +-msgstr "indent: 只能有一個輸出檔 (您指定了第二個輸出檔為 %s)\n" +- +-#: src/indent.c:2855 src/indent.c:2881 +-msgid "indent: only one input file when output file is specified\n" +-msgstr "indent: 指定輸出檔時,只能有一個輸入檔\n" +- +-#: src/indent.c:2869 src/indent.c:2916 +-msgid "indent: can't have filenames when specifying standard input\n" +-msgstr "indent: 指定使用標準輸入時,不能附帶輸入檔名\n" +- +-#: src/indent.c:2889 +-msgid "indent: only one input file when stdout is used\n" +-msgstr "indent: 使用標準輸出時,只能有一個輸入檔\n" +- +-#: src/indent.c:3103 +-#, c-format +-msgid "Read profile %s\n" +-msgstr "讀取設定檔 %s\n" +- +-#: src/io.c:187 +-msgid "Internal buffering error" +-msgstr "內部暫存器出現錯誤" +- +-#: src/io.c:349 +-#, c-format +-msgid "Can't open input file %s" +-msgstr "無法開啟輸入檔 %s" +- +-#: src/io.c:354 +-#, c-format +-msgid "Can't stat input file %s" +-msgstr "無法找到輸入檔 %s 的資訊" +- +-#: src/io.c:359 +-#, c-format +-msgid "Warning: Zero-length file %s" +-msgstr "警告:檔案 %s 沒有內容" +- +-#: src/io.c:367 +-#, c-format +-msgid "File %s is too big to read" +-msgstr "檔案 %s 太大,無法讀取" +- +-#: src/io.c:375 +-#, c-format +-msgid "System problem reading file %s" +-msgstr "讀取檔案 %s 時發生系統問題" +- +-#: src/io.c:399 +-#, c-format +-msgid "Error reading input file %s" +-msgstr "讀取輸入檔 %s 時發生錯誤" +- +-#: src/io.c:404 +-#, c-format +-msgid "Error closeing input file %s" +-msgstr "關閉輸入檔 %s 時發生問題" +- +-#: src/io.c:588 +-#, c-format +-msgid "Warning: File %s contains NULL-characters\n" +-msgstr "警告:檔案 %s 包含空字元(NULL-char)\n" +- +-#: src/lexi.c:756 +-msgid "Unterminated character constant" +-msgstr "可能少掉一個字元單引號" +- +-#: src/lexi.c:757 +-msgid "Unterminated string constant" +-msgstr "可能少掉一個字串雙引號" +- +-#: src/lexi.c:999 +-#, c-format +-msgid "old style assignment ambiguity in \"=%c\". Assuming \"= %c\"\n" +-msgstr "" +-"有疑義的指定敘述 \"=%c\",可能為舊式的寫法。indent 將假設它為 \"= %c\"\n" +- +-#: src/output.c:1148 +-#, c-format +-msgid "indent: can't create %s\n" +-msgstr "indent: 無法產生 %s\n" +- +-#: src/output.c:1187 +-#, c-format +-msgid "Can't close output file %s" +-msgstr "無法關閉輸出檔 %s" +- +-#: src/output.c:1200 +-#, c-format +-msgid "Can't preserve modification time on output file %s" +-msgstr "無法在輸出檔 %s 保留最後變更日期" +- +-#: src/parse.c:399 +-msgid "Unmatched 'else'" +-msgstr "else 找不到相對應的 if" +- +-#: src/parse.c:425 +-msgid "Stmt nesting error." +-msgstr "巢狀敘述有錯誤。" +- +-#: src/parse.c:467 +-msgid "Unknown code to parser" +-msgstr "無法剖析的程式碼" +- +-#: src/parse.c:477 +-#, c-format +-msgid "ParseStack [%d]:\n" +-msgstr "" +- +-#: src/parse.c:481 +-#, c-format +-msgid " stack[%d] => stack: %d ind_level: %d\n" +-msgstr "" +- +-#: src/wildexp.c:90 +-msgid "CANNOT FIND '@' FILE!" +-msgstr "無法找到 '@' 檔案。" +diff -burpN indent-2.2.9/po/zh_TW.po indent-2.2.9-po/po/zh_TW.po +--- indent-2.2.9/po/zh_TW.po 1970-01-01 01:00:00.000000000 +0100 ++++ indent-2.2.9-po/po/zh_TW.po 2006-02-03 15:18:19.000000000 +0100 +@@ -0,0 +1,283 @@ ++# Language file for GNU indent (use indent.pot as template). ++# Copyright (C) 2001 Free Software Foundation, Inc. ++# Carlo Wood , 2001. ++# Franklin W. , 2002 ++# Wei-Lun Chao , 2004 ++msgid "" ++msgstr "" ++"Project-Id-Version: indent 2.2.9\n" ++"POT-Creation-Date: 2002-12-16 16:12+0000\n" ++"PO-Revision-Date: 2006-02-03 15:18+0100\n" ++"Last-Translator: Wei-Lun Chao \n" ++"Language-Team: zh_TW \n" ++"MIME-Version: 1.0\n" ++"Content-Type: text/plain; charset=UTF-8\n" ++"Content-Transfer-Encoding: 8bit\n" ++ ++#: src/args.c:543 ++msgid "usage: indent file [-o outfile ] [ options ]\n" ++msgstr "冽嚗indent <頛詨交> [-o 頛詨箸] [賊]\n" ++ ++#: src/args.c:544 ++msgid " indent file1 file2 ... fileN [ options ]\n" ++msgstr " indent <頛詨交1> <頛詨交2> ... [ 賊 ]\n" ++ ++#: src/args.c:609 ++#, c-format ++msgid "indent: missing argument to parameter %s\n" ++msgstr "indent: 曆 %s 稞n" ++ ++#: src/args.c:717 ++#, c-format ++msgid "indent: unknown option \"%s\"\n" ++msgstr "indent: 芰亦賊 \"%s\"\n" ++ ++#: src/args.c:728 ++#, c-format ++msgid "option: %s\n" ++msgstr "賊嚗%s\n" ++ ++#: src/args.c:744 ++#, c-format ++msgid "GNU indent %s\n" ++msgstr "GNU indent %s\n" ++ ++#: src/args.c:827 ++#, c-format ++msgid "indent: option ``%s'' requires a numeric parameter\n" ++msgstr "indent: ``%s'' 賊閬銝詨箏稞n" ++ ++#: src/args.c:836 ++#, c-format ++msgid "indent: set_option: internal error: p_type %d\n" ++msgstr "indent: 折券航炊嚗set_option 賢銝剖箇暸航炊 proto type %d\n" ++ ++#: src/args.c:892 ++#, fuzzy ++msgid "Profile contains an unterminated comment" ++msgstr "閮剖瑼銝剖急航炊摮" ++ ++#: src/args.c:929 ++msgid "Profile contains unpalatable characters" ++msgstr "閮剖瑼銝剖急航炊摮" ++ ++#: src/backup.c:404 ++msgid "indent: Strange version-control value\n" ++msgstr "indent: 祆批嗉閮航炊\n" ++ ++#: src/backup.c:405 ++msgid "indent: Using numbered-existing\n" ++msgstr "indent: 撠寞∠曉祈\n" ++ ++#: src/backup.c:434 ++#, c-format ++msgid "indent: Can't make backup filename of %s\n" ++msgstr "indent: ⊥Y %s 隞賣\n" ++ ++#: src/backup.c:442 ++#, c-format ++msgid "Can't open backup file %s" ++msgstr "⊥隞賣 %s" ++ ++#: src/backup.c:449 ++#, c-format ++msgid "Can't write to backup file %s" ++msgstr "⊥撖怠亙隞賣 %s" ++ ++#: src/backup.c:463 ++#, c-format ++msgid "Can't preserve modification time on backup file %s" ++msgstr "⊥典隞賣 %s 銝凋敺霈湔交" ++ ++#: src/globs.c:41 src/globs.c:64 ++msgid "indent: Virtual memory exhausted.\n" ++msgstr "indent: 祈園撌脩典\n" ++ ++#: src/globs.c:79 ++#, c-format ++msgid "indent: %s:%d: %s:" ++msgstr "indent: %s:%d: %s:" ++ ++#: src/globs.c:93 ++msgid "indent: Fatal Error: " ++msgstr "indent: 湧航炊嚗" ++ ++#: src/globs.c:103 ++msgid "indent: System Error: " ++msgstr "indent: 蝟餌絞航炊嚗" ++ ++#: src/globs.h:25 ++msgid "Warning" ++msgstr "霅血" ++ ++#: src/globs.h:29 ++msgid "Error" ++msgstr "航炊" ++ ++#: src/indent.c:156 ++msgid "Ran out of memory" ++msgstr "閮園撌脩典" ++ ++#: src/indent.c:588 src/indent.c:1248 ++#, c-format ++msgid "Extra %c" ++msgstr "憭摮 %c" ++ ++#: src/indent.c:1352 src/indent.c:1378 src/indent.c:2438 ++msgid "Line broken" ++msgstr "銝單詨鋡怠莎隢蝣箄" ++ ++#: src/indent.c:1969 ++msgid "Unmatched #else" ++msgstr "#else 曆啁詨萄" ++ ++#: src/indent.c:1970 ++msgid "Unmatched #elif" ++msgstr "#elif 曆啁詨萄" ++ ++#: src/indent.c:1997 ++msgid "Unmatched #endif" ++msgstr "#endif 曆啁詨萄" ++ ++#: src/indent.c:2381 ++msgid "EOF encountered in comment" ++msgstr "刻酉閫銝剔1唳獢蝯撠" ++ ++#: src/indent.c:2610 ++msgid "Unexpected end of file" ++msgstr "瑼獢蝯撠暹憿" ++ ++#: src/indent.c:2616 ++#, c-format ++msgid "There were %d non-blank output lines and %d comments\n" ++msgstr "撌脩楊 %d 蝛箇賢 %d 閮餉圾\n" ++ ++#: src/indent.c:2620 ++#, c-format ++msgid "(Lines with comments)/(Lines with code): %6.3f\n" ++msgstr "閮餉圾蝔撘蝣澆瘥靘綽%6.3f\n" ++ ++#: src/indent.c:2644 ++#, fuzzy ++msgid "Line broken 2" ++msgstr "銝單詨鋡怠莎隢蝣箄" ++ ++#: src/indent.c:2846 ++#, c-format ++msgid "indent: only one output file (2nd was %s)\n" ++msgstr "indent: 芾賣銝頛詨箸 (冽摰鈭蝚砌頛詨箸 %s)\n" ++ ++#: src/indent.c:2855 src/indent.c:2881 ++msgid "indent: only one input file when output file is specified\n" ++msgstr "indent: 摰頛詨箸嚗芾賣銝頛詨交\n" ++ ++#: src/indent.c:2869 src/indent.c:2916 ++msgid "indent: can't have filenames when specifying standard input\n" ++msgstr "indent: 摰雿輻冽皞頛詨交嚗銝賡撣嗉撓交\n" ++ ++#: src/indent.c:2889 ++msgid "indent: only one input file when stdout is used\n" ++msgstr "indent: 雿輻冽皞頛詨箸嚗芾賣銝頛詨交\n" ++ ++#: src/indent.c:3103 ++#, c-format ++msgid "Read profile %s\n" ++msgstr "霈閮剖瑼 %s\n" ++ ++#: src/io.c:187 ++msgid "Internal buffering error" ++msgstr "折冽怠典箇暸航炊" ++ ++#: src/io.c:349 ++#, c-format ++msgid "Can't open input file %s" ++msgstr "⊥頛詨交 %s" ++ ++#: src/io.c:354 ++#, c-format ++msgid "Can't stat input file %s" ++msgstr "⊥曉啗撓交 %s 鞈閮" ++ ++#: src/io.c:359 ++#, c-format ++msgid "Warning: Zero-length file %s" ++msgstr "霅血嚗瑼獢 %s 瘝批捆" ++ ++#: src/io.c:367 ++#, c-format ++msgid "File %s is too big to read" ++msgstr "瑼獢 %s 憭芸之嚗⊥霈" ++ ++#: src/io.c:375 ++#, c-format ++msgid "System problem reading file %s" ++msgstr "霈瑼獢 %s 潛蝟餌絞憿" ++ ++#: src/io.c:399 ++#, c-format ++msgid "Error reading input file %s" ++msgstr "霈頛詨交 %s 潛航炊" ++ ++#: src/io.c:404 ++#, c-format ++msgid "Error closeing input file %s" ++msgstr "頛詨交 %s 潛憿" ++ ++#: src/io.c:588 ++#, c-format ++msgid "Warning: File %s contains NULL-characters\n" ++msgstr "霅血嚗瑼獢 %s 怎征摮嚗NULL-char嚗\n" ++ ++#: src/lexi.c:756 ++msgid "Unterminated character constant" ++msgstr "航賢銝摮桀" ++ ++#: src/lexi.c:757 ++msgid "Unterminated string constant" ++msgstr "航賢銝摮銝脤撘" ++ ++#: src/lexi.c:999 ++#, c-format ++msgid "old style assignment ambiguity in \"=%c\". Assuming \"= %c\"\n" ++msgstr "蝢拍摰餈 \"=%c\"嚗航賜箄撘撖急indent 撠閮剖 \"= %c\"\n" ++ ++#: src/output.c:1148 ++#, c-format ++msgid "indent: can't create %s\n" ++msgstr "indent: ⊥Y %s\n" ++ ++#: src/output.c:1187 ++#, c-format ++msgid "Can't close output file %s" ++msgstr "⊥頛詨箸 %s" ++ ++#: src/output.c:1200 ++#, c-format ++msgid "Can't preserve modification time on output file %s" ++msgstr "⊥刻撓箸 %s 靽敺霈湔交" ++ ++#: src/parse.c:399 ++msgid "Unmatched 'else'" ++msgstr "else 曆啁詨 if" ++ ++#: src/parse.c:425 ++msgid "Stmt nesting error." ++msgstr "撌Y餈唳航炊" ++ ++#: src/parse.c:467 ++msgid "Unknown code to parser" ++msgstr "⊥蝔撘蝣" ++ ++#: src/parse.c:477 ++#, c-format ++msgid "ParseStack [%d]:\n" ++msgstr " [%d]:\n" ++ ++#: src/parse.c:481 ++#, c-format ++msgid " stack[%d] => stack: %d ind_level: %d\n" ++msgstr " [%d] => : %d 撅斤: %d\n" ++ ++#: src/wildexp.c:90 ++msgid "CANNOT FIND '@' FILE!" ++msgstr "⊥曉 '@' 瑼獢" diff --git a/indent.spec b/indent.spec index 661bcb9..8b7fb0e 100644 --- a/indent.spec +++ b/indent.spec @@ -1,7 +1,7 @@ Summary: A GNU program for formatting C code. Name: indent Version: 2.2.9 -Release: 11 +Release: 12 License: GPL Group: Applications/Text URL: http://www.gnu.org/software/indent/ @@ -11,6 +11,7 @@ Patch2: indent-2.2.9-gcc4.patch Patch3: indent-2.2.9-explicits.patch Patch4: indent-2.2.9-cdw.patch Patch5: indent-2.2.9-lcall.patch +Patch6: indent-2.2.9-zh_TW.patch Prereq: /sbin/install-info BuildRoot: %{_tmppath}/%{name}-%{version}-root @@ -30,6 +31,7 @@ you want a program to format your code. %patch3 -p1 %patch4 -p1 %patch5 -p1 +%patch6 -p1 %build @@ -68,7 +70,10 @@ fi %changelog -* Wed Feb 1 2006 Petr Machata 2.2.9-11 +* Wed Feb 02 2006 Petr Machata 2.2.9-12 +- Adding Wei-Lun Chao's zh_TW UTF-8 messages (#134044) + +* Wed Feb 01 2006 Petr Machata 2.2.9-11 - Setting LC_ALL instead of LC_MESSAGES in order to fix output of KOI8-R characters. (#134044)