R.A. Epigonos et al.

[WeeChat] 開発版のインストールと翻訳

とりあえずめも。gitで開発版を入手して、CMakeでコンパイルと翻訳作業を行ってみる。本気の翻訳はまた今度。

パイプを使うと下のようになる。hoge1は標準入力から整形されたデータを受け取り、標準出力に処理済のデータを出力する。hoge1に渡せるデータのフォーマットを崩すことが出来ないため、hoge0でhoge1の入力データを作ると、hoge2はhoge0が整形のために落としたデータを受け取ることが出来ない。

$ mkdir git-weechat0
$ cd git-weechat0/
$ git clone git://git.sv.gnu.org/weechat.git
Cloning into weechat...
remote: Counting objects: 54198, done.
remote: Compressing objects: 100% (10310/10310), done.
remote: Total 54198 (delta 45465), reused 52213 (delta 43856)
Receiving objects: 100% (54198/54198), 19.79 MiB | 1.73 MiB/s, done.
Resolving deltas: 100% (45465/45465), done.

poディレクトリに移動してpoファイルを作成

$ cd weechat/po/
$ msginit -i weechat.pot -l ja -o ja.po
The new message catalog should contain your email address, so that users can
give you feedback about the translations, and so that maintainers can contact
you in case of unexpected technical problems.

Is the following your email address?
  *************************
Please confirm by pressing Return, or enter your email address.
i38w7i3@yahoo.co.jp
Retrieving http://translationproject.org/team/index.html... done.
A translation team for your language (ja) does not exist yet.
If you want to create a new translation team for ja, please visit
  http://www.iro.umontreal.ca/contrib/po/HTML/teams.html
  http://www.iro.umontreal.ca/contrib/po/HTML/leaders.html
  http://www.iro.umontreal.ca/contrib/po/HTML/index.html

Created ja.po.
$ cp ja.po ja.po_org

ja.poの内容を書き換えるために他の翻訳のProject-Id-Versionヘッダを確認。

$ grep "Project-Id-Version" *.po
cs.po:"Project-Id-Version: WeeChat 0.3.7-dev\n"
de.po:"Project-Id-Version: WeeChat 0.3.7-dev\n"
es.po:"Project-Id-Version: WeeChat 0.3.7-dev\n"
fr.po:"Project-Id-Version: WeeChat 0.3.7-dev\n"
hu.po:"Project-Id-Version: WeeChat 0.3.7-dev\n"
it.po:"Project-Id-Version: WeeChat 0.3.7-dev\n"
ja.po:"Project-Id-Version: git-weechat 0\n"
pl.po:"Project-Id-Version: WeeChat 0.3.7-dev\n"
pt_BR.po:"Project-Id-Version: WeeChat 0.3.7-dev\n"
ru.po:"Project-Id-Version: WeeChat 0.3.7-dev\n"

ja.poの内容を書き換えるために他の翻訳のContent-Typeヘッダを確認、

$ grep "Content-Type" *.po
cs.po:"Content-Type: text/plain; charset=UTF-8\n"
de.po:"Content-Type: text/plain; charset=UTF-8\n"
es.po:"Content-Type: text/plain; charset=UTF-8\n"
fr.po:"Content-Type: text/plain; charset=UTF-8\n"
hu.po:"Content-Type: text/plain; charset=UTF-8\n"
it.po:"Content-Type: text/plain; charset=UTF-8\n"
ja.po:"Content-Type: text/plain; charset=ASCII\n"
pl.po:"Content-Type: text/plain; charset=UTF-8\n"
pt_BR.po:"Content-Type: text/plain; charset=UTF-8\n"
ru.po:"Content-Type: text/plain; charset=UTF-8\n"

実際に書き換える。

