diff options
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/alias/alias.c | 2 | ||||
-rw-r--r-- | src/plugins/aspell/weechat-aspell.c | 2 | ||||
-rw-r--r-- | src/plugins/charset/charset.c | 2 | ||||
-rw-r--r-- | src/plugins/demo/demo.c | 2 | ||||
-rw-r--r-- | src/plugins/fifo/fifo.c | 2 | ||||
-rw-r--r-- | src/plugins/irc/irc.c | 2 | ||||
-rw-r--r-- | src/plugins/logger/logger.c | 2 | ||||
-rw-r--r-- | src/plugins/plugin.c | 4 | ||||
-rw-r--r-- | src/plugins/relay/relay.c | 4 | ||||
-rw-r--r-- | src/plugins/rmodifier/rmodifier.c | 2 | ||||
-rw-r--r-- | src/plugins/scripts/guile/weechat-guile.c | 2 | ||||
-rw-r--r-- | src/plugins/scripts/lua/weechat-lua.c | 2 | ||||
-rw-r--r-- | src/plugins/scripts/perl/weechat-perl.c | 2 | ||||
-rw-r--r-- | src/plugins/scripts/python/weechat-python.c | 2 | ||||
-rw-r--r-- | src/plugins/scripts/ruby/weechat-ruby.c | 2 | ||||
-rw-r--r-- | src/plugins/scripts/tcl/weechat-tcl.c | 2 | ||||
-rw-r--r-- | src/plugins/weechat-plugin.h | 8 | ||||
-rw-r--r-- | src/plugins/xfer/xfer.c | 3 |
18 files changed, 27 insertions, 20 deletions
diff --git a/src/plugins/alias/alias.c b/src/plugins/alias/alias.c index 77d5aa49f..911dd048c 100644 --- a/src/plugins/alias/alias.c +++ b/src/plugins/alias/alias.c @@ -33,7 +33,7 @@ WEECHAT_PLUGIN_NAME(ALIAS_PLUGIN_NAME); -WEECHAT_PLUGIN_DESCRIPTION("Alias plugin for WeeChat"); +WEECHAT_PLUGIN_DESCRIPTION(N_("Alias commands")); WEECHAT_PLUGIN_AUTHOR("Sebastien Helleu <flashcode@flashtux.org>"); WEECHAT_PLUGIN_VERSION(WEECHAT_VERSION); WEECHAT_PLUGIN_LICENSE(WEECHAT_LICENSE); diff --git a/src/plugins/aspell/weechat-aspell.c b/src/plugins/aspell/weechat-aspell.c index a90620aa0..d0e08f84e 100644 --- a/src/plugins/aspell/weechat-aspell.c +++ b/src/plugins/aspell/weechat-aspell.c @@ -36,7 +36,7 @@ WEECHAT_PLUGIN_NAME(ASPELL_PLUGIN_NAME); -WEECHAT_PLUGIN_DESCRIPTION("Aspell plugin for WeeChat"); +WEECHAT_PLUGIN_DESCRIPTION(N_("Spell checker for input (with Aspell)")); WEECHAT_PLUGIN_AUTHOR("Sebastien Helleu <flashcode@flashtux.org>"); WEECHAT_PLUGIN_VERSION(WEECHAT_VERSION); WEECHAT_PLUGIN_LICENSE(WEECHAT_LICENSE); diff --git a/src/plugins/charset/charset.c b/src/plugins/charset/charset.c index 545cc80b1..7599e5c6c 100644 --- a/src/plugins/charset/charset.c +++ b/src/plugins/charset/charset.c @@ -36,7 +36,7 @@ #define CHARSET_PLUGIN_NAME "charset" WEECHAT_PLUGIN_NAME(CHARSET_PLUGIN_NAME); -WEECHAT_PLUGIN_DESCRIPTION("Charset plugin for WeeChat"); +WEECHAT_PLUGIN_DESCRIPTION(N_("Charset conversions")); WEECHAT_PLUGIN_AUTHOR("Sebastien Helleu <flashcode@flashtux.org>"); WEECHAT_PLUGIN_VERSION(WEECHAT_VERSION); WEECHAT_PLUGIN_LICENSE(WEECHAT_LICENSE); diff --git a/src/plugins/demo/demo.c b/src/plugins/demo/demo.c index 2e65ce142..b99fb8d51 100644 --- a/src/plugins/demo/demo.c +++ b/src/plugins/demo/demo.c @@ -36,7 +36,7 @@ #define DEMO_PLUGIN_NAME "demo" WEECHAT_PLUGIN_NAME(DEMO_PLUGIN_NAME); -WEECHAT_PLUGIN_DESCRIPTION("Demo plugin for WeeChat"); +WEECHAT_PLUGIN_DESCRIPTION(N_("Demo plugin")); WEECHAT_PLUGIN_AUTHOR("Sebastien Helleu <flashcode@flashtux.org>"); WEECHAT_PLUGIN_VERSION(WEECHAT_VERSION); WEECHAT_PLUGIN_LICENSE(WEECHAT_LICENSE); diff --git a/src/plugins/fifo/fifo.c b/src/plugins/fifo/fifo.c index 8744e6b88..6789c3aa8 100644 --- a/src/plugins/fifo/fifo.c +++ b/src/plugins/fifo/fifo.c @@ -37,7 +37,7 @@ WEECHAT_PLUGIN_NAME(FIFO_PLUGIN_NAME); -WEECHAT_PLUGIN_DESCRIPTION("Fifo plugin for WeeChat"); +WEECHAT_PLUGIN_DESCRIPTION(N_("FIFO pipe for remote control")); WEECHAT_PLUGIN_AUTHOR("Sebastien Helleu <flashcode@flashtux.org>"); WEECHAT_PLUGIN_VERSION(WEECHAT_VERSION); WEECHAT_PLUGIN_LICENSE(WEECHAT_LICENSE); diff --git a/src/plugins/irc/irc.c b/src/plugins/irc/irc.c index 04868c6df..0c85293e7 100644 --- a/src/plugins/irc/irc.c +++ b/src/plugins/irc/irc.c @@ -48,7 +48,7 @@ WEECHAT_PLUGIN_NAME(IRC_PLUGIN_NAME); -WEECHAT_PLUGIN_DESCRIPTION("IRC (Internet Relay Chat) plugin for WeeChat"); +WEECHAT_PLUGIN_DESCRIPTION(N_("IRC (Internet Relay Chat) protocol")); WEECHAT_PLUGIN_AUTHOR("Sebastien Helleu <flashcode@flashtux.org>"); WEECHAT_PLUGIN_VERSION(WEECHAT_VERSION); WEECHAT_PLUGIN_LICENSE(WEECHAT_LICENSE); diff --git a/src/plugins/logger/logger.c b/src/plugins/logger/logger.c index d0070937d..9ced402db 100644 --- a/src/plugins/logger/logger.c +++ b/src/plugins/logger/logger.c @@ -47,7 +47,7 @@ WEECHAT_PLUGIN_NAME(LOGGER_PLUGIN_NAME); -WEECHAT_PLUGIN_DESCRIPTION("Logger plugin for WeeChat"); +WEECHAT_PLUGIN_DESCRIPTION(N_("Log buffers to files")); WEECHAT_PLUGIN_AUTHOR("Sebastien Helleu <flashcode@flashtux.org>"); WEECHAT_PLUGIN_VERSION(WEECHAT_VERSION); WEECHAT_PLUGIN_LICENSE(WEECHAT_LICENSE); diff --git a/src/plugins/plugin.c b/src/plugins/plugin.c index 824f33bef..9017c4ed2 100644 --- a/src/plugins/plugin.c +++ b/src/plugins/plugin.c @@ -1258,6 +1258,10 @@ plugin_add_to_infolist (struct t_infolist *infolist, return 0; if (!infolist_new_var_string (ptr_item, "description", plugin->description)) return 0; + if (!infolist_new_var_string (ptr_item, "description_nls", + (plugin->description && plugin->description[0]) ? + _(plugin->description) : "")) + return 0; if (!infolist_new_var_string (ptr_item, "author", plugin->author)) return 0; if (!infolist_new_var_string (ptr_item, "version", plugin->version)) diff --git a/src/plugins/relay/relay.c b/src/plugins/relay/relay.c index 5e392e31f..23e7dfdb4 100644 --- a/src/plugins/relay/relay.c +++ b/src/plugins/relay/relay.c @@ -38,8 +38,8 @@ WEECHAT_PLUGIN_NAME(RELAY_PLUGIN_NAME); -WEECHAT_PLUGIN_DESCRIPTION("Network communication between WeeChat and " - "remote application"); +WEECHAT_PLUGIN_DESCRIPTION(N_("Relay WeeChat data to remote application " + "(irc/weechat protocols)")); WEECHAT_PLUGIN_AUTHOR("Sebastien Helleu <flashcode@flashtux.org>"); WEECHAT_PLUGIN_VERSION(WEECHAT_VERSION); WEECHAT_PLUGIN_LICENSE(WEECHAT_LICENSE); diff --git a/src/plugins/rmodifier/rmodifier.c b/src/plugins/rmodifier/rmodifier.c index a0783ffd3..92a5cbd1b 100644 --- a/src/plugins/rmodifier/rmodifier.c +++ b/src/plugins/rmodifier/rmodifier.c @@ -37,7 +37,7 @@ WEECHAT_PLUGIN_NAME(RMODIFIER_PLUGIN_NAME); -WEECHAT_PLUGIN_DESCRIPTION("Regex modifier plugin for WeeChat"); +WEECHAT_PLUGIN_DESCRIPTION(N_("String modifier with regular expressions")); WEECHAT_PLUGIN_AUTHOR("Sebastien Helleu <flashcode@flashtux.org>"); WEECHAT_PLUGIN_VERSION(WEECHAT_VERSION); WEECHAT_PLUGIN_LICENSE(WEECHAT_LICENSE); diff --git a/src/plugins/scripts/guile/weechat-guile.c b/src/plugins/scripts/guile/weechat-guile.c index aeb974646..a7dae1afe 100644 --- a/src/plugins/scripts/guile/weechat-guile.c +++ b/src/plugins/scripts/guile/weechat-guile.c @@ -36,7 +36,7 @@ WEECHAT_PLUGIN_NAME(GUILE_PLUGIN_NAME); -WEECHAT_PLUGIN_DESCRIPTION("Guile (scheme) plugin for WeeChat"); +WEECHAT_PLUGIN_DESCRIPTION(N_("Support of scheme scripts (with Guile)")); WEECHAT_PLUGIN_AUTHOR("Sebastien Helleu <flashcode@flashtux.org>"); WEECHAT_PLUGIN_VERSION(WEECHAT_VERSION); WEECHAT_PLUGIN_LICENSE(WEECHAT_LICENSE); diff --git a/src/plugins/scripts/lua/weechat-lua.c b/src/plugins/scripts/lua/weechat-lua.c index 6ab5ce33f..8957bbe88 100644 --- a/src/plugins/scripts/lua/weechat-lua.c +++ b/src/plugins/scripts/lua/weechat-lua.c @@ -37,7 +37,7 @@ WEECHAT_PLUGIN_NAME(LUA_PLUGIN_NAME); -WEECHAT_PLUGIN_DESCRIPTION("Lua plugin for WeeChat"); +WEECHAT_PLUGIN_DESCRIPTION(N_("Support of lua scripts")); WEECHAT_PLUGIN_AUTHOR("Sebastien Helleu <flashcode@flashtux.org>"); WEECHAT_PLUGIN_VERSION(WEECHAT_VERSION); WEECHAT_PLUGIN_LICENSE(WEECHAT_LICENSE); diff --git a/src/plugins/scripts/perl/weechat-perl.c b/src/plugins/scripts/perl/weechat-perl.c index b8ecfcf75..0acf76651 100644 --- a/src/plugins/scripts/perl/weechat-perl.c +++ b/src/plugins/scripts/perl/weechat-perl.c @@ -35,7 +35,7 @@ WEECHAT_PLUGIN_NAME(PERL_PLUGIN_NAME); -WEECHAT_PLUGIN_DESCRIPTION("Perl plugin for WeeChat"); +WEECHAT_PLUGIN_DESCRIPTION(N_("Support of perl scripts")); WEECHAT_PLUGIN_AUTHOR("Sebastien Helleu <flashcode@flashtux.org>"); WEECHAT_PLUGIN_VERSION(WEECHAT_VERSION); WEECHAT_PLUGIN_LICENSE(WEECHAT_LICENSE); diff --git a/src/plugins/scripts/python/weechat-python.c b/src/plugins/scripts/python/weechat-python.c index 164de77c9..993a089b5 100644 --- a/src/plugins/scripts/python/weechat-python.c +++ b/src/plugins/scripts/python/weechat-python.c @@ -36,7 +36,7 @@ WEECHAT_PLUGIN_NAME(PYTHON_PLUGIN_NAME); -WEECHAT_PLUGIN_DESCRIPTION("Python plugin for WeeChat"); +WEECHAT_PLUGIN_DESCRIPTION(N_("Support of python scripts")); WEECHAT_PLUGIN_AUTHOR("Sebastien Helleu <flashcode@flashtux.org>"); WEECHAT_PLUGIN_VERSION(WEECHAT_VERSION); WEECHAT_PLUGIN_LICENSE(WEECHAT_LICENSE); diff --git a/src/plugins/scripts/ruby/weechat-ruby.c b/src/plugins/scripts/ruby/weechat-ruby.c index 012d541b1..01709ac74 100644 --- a/src/plugins/scripts/ruby/weechat-ruby.c +++ b/src/plugins/scripts/ruby/weechat-ruby.c @@ -56,7 +56,7 @@ WEECHAT_PLUGIN_NAME(RUBY_PLUGIN_NAME); -WEECHAT_PLUGIN_DESCRIPTION("Ruby plugin for WeeChat"); +WEECHAT_PLUGIN_DESCRIPTION(N_("Support of ruby scripts")); WEECHAT_PLUGIN_AUTHOR("Sebastien Helleu <flashcode@flashtux.org>"); WEECHAT_PLUGIN_VERSION(WEECHAT_VERSION); WEECHAT_PLUGIN_LICENSE(WEECHAT_LICENSE); diff --git a/src/plugins/scripts/tcl/weechat-tcl.c b/src/plugins/scripts/tcl/weechat-tcl.c index dbffefd2c..a93fc551b 100644 --- a/src/plugins/scripts/tcl/weechat-tcl.c +++ b/src/plugins/scripts/tcl/weechat-tcl.c @@ -38,7 +38,7 @@ WEECHAT_PLUGIN_NAME(TCL_PLUGIN_NAME); -WEECHAT_PLUGIN_DESCRIPTION("Tcl plugin for WeeChat"); +WEECHAT_PLUGIN_DESCRIPTION(N_("Support of tcl scripts")); WEECHAT_PLUGIN_AUTHOR("Dmitry Kobylin <fnfal@academ.tsc.ru>"); WEECHAT_PLUGIN_VERSION(WEECHAT_VERSION); WEECHAT_PLUGIN_LICENSE(WEECHAT_LICENSE); diff --git a/src/plugins/weechat-plugin.h b/src/plugins/weechat-plugin.h index 2d5b53816..ef8f048b6 100644 --- a/src/plugins/weechat-plugin.h +++ b/src/plugins/weechat-plugin.h @@ -911,11 +911,15 @@ extern int weechat_plugin_end (struct t_weechat_plugin *plugin); #ifndef __WEECHAT_H #ifndef _ #define _(string) weechat_plugin->gettext(string) +#endif /* _ */ +#ifndef N_ #define N_(string) (string) +#endif /* N_ */ +#ifndef NG_ #define NG_(single,plural,number) \ weechat_plugin->ngettext(single, plural, number) -#endif -#endif +#endif /* NG_ */ +#endif /* __WEECHAT_H */ #define weechat_gettext(string) weechat_plugin->gettext(string) #define weechat_ngettext(single,plural,number) \ weechat_plugin->ngettext(single, plural, number) diff --git a/src/plugins/xfer/xfer.c b/src/plugins/xfer/xfer.c index c38629946..aa9e2fecb 100644 --- a/src/plugins/xfer/xfer.c +++ b/src/plugins/xfer/xfer.c @@ -45,8 +45,7 @@ WEECHAT_PLUGIN_NAME(XFER_PLUGIN_NAME); -WEECHAT_PLUGIN_DESCRIPTION("Xfer (file transfer and direct chat) plugin for " - "WeeChat"); +WEECHAT_PLUGIN_DESCRIPTION(N_("DCC file transfer and direct chat")); WEECHAT_PLUGIN_AUTHOR("Sebastien Helleu <flashcode@flashtux.org>"); WEECHAT_PLUGIN_VERSION(WEECHAT_VERSION); WEECHAT_PLUGIN_LICENSE(WEECHAT_LICENSE); |