From: ueno Date: Fri, 19 Jan 2007 05:45:07 +0000 (+0000) Subject: Translate. X-Git-Tag: riece-3_1_2~38 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=84b8ce91229a773f610737a9b6f36ff1aeb2d097;p=elisp%2Friece.git Translate. --- diff --git a/lisp/riece-000.el b/lisp/riece-000.el index 4651d59..277cae5 100644 --- a/lisp/riece-000.el +++ b/lisp/riece-000.el @@ -38,7 +38,7 @@ (defun riece-handle-001-message (prefix number name string) "RPL_WELCOME \"Welcome to the Internet Relay Network !@\"" (if riece-real-server-name - (error "Already registered")) + (error (riece-mcat "Already registered"))) (setq riece-real-server-name prefix riece-real-nickname name riece-real-userhost nil) @@ -50,8 +50,8 @@ (list riece-dialogue-buffer riece-others-buffer) (concat (substring string 1) "\n")) (if (equal riece-server-name "") - (message "Logging in to IRC server...done") - (message "Logging in to %s...done" riece-server-name)) + (message (riece-mcat "Logging in to IRC server...done")) + (message (riece-mcat "Logging in to %s...done") riece-server-name)) (let ((channel-list riece-startup-channel-list) entry identity) (while channel-list diff --git a/lisp/riece-irc.el b/lisp/riece-irc.el index 631a531..a621c24 100644 --- a/lisp/riece-irc.el +++ b/lisp/riece-irc.el @@ -26,6 +26,7 @@ (require 'riece-filter) (require 'riece-server) +(require 'riece-mcat) (defun riece-irc-open-server (server server-name) (riece-server-keyword-bind server @@ -34,8 +35,8 @@ (coding-system-for-write 'binary) process) (if (equal server-name "") - (message "Connecting to IRC server...") - (message "Connecting to %s..." server-name)) + (message (riece-mcat "Connecting to IRC server...")) + (message (riece-mcat "Connecting to %s...") server-name)) (condition-case error (setq process (funcall function (riece-server-process-name server-name) @@ -43,33 +44,37 @@ host service)) (error (if (equal server-name "") - (message "Connecting to IRC server...failed: %S" error) - (message "Connecting to %s...failed: %S" server-name error)) + (message (riece-mcat "Connecting to IRC server...failed: %S") + error) + (message (riece-mcat "Connecting to %s...failed: %S") server-name + error)) (signal (car error) (cdr error)))) (if (equal server-name "") - (message "Connecting to IRC server...done") - (message "Connecting to %s...done" server-name)) + (message (riece-mcat "Connecting to IRC server...done")) + (message (riece-mcat "Connecting to %s...done") server-name)) (riece-reset-process-buffer process) (with-current-buffer (process-buffer process) (setq riece-server-name server-name)) (set-process-sentinel process 'riece-sentinel) (set-process-filter process 'riece-filter) (if (equal server-name "") - (message "Logging in to IRC server...") - (message "Logging in to %s..." server-name)) + (message (riece-mcat "Logging in to IRC server...")) + (message (riece-mcat "Logging in to %s...") server-name)) (if riece-reconnect-with-password ;password incorrect or not set. (unwind-protect (setq password (condition-case nil (let (inhibit-quit) (if (equal server-name "") - (riece-read-passwd "Password: ") - (riece-read-passwd (format "Password for %s: " - server-name)))) + (riece-read-passwd (riece-mcat "Password: ")) + (riece-read-passwd + (format (riece-mcat "Password for %s: ") + server-name)))) (quit (if (equal server-name "") - (message "Password: Quit") - (message "Password for %s: Quit" server-name)) + (message (riece-mcat "Password: Quit")) + (message (riece-mcat "Password for %s: Quit") + server-name)) 'quit))) (setq riece-reconnect-with-password nil))) (if (eq password 'quit) @@ -100,15 +105,15 @@ (let ((server-name (with-current-buffer (process-buffer process) riece-server-name))) (if (equal server-name "") - (message "Sending QUIT...") - (message "Sending QUIT to \"%s\"..." server-name)) + (message (riece-mcat "Sending QUIT...")) + (message (riece-mcat "Sending QUIT to \"%s\"...") server-name)) (riece-process-send-string process (if message (format "QUIT :%s\r\n" message) "QUIT\r\n")) (if (equal server-name "") - (message "Sending QUIT...done") - (message "Sending QUIT to \"%s\"...done" server-name)))) + (message (riece-mcat "Sending QUIT...done")) + (message (riece-mcat "Sending QUIT to \"%s\"...done") server-name)))) (provide 'riece-irc) diff --git a/lisp/riece-mcat-japanese.el b/lisp/riece-mcat-japanese.el index 91d9e56..6488e89 100644 --- a/lisp/riece-mcat-japanese.el +++ b/lisp/riece-mcat-japanese.el @@ -1,6 +1,25 @@ ;;; -*- coding: iso-2022-jp -*- (defconst riece-mcat-japanese-alist - '(("Really quit IRC? " . "本当にIRCをやめますか? "))) + '(("Sending QUIT...done" . "QUIT を送信しています...完了") + ("Sending QUIT..." . "QUIT を送信しています...") + ("Sending QUIT to \"%s\"...done" . "\"%s\" に QUIT を送信しています...完了") + ("Sending QUIT to \"%s\"..." . "\"%s\" に QUIT を送信しています...") + ("Password: Quit" . "パスワード: 中止") + ("Password: " . "パスワード: ") + ("Password for %s: Quit" . "%s のパスワード: 中止") + ("Password for %s: " . "%s のパスワード: ") + ("Logging in to IRC server..." . "IRC サーバにログインしています...") + ("Logging in to %s..." . "%s にログインしています...") + ("Connecting to IRC server...failed: %S" . "IRC サーバに接続しています...失敗: %S") + ("Connecting to IRC server...done" . "IRC サーバに接続しています...完了") + ("Connecting to IRC server..." . "IRC サーバに接続しています...") + ("Connecting to %s...failed: %S" . "%s に接続しています...失敗: %S") + ("Connecting to %s...done" . "%s に接続しています...完了") + ("Connecting to %s..." . "%s に接続しています...") + ("Logging in to IRC server...done" . "IRC サーバにログインしています...完了") + ("Logging in to %s...done" . "%s にログインしています...完了") + ("Already registered" . "登録済みです") + ("Really quit IRC? " . "本当にIRCをやめますか? "))) (provide 'riece-mcat-japanese)