$ sed 's#.*Project-Id-Version: .*#"Project-Id-Version: WeeChat 0.3.7-dev\\n"#' ja.po_org | sed 's#.*Content-Type: .*#"Content-Type: text/plain; charset=UTF-8\\n"#' > ja.po
$ diff ja.po_org ja.po
7c7
< "Project-Id-Version: git-weechat 0\n"
---
> "Project-Id-Version: WeeChat 0.3.7-dev\n"
15c15
< "Content-Type: text/plain; charset=ASCII\n"
---
> "Content-Type: text/plain; charset=UTF-8\n"
</pre>

<p>適当に翻訳。</p>
<pre>
$ vi ja.po
$ diff ja.po_org ja.po
7c7
< "Project-Id-Version: git-weechat 0\n"
---
> "Project-Id-Version: WeeChat 0.3.7-dev\n"
15c15
< "Content-Type: text/plain; charset=ASCII\n"
---
> "Content-Type: text/plain; charset=UTF-8\n"
24a25,26
> "WeeChat %s 著作権 %s、%s %s にコンパイル\n"
> "著作者 Sebastien Helleu <flashcode@flashtux.org> - %s"

weechatはautotoolとCMakeを使ってコンパイルされる。それぞれの方法に対応した po ファイルの指定方法がある。一つ目がautotool系で./configure.inを編集することがわかる。2つ目がCMakeで./po/CMakeLists.txtを編集することがわかる。

$ cd ../
$ find -print0 | xargs -0 grep fr | grep pl | grep es | grep cs | grep hu
./configure.in:ALL_LINGUAS="fr es cs hu de ru pl it pt_BR"
$ find -print0 | xargs -0 grep fr.po
./src/plugins/irc/irc-config.c:                /* TRANSLATORS: please keep words "client capabilities" between brackets if translation is different (see fr.po) */
./po/weechat.pot:#. TRANSLATORS: please keep words "client capabilities" between brackets if translation is different (see fr.po)
./po/it.po:#. TRANSLATORS: please keep words "client capabilities" between brackets if translation is different (see fr.po)
./po/pl.po:#. TRANSLATORS: please keep words "client capabilities" between brackets if translation is different (see fr.po)
./po/ru.po:#. TRANSLATORS: please keep words "client capabilities" between brackets if translation is different (see fr.po)
./po/cs.po:#. TRANSLATORS: please keep words "client capabilities" between brackets if translation is different (see fr.po)
./po/CMakeLists.txt:  fr.po
./po/de.po:#. TRANSLATORS: please keep words "client capabilities" between brackets if translation is different (see fr.po)
./po/fr.po:#. TRANSLATORS: please keep words "client capabilities" between brackets if translation is different (see fr.po)
./po/ja.po:#. TRANSLATORS: please keep words "client capabilities" between brackets if translation is different (see fr.po)
./po/ja.po_org:#. TRANSLATORS: please keep words "client capabilities" between brackets if translation is different (see fr.po)
./po/es.po:#. TRANSLATORS: please keep words "client capabilities" between brackets if translation is different (see fr.po)
./po/pt_BR.po:#. TRANSLATORS: please keep words "client capabilities" between brackets if translation is different (see fr.po)
./po/hu.po:#. TRANSLATORS: please keep words "client capabilities" between brackets if translation is different (see fr.po)
Binary file ./.git/index matches
Binary file ./.git/objects/pack/pack-eb4dbe4d34d2949f65879d06bd815fbab5f34a5a.pack matches

それぞれのファイルを編集。差分は以下。編集するべきファイルは開発者による本家のgitのコミットログを見てもわかる。

$ vi ./configure.in
$ vi ./po/CMakeLists.txt
$ git diff
diff --git a/configure.in b/configure.in
index b079ffe..ba7c38b 100644
--- a/configure.in
+++ b/configure.in
@@ -58,7 +58,7 @@ cygwin*)
 esac

 # Gettext
-ALL_LINGUAS="fr es cs hu de ru pl it pt_BR"
+ALL_LINGUAS="fr es cs hu de ru pl it pt_BR ja"
 AM_GNU_GETTEXT
 AM_GNU_GETTEXT_VERSION([0.15])

diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt
index afc3f86..d77a81a 100644
--- a/po/CMakeLists.txt
+++ b/po/CMakeLists.txt
@@ -27,6 +27,7 @@ SET(PO_FILES
   pl.po
   it.po
   pt_BR.po
+  ja.po
   )

 SET(BUGS_ADDRESS "flashcode@flashtux.org")

翻訳の確認。

$ msgfmt -o /dev/null -c ja.po

ビルドするために INATALL ファイルを確認。今回はcmakeを使う。

$ cat INSTALL
WeeChat Installation instructions
=================================

You can build WeeChat with cmake (recommended way) or autotools.


With cmake
----------

------------------------------------------------------------------
mkdir build
cd build
cmake .. -DPREFIX=/where/you/want/install -DCMAKE_BUILD_TYPE=Debug
make
make install     (as root for installation in system directories)
------------------------------------------------------------------


With autotools
--------------

----------------------------------------------------------------------
./autogen.sh     (for cloned git repository only, not .tar.XX package)
./configure --prefix=/where/you/want/install
make
make install     (as root for installation in system directories)
----------------------------------------------------------------------


If you want to report bugs/crashes to developers, please:

- compile with debug info (type "Debug" for cmake build, default for autotools),
- enable core files (for bash shell, add "ulimit -c unlimited" to your ~/.bashrc).


See AUTHORS for support, feel free to contact us for any problem.

ディレクトリを作り、これに移動

$ mkdir build
$ cd build

インストールしたいディレクトリをホームディレクトリの下のoptとする。cmakeを実行。

$ cmake .. -DPREFIX=~/opt -DCMAKE_BUILD_TYPE=Debug
-- The C compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Looking for include files HAVE_ARPA_INET_H
-- Looking for include files HAVE_ARPA_INET_H - found
-- Looking for include files HAVE_LIMITS_H
-- Looking for include files HAVE_LIMITS_H - found
-- Looking for include files HAVE_LOCALE_H
-- Looking for include files HAVE_LOCALE_H - found
-- Looking for include files HAVE_NETDB_H
-- Looking for include files HAVE_NETDB_H - found
-- Looking for include files HAVE_NETINET_IN_H
-- Looking for include files HAVE_NETINET_IN_H - found
-- Looking for include files HAVE_STDLIB_H
-- Looking for include files HAVE_STDLIB_H - found
-- Looking for include files HAVE_STRING_H
-- Looking for include files HAVE_STRING_H - found
-- Looking for include files HAVE_SYS_SOCKET_H
-- Looking for include files HAVE_SYS_SOCKET_H - found
-- Looking for include files HAVE_SYS_TIME_H
-- Looking for include files HAVE_SYS_TIME_H - found
-- Looking for include files HAVE_SYS_TYPES_H
-- Looking for include files HAVE_SYS_TYPES_H - found
-- Looking for include files HAVE_UNISTD_H
-- Looking for include files HAVE_UNISTD_H - found
-- Looking for include files HAVE_PWD_H
-- Looking for include files HAVE_PWD_H - found
-- Looking for include files HAVE_ERRNO_H
-- Looking for include files HAVE_ERRNO_H - found
-- Looking for include files HAVE_WCHAR_H
-- Looking for include files HAVE_WCHAR_H - found
-- Looking for include files HAVE_LANGINFO_CODESET
-- Looking for include files HAVE_LANGINFO_CODESET - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for gethostname
-- Looking for gethostname - found
-- Looking for getsockname
-- Looking for getsockname - found
-- Looking for gettimeofday
-- Looking for gettimeofday - found
-- Looking for inet_ntoa
-- Looking for inet_ntoa - found
-- Looking for memset
-- Looking for memset - found
-- Looking for mkdir
-- Looking for mkdir - found
-- Looking for select
-- Looking for select - found
-- Looking for setlocale
-- Looking for setlocale - found
-- Looking for socket
-- Looking for socket - found
-- Looking for strcasecmp
-- Looking for strcasecmp - found
-- Looking for strchr
-- Looking for strchr - found
-- Looking for strdup
-- Looking for strdup - found
-- Looking for strndup
-- Looking for strndup - found
-- Looking for strncasecmp
-- Looking for strncasecmp - found
-- Looking for strpbrk
-- Looking for strpbrk - found
-- Looking for strrchr
-- Looking for strrchr - found
-- Looking for strstr
-- Looking for strstr - found
-- Looking for mallinfo
-- Looking for mallinfo - found
-- Looking for include files HAVE_REGEX_H
-- Looking for include files HAVE_REGEX_H - found
-- Looking for regexec
-- Looking for regexec - found
-- Looking for eat_newline_glitch
-- Looking for eat_newline_glitch - found
-- Looking for include files HAVE_LIBINTL_H
-- Looking for include files HAVE_LIBINTL_H - found
-- Looking for dgettext
-- Looking for dgettext - found
-- Found ZLIB: /usr/lib/libz.so (found version "1.2.3.4")
-- Looking for iconv_open
-- Looking for iconv_open - found
-- Performing Test ICONV_2ARG_IS_CONST
-- Performing Test ICONV_2ARG_IS_CONST - Failed
-- Found CURL: /usr/lib/libcurl.so
-- Looking for include files HAVE_SYS_FILE_H
-- Looking for include files HAVE_SYS_FILE_H - found
-- Looking for flock
-- Looking for flock - found
-- Looking for backtrace
-- Looking for backtrace - found
-- Found Tclsh: /usr/bin/tclsh
-- Looking for include files NCURSESW_HEADERS
-- Looking for include files NCURSESW_HEADERS - found
-- Configuring done
-- Generating done
-- Build files have been written to: /**********/git-weechat0/weechat/build

make する。ja 関してコンパイルが行われたことが確認できる。

$ make
Scanning dependencies of target translations
[  0%] Generating PO template file
[  0%] Compiling locales (fr)
1601 translated messages.
[  0%] Compiling locales (es)
1534 translated messages, 51 fuzzy translations, 16 untranslated messages.
[  0%] Compiling locales (cs)
1423 translated messages, 120 fuzzy translations, 58 untranslated messages.
[  0%] Compiling locales (hu)
118 translated messages, 1011 fuzzy translations, 472 untranslated messages.
[  0%] Compiling locales (de)
1601 translated messages.
[  0%] Compiling locales (ru)
157 translated messages, 1014 fuzzy translations, 430 untranslated messages.
[  0%] Compiling locales (pl)
1601 translated messages.
[  0%] Compiling locales (it)
1601 translated messages.
[  0%] Compiling locales (pt_BR)
1164 translated messages, 33 fuzzy translations, 404 untranslated messages.
[  0%] Compiling locales (ja)
1 translated message, 1600 untranslated messages.
[  8%] Built target translations
Scanning dependencies of target weechat_core
[  9%] Building C object src/core/CMakeFiles/weechat_core.dir/weechat.o
[ 10%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-backtrace.o
[ 10%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-command.o
[ 11%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-completion.o
[ 12%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-config.o
[ 13%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-config-file.o
[ 13%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-debug.o
[ 14%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-hashtable.o
[ 15%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-hdata.o
[ 15%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-hook.o
[ 16%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-infolist.o
[ 17%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-input.o
[ 18%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-list.o
[ 18%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-log.o
[ 19%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-network.o
[ 20%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-proxy.o
[ 21%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-string.o
[ 21%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-upgrade.o
[ 22%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-upgrade-file.o
[ 23%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-url.o
[ 23%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-utf8.o
[ 24%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-util.o
Linking C static library libweechat_core.a
[ 24%] Built target weechat_core
Scanning dependencies of target weechat_plugins
[ 25%] Building C object src/plugins/CMakeFiles/weechat_plugins.dir/plugin.o
[ 26%] Building C object src/plugins/CMakeFiles/weechat_plugins.dir/plugin-api.o
[ 26%] Building C object src/plugins/CMakeFiles/weechat_plugins.dir/plugin-config.o
Linking C static library libweechat_plugins.a
[ 26%] Built target weechat_plugins
Scanning dependencies of target alias
[ 26%] Building C object src/plugins/alias/CMakeFiles/alias.dir/alias.o
[ 27%] Building C object src/plugins/alias/CMakeFiles/alias.dir/alias-config.o
[ 28%] Building C object src/plugins/alias/CMakeFiles/alias.dir/alias-info.o
Linking C shared module alias.so
[ 28%] Built target alias
Scanning dependencies of target charset
[ 28%] Building C object src/plugins/charset/CMakeFiles/charset.dir/charset.o
Linking C shared module charset.so
[ 28%] Built target charset
Scanning dependencies of target fifo
[ 29%] Building C object src/plugins/fifo/CMakeFiles/fifo.dir/fifo.o
[ 30%] Building C object src/plugins/fifo/CMakeFiles/fifo.dir/fifo-info.o
Linking C shared module fifo.so
[ 30%] Built target fifo
Scanning dependencies of target irc
[ 31%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc.o
[ 31%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-bar-item.o
[ 32%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-buffer.o
[ 33%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-channel.o
[ 34%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-color.o
[ 34%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-command.o
[ 35%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-completion.o
[ 36%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-config.o
[ 36%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-ctcp.o
[ 37%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-debug.o
[ 38%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-display.o
[ 39%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-ignore.o
[ 39%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-info.o
[ 40%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-input.o
[ 41%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-message.o
[ 42%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-mode.o
[ 42%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-msgbuffer.o
[ 43%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-nick.o
[ 44%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-notify.o
[ 44%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-protocol.o
[ 45%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-raw.o
[ 46%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-redirect.o
[ 47%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-sasl.o
[ 47%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-server.o
[ 48%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-upgrade.o
Linking C shared module irc.so
[ 48%] Built target irc
Scanning dependencies of target logger
[ 49%] Building C object src/plugins/logger/CMakeFiles/logger.dir/logger.o
[ 50%] Building C object src/plugins/logger/CMakeFiles/logger.dir/logger-buffer.o
[ 50%] Building C object src/plugins/logger/CMakeFiles/logger.dir/logger-config.o
[ 51%] Building C object src/plugins/logger/CMakeFiles/logger.dir/logger-info.o
[ 52%] Building C object src/plugins/logger/CMakeFiles/logger.dir/logger-tail.o
Linking C shared module logger.so
[ 52%] Built target logger
Scanning dependencies of target relay
[ 52%] Building C object src/plugins/relay/CMakeFiles/relay.dir/relay.o
[ 53%] Building C object src/plugins/relay/CMakeFiles/relay.dir/relay-buffer.o
[ 54%] Building C object src/plugins/relay/CMakeFiles/relay.dir/relay-client.o
[ 55%] Building C object src/plugins/relay/CMakeFiles/relay.dir/irc/relay-irc.o
[ 55%] Building C object src/plugins/relay/CMakeFiles/relay.dir/weechat/relay-weechat.o
[ 56%] Building C object src/plugins/relay/CMakeFiles/relay.dir/weechat/relay-weechat-msg.o
[ 57%] Building C object src/plugins/relay/CMakeFiles/relay.dir/weechat/relay-weechat-protocol.o
[ 58%] Building C object src/plugins/relay/CMakeFiles/relay.dir/relay-command.o
[ 58%] Building C object src/plugins/relay/CMakeFiles/relay.dir/relay-completion.o
[ 59%] Building C object src/plugins/relay/CMakeFiles/relay.dir/relay-config.o
[ 60%] Building C object src/plugins/relay/CMakeFiles/relay.dir/relay-info.o
[ 60%] Building C object src/plugins/relay/CMakeFiles/relay.dir/relay-raw.o
[ 61%] Building C object src/plugins/relay/CMakeFiles/relay.dir/relay-server.o
[ 62%] Building C object src/plugins/relay/CMakeFiles/relay.dir/relay-upgrade.o
Linking C shared module relay.so
[ 62%] Built target relay
Scanning dependencies of target rmodifier
[ 63%] Building C object src/plugins/rmodifier/CMakeFiles/rmodifier.dir/rmodifier.o
[ 63%] Building C object src/plugins/rmodifier/CMakeFiles/rmodifier.dir/rmodifier-command.o
[ 64%] Building C object src/plugins/rmodifier/CMakeFiles/rmodifier.dir/rmodifier-completion.o
[ 65%] Building C object src/plugins/rmodifier/CMakeFiles/rmodifier.dir/rmodifier-config.o
[ 66%] Building C object src/plugins/rmodifier/CMakeFiles/rmodifier.dir/rmodifier-debug.o
[ 66%] Building C object src/plugins/rmodifier/CMakeFiles/rmodifier.dir/rmodifier-info.o
Linking C shared module rmodifier.so
[ 66%] Built target rmodifier
Scanning dependencies of target weechat_scripts
[ 67%] Building C object src/plugins/scripts/CMakeFiles/weechat_scripts.dir/script.o
[ 68%] Building C object src/plugins/scripts/CMakeFiles/weechat_scripts.dir/script-callback.o
[ 68%] Building C object src/plugins/scripts/CMakeFiles/weechat_scripts.dir/script-api.o
Linking C static library libweechat_scripts.a
[ 68%] Built target weechat_scripts
Scanning dependencies of target perl
[ 69%] Building C object src/plugins/scripts/perl/CMakeFiles/perl.dir/weechat-perl.o
[ 69%] Building C object src/plugins/scripts/perl/CMakeFiles/perl.dir/weechat-perl-api.o
Linking C shared module perl.so
[ 69%] Built target perl
Scanning dependencies of target python
[ 70%] Building C object src/plugins/scripts/python/CMakeFiles/python.dir/weechat-python.o
[ 71%] Building C object src/plugins/scripts/python/CMakeFiles/python.dir/weechat-python-api.o
Linking C shared module python.so
[ 71%] Built target python
Scanning dependencies of target xfer
[ 72%] Building C object src/plugins/xfer/CMakeFiles/xfer.dir/xfer.o
[ 73%] Building C object src/plugins/xfer/CMakeFiles/xfer.dir/xfer-buffer.o
[ 74%] Building C object src/plugins/xfer/CMakeFiles/xfer.dir/xfer-chat.o
[ 74%] Building C object src/plugins/xfer/CMakeFiles/xfer.dir/xfer-command.o
[ 75%] Building C object src/plugins/xfer/CMakeFiles/xfer.dir/xfer-completion.o
[ 76%] Building C object src/plugins/xfer/CMakeFiles/xfer.dir/xfer-config.o
[ 77%] Building C object src/plugins/xfer/CMakeFiles/xfer.dir/xfer-dcc.o
[ 77%] Building C object src/plugins/xfer/CMakeFiles/xfer.dir/xfer-file.o
[ 78%] Building C object src/plugins/xfer/CMakeFiles/xfer.dir/xfer-info.o
[ 79%] Building C object src/plugins/xfer/CMakeFiles/xfer.dir/xfer-network.o
[ 80%] Building C object src/plugins/xfer/CMakeFiles/xfer.dir/xfer-upgrade.o
Linking C shared module xfer.so
[ 80%] Built target xfer
Scanning dependencies of target weechat_gui_common
[ 81%] Building C object src/gui/CMakeFiles/weechat_gui_common.dir/gui-bar.o
[ 82%] Building C object src/gui/CMakeFiles/weechat_gui_common.dir/gui-bar-item.o
[ 82%] Building C object src/gui/CMakeFiles/weechat_gui_common.dir/gui-bar-window.o
[ 83%] Building C object src/gui/CMakeFiles/weechat_gui_common.dir/gui-buffer.o
[ 84%] Building C object src/gui/CMakeFiles/weechat_gui_common.dir/gui-chat.o
[ 85%] Building C object src/gui/CMakeFiles/weechat_gui_common.dir/gui-color.o
[ 85%] Building C object src/gui/CMakeFiles/weechat_gui_common.dir/gui-completion.o
[ 86%] Building C object src/gui/CMakeFiles/weechat_gui_common.dir/gui-cursor.o
[ 87%] Building C object src/gui/CMakeFiles/weechat_gui_common.dir/gui-filter.o
[ 88%] Building C object src/gui/CMakeFiles/weechat_gui_common.dir/gui-focus.o
[ 88%] Building C object src/gui/CMakeFiles/weechat_gui_common.dir/gui-history.o
[ 89%] Building C object src/gui/CMakeFiles/weechat_gui_common.dir/gui-hotlist.o
[ 90%] Building C object src/gui/CMakeFiles/weechat_gui_common.dir/gui-input.o
[ 90%] Building C object src/gui/CMakeFiles/weechat_gui_common.dir/gui-key.o
[ 91%] Building C object src/gui/CMakeFiles/weechat_gui_common.dir/gui-layout.o
[ 92%] Building C object src/gui/CMakeFiles/weechat_gui_common.dir/gui-line.o
[ 93%] Building C object src/gui/CMakeFiles/weechat_gui_common.dir/gui-mouse.o
[ 93%] Building C object src/gui/CMakeFiles/weechat_gui_common.dir/gui-nicklist.o
[ 94%] Building C object src/gui/CMakeFiles/weechat_gui_common.dir/gui-window.o
Linking C static library libweechat_gui_common.a
[ 94%] Built target weechat_gui_common
Scanning dependencies of target weechat-curses
[ 95%] Building C object src/gui/curses/CMakeFiles/weechat-curses.dir/gui-curses-bar-window.o
[ 96%] Building C object src/gui/curses/CMakeFiles/weechat-curses.dir/gui-curses-chat.o
[ 97%] Building C object src/gui/curses/CMakeFiles/weechat-curses.dir/gui-curses-color.o
[ 97%] Building C object src/gui/curses/CMakeFiles/weechat-curses.dir/gui-curses-key.o
[ 98%] Building C object src/gui/curses/CMakeFiles/weechat-curses.dir/gui-curses-main.o
[ 99%] Building C object src/gui/curses/CMakeFiles/weechat-curses.dir/gui-curses-mouse.o
[ 99%] Building C object src/gui/curses/CMakeFiles/weechat-curses.dir/gui-curses-term.o
[100%] Building C object src/gui/curses/CMakeFiles/weechat-curses.dir/gui-curses-window.o
Linking C executable weechat-curses
[100%] Built target weechat-curses

インストールする。

$ make install
[  8%] Built target translations
[ 24%] Built target weechat_core
[ 26%] Built target weechat_plugins
[ 28%] Built target alias
[ 28%] Built target charset
[ 30%] Built target fifo
[ 48%] Built target irc
[ 52%] Built target logger
[ 62%] Built target relay
[ 66%] Built target rmodifier
[ 68%] Built target weechat_scripts
[ 69%] Built target perl
[ 71%] Built target python
[ 80%] Built target xfer
[ 94%] Built target weechat_gui_common
[100%] Built target weechat-curses
Install the project...
-- Install configuration: "Debug"
-- Installing: /*******/opt/lib/weechat/../pkgconfig/weechat.pc
-- Installing: /*******/opt/share/locale/fr/LC_MESSAGES/weechat.mo
-- Installing: /*******/opt/share/locale/es/LC_MESSAGES/weechat.mo
-- Installing: /*******/opt/share/locale/cs/LC_MESSAGES/weechat.mo
-- Installing: /*******/opt/share/locale/hu/LC_MESSAGES/weechat.mo
-- Installing: /*******/opt/share/locale/de/LC_MESSAGES/weechat.mo
-- Installing: /*******/opt/share/locale/ru/LC_MESSAGES/weechat.mo
-- Installing: /*******/opt/share/locale/pl/LC_MESSAGES/weechat.mo
-- Installing: /*******/opt/share/locale/it/LC_MESSAGES/weechat.mo
-- Installing: /*******/opt/share/locale/pt_BR/LC_MESSAGES/weechat.mo
-- Installing: /*******/opt/share/locale/ja/LC_MESSAGES/weechat.mo
-- Installing: /*******/opt/include/weechat/weechat-plugin.h
-- Installing: /*******/opt/lib/weechat/plugins/alias.so
-- Installing: /*******/opt/lib/weechat/plugins/charset.so
-- Installing: /*******/opt/lib/weechat/plugins/fifo.so
-- Installing: /*******/opt/lib/weechat/plugins/irc.so
-- Installing: /*******/opt/lib/weechat/plugins/logger.so
-- Installing: /*******/opt/lib/weechat/plugins/relay.so
-- Installing: /*******/opt/lib/weechat/plugins/rmodifier.so
-- Installing: /*******/opt/lib/weechat/plugins/perl.so
-- Installing: /*******/opt/lib/weechat/plugins/python.so
-- Installing: /*******/opt/lib/weechat/plugins/xfer.so
-- Installing: /*******/opt/bin/weechat-curses
-- Installing: /*******/opt/share/man/man1/weechat-curses.1

ja の翻訳を使うには、ロケールを強制的に指定する。翻訳済みの箇所が日本語になっていることがわかる。

$ LANG="ja_JP.UTF-8" /*******/opt/bin/weechat-curses --dir ~/.weechat1/ --help

WeeChat 0.3.7-rc3 著作権 (C) 2003-2012、Feb 25 2012 21:33:31 にコンパイル
著作者 Sebastien Helleu <flashcode@flashtux.org> - http://www.weechat.org/

Usage: /home/my/opt/bin/weechat-curses [option...] [plugin:option...]

  -a, --no-connect  disable auto-connect to servers at startup
  -c, --colors      display default colors in terminal
  -d, --dir <path>  set WeeChat home directory (default: ~/.weechat)
  -h, --help        this help
  -k, --keys        display WeeChat default keys
  -l, --license     display WeeChat license
  -p, --no-plugin   don't load any plugin at startup
  -s, --no-script   don't load any script at startup
  -v, --version     display WeeChat version
  plugin:option     option for plugin
                    for example, irc plugin can connect
                    to server with url like:
                    irc[6][s]://[nickname[:password]@]irc.example.org[:port][/#channel1][,#channel2[...]]
                    (look at plugins documentation for more information
                    about possible options)

起動することを確認

$ LANG="ja_JP.UTF-8" /*******/opt/bin/weechat-curses --dir ~/.weechat1/

リファレンス

  1. WeeChat translator guide - FlashTux
  2. Savannah Git Hosting - weechat.git/commit
  3. GNU `gettext' utilities

ソーシャルブックマーク

  1. はてなブックマーク
  2. Google Bookmarks
  3. del.icio.us

ChangeLog

  1. Posted: 2010-04-23T21:48:58+09:00
  2. Modified: 2010-04-23T21:48:58+09:00
  3. Generated: 2024-11-18T23:09:13+09:00