mirror of
https://github.com/weechat/weechat.git
synced 2026-06-12 14:14:48 +02:00
Compare commits
9 Commits
d78105ddf5
...
v4.1.1
| Author | SHA1 | Date | |
|---|---|---|---|
| 0e97de4293 | |||
| 097dc1f48f | |||
| c3dba4496b | |||
| 7d854c84de | |||
| a9c410ff23 | |||
| 8c4ff51beb | |||
| 6ca604938f | |||
| 252f787fcf | |||
| 839148e9d4 |
+2
-4
@@ -250,10 +250,8 @@ add_subdirectory(icons)
|
||||
if(ENABLE_NLS)
|
||||
find_package(Gettext REQUIRED)
|
||||
add_definitions(-DENABLE_NLS)
|
||||
find_package(Intl)
|
||||
if(Intl_FOUND)
|
||||
list(APPEND EXTRA_LIBS "${Intl_LIBRARIES}")
|
||||
endif()
|
||||
find_package(Intl REQUIRED)
|
||||
list(APPEND EXTRA_LIBS "${Intl_LIBRARIES}")
|
||||
add_subdirectory(po)
|
||||
else()
|
||||
add_custom_target(translations COMMAND true)
|
||||
|
||||
@@ -10,6 +10,19 @@ This document lists all the changes for each version. +
|
||||
For a list of important changes that require manual actions, please look at release notes.
|
||||
|
||||
|
||||
[[v4.1.1]]
|
||||
== Version 4.1.1 (2023-10-26)
|
||||
|
||||
Bug fixes::
|
||||
|
||||
* core: fix crash when a custom bar item name is already used by a default bar item (issue #2034)
|
||||
* core: fix random timeouts when a lot of concurrent processes are launched with hook_process (issue #2033)
|
||||
* irc: revert compute of nick colors to case sensitive way, deprecate again infos "irc_nick_color" and "irc_nick_color_name" (issue #194, issue #2032)
|
||||
|
||||
Build::
|
||||
|
||||
* core: make libintl.h required if CMake option ENABLE_NLS is enabled (issue #2031)
|
||||
|
||||
[[v4.1.0]]
|
||||
== Version 4.1.0 (2023-10-15)
|
||||
|
||||
@@ -81,6 +94,20 @@ Build::
|
||||
* core: fix build error if CMake option ENABLE_NLS is turned to off or if required dependencies are not found (issue #2026)
|
||||
* core, logger, relay: make zstd dependency optional (issue #2024)
|
||||
|
||||
[[v4.0.6]]
|
||||
== Version 4.0.6 (2023-10-26)
|
||||
|
||||
Bug fixes::
|
||||
|
||||
* core: fix crash when a custom bar item name is already used by a default bar item (issue #2034)
|
||||
* core: fix generation of TOTP on Big Endian systems (issue #2021)
|
||||
* irc: move value `-all` at the end of completions for command `/ignore del`
|
||||
* irc: fix memory leak when joining channels with keys
|
||||
|
||||
Build::
|
||||
|
||||
* core: fix build error if CMake option ENABLE_NLS is turned to off or if required dependencies are not found (issue #2026, issue #2031)
|
||||
|
||||
[[v4.0.5]]
|
||||
== Version 4.0.5 (2023-09-24)
|
||||
|
||||
|
||||
@@ -11,6 +11,26 @@ It is recommended to read it when upgrading to a new stable version. +
|
||||
For a complete list of changes, please look at ChangeLog.
|
||||
|
||||
|
||||
[[v4.1.1]]
|
||||
== Version 4.1.1 (2023-10-26)
|
||||
|
||||
[[v4.1.1_custom_bar_items]]
|
||||
=== Custom bar items
|
||||
|
||||
Custom bar items must now have a different name than default bar items
|
||||
(for example the custom bar item name `time` is now forbidden).
|
||||
|
||||
If you have such names in your config, WeeChat will now fail to load them
|
||||
(this should not happen anyway, since such bar items can not be properly used
|
||||
or can cause a crash of WeeChat).
|
||||
|
||||
[[v4.1.1_nick_color_infos]]
|
||||
=== Nick color infos
|
||||
|
||||
The infos irc_nick_color and irc_nick_color_name are deprecated again, and the
|
||||
algorithm to compute IRC nick colors has been reverted to case sensitive. +
|
||||
The server name has been removed from arguments.
|
||||
|
||||
[[v4.1.0]]
|
||||
== Version 4.1.0 (2023-10-15)
|
||||
|
||||
@@ -120,6 +140,19 @@ You can reset it with this command:
|
||||
/reset weechat.key_mouse.@chat(fset.fset):button1
|
||||
----
|
||||
|
||||
[[v4.0.6]]
|
||||
== Version 4.0.6 (2023-10-26)
|
||||
|
||||
[[v4.0.6_custom_bar_items]]
|
||||
=== Custom bar items
|
||||
|
||||
Custom bar items must now have a different name than default bar items
|
||||
(for example the custom bar item name `time` is now forbidden).
|
||||
|
||||
If you have such names in your config, WeeChat will now fail to load them
|
||||
(this should not happen anyway, since such bar items can not be properly used
|
||||
and can cause a crash of WeeChat).
|
||||
|
||||
[[v4.0.5]]
|
||||
== Version 4.0.5 (2023-09-24)
|
||||
|
||||
|
||||
+22
-20
@@ -45,26 +45,28 @@ set(CMAKE_REQUIRED_INCLUDES ${LIBINTL_INCLUDE})
|
||||
|
||||
check_include_files(libintl.h HAVE_LIBINTL_H)
|
||||
|
||||
if(HAVE_LIBINTL_H)
|
||||
check_function_exists(dgettext LIBC_HAS_DGETTEXT)
|
||||
if(LIBC_HAS_DGETTEXT)
|
||||
set(GETTEXT_FOUND TRUE)
|
||||
else()
|
||||
find_library(LIBINTL_LIBRARY NAMES intl
|
||||
PATHS
|
||||
/usr/local/lib
|
||||
/usr/lib
|
||||
)
|
||||
if(LIBINTL_LIBRARY)
|
||||
if(${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD")
|
||||
set(CMAKE_REQUIRED_LIBRARIES "iconv")
|
||||
check_library_exists(${LIBINTL_LIBRARY} "libintl_dgettext" "" LIBINTL_HAS_DGETTEXT)
|
||||
else()
|
||||
check_library_exists(${LIBINTL_LIBRARY} "dgettext" "" LIBINTL_HAS_DGETTEXT)
|
||||
endif()
|
||||
if(LIBINTL_HAS_DGETTEXT)
|
||||
set(GETTEXT_FOUND TRUE)
|
||||
endif()
|
||||
if(NOT HAVE_LIBINTL_H)
|
||||
message(SEND_ERROR "Header libintl.h not found, required if ENABLE_NLS is enabled")
|
||||
endif()
|
||||
|
||||
check_function_exists(dgettext LIBC_HAS_DGETTEXT)
|
||||
if(LIBC_HAS_DGETTEXT)
|
||||
set(GETTEXT_FOUND TRUE)
|
||||
else()
|
||||
find_library(LIBINTL_LIBRARY NAMES intl
|
||||
PATHS
|
||||
/usr/local/lib
|
||||
/usr/lib
|
||||
)
|
||||
if(LIBINTL_LIBRARY)
|
||||
if(${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD")
|
||||
set(CMAKE_REQUIRED_LIBRARIES "iconv")
|
||||
check_library_exists(${LIBINTL_LIBRARY} "libintl_dgettext" "" LIBINTL_HAS_DGETTEXT)
|
||||
else()
|
||||
check_library_exists(${LIBINTL_LIBRARY} "dgettext" "" LIBINTL_HAS_DGETTEXT)
|
||||
endif()
|
||||
if(LIBINTL_HAS_DGETTEXT)
|
||||
set(GETTEXT_FOUND TRUE)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
#cmakedefine HAVE_LIBINTL_H
|
||||
#cmakedefine HAVE_SYS_RESOURCE_H
|
||||
#cmakedefine HAVE_FLOCK
|
||||
#cmakedefine HAVE_LANGINFO_CODESET
|
||||
|
||||
@@ -21,7 +21,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2023-10-10 19:22+0200\n"
|
||||
"POT-Creation-Date: 2023-10-19 23:54+0200\n"
|
||||
"PO-Revision-Date: 2023-09-06 19:13+0200\n"
|
||||
"Last-Translator: Ondřej Súkup <mimi.vx@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -52,8 +52,9 @@ msgstr "%sChyba: neznámý příkaz \"%s\" (napište /help pro nápovědu)"
|
||||
msgid "%sBad file descriptor (%d) used in hook_fd"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "End of command '%s', timeout reached (%.1fs)"
|
||||
#, fuzzy, c-format
|
||||
#| msgid "End of command '%s', timeout reached (%.1fs)"
|
||||
msgid "End of command '%s', timeout reached (%.3fs)"
|
||||
msgstr "Konec příkazu '%s', vypršel časový limit (%.1fs)"
|
||||
|
||||
#, c-format
|
||||
@@ -68,7 +69,7 @@ msgstr "chyba curlu %d (%s) (URL: \"%s\")\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
#| msgid "End of command '%s', timeout reached (%.1fs)"
|
||||
msgid "End of URL transfer '%s', timeout reached (%.1fs)"
|
||||
msgid "End of URL transfer '%s', timeout reached (%.3fs)"
|
||||
msgstr "Konec příkazu '%s', vypršel časový limit (%.1fs)"
|
||||
|
||||
#, c-format
|
||||
@@ -10028,17 +10029,19 @@ msgid "IRC host (like `:nick!name@server.com`)"
|
||||
msgstr "IRC host (jako `:nick!name@server.com`)"
|
||||
|
||||
msgid ""
|
||||
"get nick color code, ignoring case (this calls the info "
|
||||
"\"nick_color_ignore_case\" with appropriate range, according to the value of "
|
||||
"CASEMAPPING on the server, defaulting to \"rfc1459\" if the server is not "
|
||||
"given)"
|
||||
"get nick color code (*deprecated* since version 1.5, replaced by "
|
||||
"\"nick_color\")"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
#| msgid "nick"
|
||||
#| msgid_plural "nicks"
|
||||
msgid "nickname"
|
||||
msgstr "přezdívka"
|
||||
|
||||
msgid ""
|
||||
"get nick color name, ignoring case (this calls the info "
|
||||
"\"nick_color_name_ignore_case\" with appropriate range, according to the "
|
||||
"value of CASEMAPPING on the server, defaulting to \"rfc1459\" if the server "
|
||||
"is not given)"
|
||||
"get nick color name (*deprecated* since version 1.5, replaced by "
|
||||
"\"nick_color_name\")"
|
||||
msgstr ""
|
||||
|
||||
msgid "get buffer pointer for an IRC server/channel/nick"
|
||||
|
||||
@@ -26,7 +26,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2023-10-10 19:22+0200\n"
|
||||
"POT-Creation-Date: 2023-10-19 23:54+0200\n"
|
||||
"PO-Revision-Date: 2023-10-11 07:51+0200\n"
|
||||
"Last-Translator: Nils Görs <weechatter@arcor.de>\n"
|
||||
"Language-Team: German <kde-i18n-de@kde.org>\n"
|
||||
@@ -64,8 +64,9 @@ msgstr ""
|
||||
msgid "%sBad file descriptor (%d) used in hook_fd"
|
||||
msgstr "%sBad file descriptor (%d) wurde in Funktion \"hook_fd\" genutzt"
|
||||
|
||||
#, c-format
|
||||
msgid "End of command '%s', timeout reached (%.1fs)"
|
||||
#, fuzzy, c-format
|
||||
#| msgid "End of command '%s', timeout reached (%.1fs)"
|
||||
msgid "End of command '%s', timeout reached (%.3fs)"
|
||||
msgstr "Befehl '%s' beendet, Zeit ist verstrichen (%.1fs)"
|
||||
|
||||
#, c-format
|
||||
@@ -77,8 +78,9 @@ msgstr ""
|
||||
msgid "%sURL transfer error: %s (URL: \"%s\")"
|
||||
msgstr "%sURL Transferfehler: %s (URL: \"%s\")"
|
||||
|
||||
#, c-format
|
||||
msgid "End of URL transfer '%s', timeout reached (%.1fs)"
|
||||
#, fuzzy, c-format
|
||||
#| msgid "End of URL transfer '%s', timeout reached (%.1fs)"
|
||||
msgid "End of URL transfer '%s', timeout reached (%.3fs)"
|
||||
msgstr "Ende der URL-Übertragung „%s“, Zeitüberschreitung erreicht (%.1fs)"
|
||||
|
||||
#, c-format
|
||||
@@ -3520,13 +3522,6 @@ msgstr ""
|
||||
msgid "system actions"
|
||||
msgstr "Systemaktionen"
|
||||
|
||||
#| msgid ""
|
||||
#| " get: display system info\n"
|
||||
#| " rlimit: display resource limits (see /help weechat.startup.sys_rlimit "
|
||||
#| "and \"man getrlimit\")\n"
|
||||
#| " rusage: display resource usage (see \"man getrusage\")\n"
|
||||
#| "suspend: suspend WeeChat and go back to the shell, by sending signal "
|
||||
#| "SIGTSTP to the WeeChat process"
|
||||
msgid ""
|
||||
" get: display system info\n"
|
||||
" rlimit: display resource limits (see /help weechat.startup.sys_rlimit and "
|
||||
@@ -3543,8 +3538,8 @@ msgstr ""
|
||||
" rusage: Ressourcennutzung anzeigen (siehe \"man getrusage\")\n"
|
||||
"suspend: Beendet WeeChat und kehrt zur Shell zurück, indem das Signal "
|
||||
"SIGTSTP an den WeeChat-Prozess gesendet wird\n"
|
||||
"waitpid: Bestätigt das Ende untergeordneter Prozesse (um „Zombie“ Prozesse zu"
|
||||
" verhindern)"
|
||||
"waitpid: Bestätigt das Ende untergeordneter Prozesse (um „Zombie“ Prozesse "
|
||||
"zu verhindern)"
|
||||
|
||||
msgid "toggle value of a config option"
|
||||
msgstr "den Wert einer Konfigurationsoption umschalten"
|
||||
@@ -12447,28 +12442,20 @@ msgid "IRC host (like `:nick!name@server.com`)"
|
||||
msgstr "IRC host (in der Form `:nick!name@server.com`)"
|
||||
|
||||
msgid ""
|
||||
"get nick color code, ignoring case (this calls the info "
|
||||
"\"nick_color_ignore_case\" with appropriate range, according to the value of "
|
||||
"CASEMAPPING on the server, defaulting to \"rfc1459\" if the server is not "
|
||||
"given)"
|
||||
"get nick color code (*deprecated* since version 1.5, replaced by "
|
||||
"\"nick_color\")"
|
||||
msgstr ""
|
||||
"Hole den Farbcode des Nicks, Groß- und Kleinschreibung wird ignoriert (dies "
|
||||
"ruft die Funktion„nick_color_name_ignore_case“ mit entsprechendem Bereich "
|
||||
"auf, dabei wird der Wert des CASEMAPPING auf dem Serverberücksichtigt, "
|
||||
"standardmäßig wird auf „rfc1459“ zurückgegriffen, wenn derServer nicht "
|
||||
"angegeben wurde)"
|
||||
|
||||
#, fuzzy
|
||||
#| msgid "nick"
|
||||
#| msgid_plural "nicks"
|
||||
msgid "nickname"
|
||||
msgstr "Nick"
|
||||
|
||||
msgid ""
|
||||
"get nick color name, ignoring case (this calls the info "
|
||||
"\"nick_color_name_ignore_case\" with appropriate range, according to the "
|
||||
"value of CASEMAPPING on the server, defaulting to \"rfc1459\" if the server "
|
||||
"is not given)"
|
||||
"get nick color name (*deprecated* since version 1.5, replaced by "
|
||||
"\"nick_color_name\")"
|
||||
msgstr ""
|
||||
"Hole den Farbnamen des Nicks, Groß- und Kleinschreibung wird ignoriert (dies "
|
||||
"ruft die Funktion„nick_color_name_ignore_case“ mit entsprechendem Bereich "
|
||||
"auf, dabei wird der Wert des CASEMAPPING auf dem Serverberücksichtigt, "
|
||||
"standardmäßig wird auf „rfc1459“ zurückgegriffen, wenn derServer nicht "
|
||||
"angegeben wurde)"
|
||||
|
||||
msgid "get buffer pointer for an IRC server/channel/nick"
|
||||
msgstr "holt Buffer Pointer für einen IRC Server/Kanal/Nick"
|
||||
@@ -16691,8 +16678,7 @@ msgstr "verwaltet Trigger, das Schweizer Armeemesser für WeeChat"
|
||||
msgid ""
|
||||
"list [-o|-ol|-i|-il] || listfull || listdefault || add|addoff|addreplace "
|
||||
"<name> <hook> "
|
||||
"[\"<arguments>\" [\"<conditions>\" [\"<regex>\" [\"<command>\" [\"<"
|
||||
"return_code>\" [\"<post_action>\"]]]]]] "
|
||||
"[\"<arguments>\" [\"<conditions>\" [\"<regex>\" [\"<command>\" [\"<return_code>\" [\"<post_action>\"]]]]]] "
|
||||
"|| addinput [<hook>] || input|output|recreate <name> || set <name> <option> "
|
||||
"<value> || rename|copy <name> <new_name> || enable|disable|toggle [<name>|-"
|
||||
"all [<name>...]] || restart <name>|-all [<name>...] || show <name> || del "
|
||||
@@ -16701,8 +16687,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"list [-o|-ol|-i|-il] || listfull || listdefault || add|addoff|addreplace "
|
||||
"<name> <hook> "
|
||||
"[\"<arguments>\" [\"<conditions>\" [\"<regex>\" [\"<command>\" [\"<"
|
||||
"return_code>\" [\"<post_action>\"]]]]]] "
|
||||
"[\"<arguments>\" [\"<conditions>\" [\"<regex>\" [\"<command>\" [\"<return_code>\" [\"<post_action>\"]]]]]] "
|
||||
"|| addinput [<hook>] || input|output|recreate <name> || set <name> <option> "
|
||||
"<value> || rename|copy <name> <new_name> || enable|disable|toggle [<name>|-"
|
||||
"all [<name>...]] || restart <name>|-all [<name>...] || show <name> || del "
|
||||
@@ -17631,5 +17616,29 @@ msgid "%s%s: unable to connect: unexpected error (%d)"
|
||||
msgstr ""
|
||||
"%s%s: Verbindung konnte nicht hergestellt werden: unerwarteter Fehler (%d)"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "get nick color code, ignoring case (this calls the info "
|
||||
#~ "\"nick_color_ignore_case\" with appropriate range, according to the value "
|
||||
#~ "of CASEMAPPING on the server, defaulting to \"rfc1459\" if the server is "
|
||||
#~ "not given)"
|
||||
#~ msgstr ""
|
||||
#~ "Hole den Farbcode des Nicks, Groß- und Kleinschreibung wird ignoriert "
|
||||
#~ "(dies ruft die Funktion„nick_color_name_ignore_case“ mit entsprechendem "
|
||||
#~ "Bereich auf, dabei wird der Wert des CASEMAPPING auf dem "
|
||||
#~ "Serverberücksichtigt, standardmäßig wird auf „rfc1459“ zurückgegriffen, "
|
||||
#~ "wenn derServer nicht angegeben wurde)"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "get nick color name, ignoring case (this calls the info "
|
||||
#~ "\"nick_color_name_ignore_case\" with appropriate range, according to the "
|
||||
#~ "value of CASEMAPPING on the server, defaulting to \"rfc1459\" if the "
|
||||
#~ "server is not given)"
|
||||
#~ msgstr ""
|
||||
#~ "Hole den Farbnamen des Nicks, Groß- und Kleinschreibung wird ignoriert "
|
||||
#~ "(dies ruft die Funktion„nick_color_name_ignore_case“ mit entsprechendem "
|
||||
#~ "Bereich auf, dabei wird der Wert des CASEMAPPING auf dem "
|
||||
#~ "Serverberücksichtigt, standardmäßig wird auf „rfc1459“ zurückgegriffen, "
|
||||
#~ "wenn derServer nicht angegeben wurde)"
|
||||
|
||||
#~ msgid "hash algorithm used to check the decrypted data"
|
||||
#~ msgstr "Hash-Algorithmus zur Überprüfung der verschlüsselten Daten"
|
||||
|
||||
@@ -22,7 +22,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2023-10-10 19:22+0200\n"
|
||||
"POT-Creation-Date: 2023-10-19 23:54+0200\n"
|
||||
"PO-Revision-Date: 2023-09-06 19:13+0200\n"
|
||||
"Last-Translator: Santiago Forero <santiago@forero.xyz>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -52,8 +52,9 @@ msgstr "%sError: comando \"%s\" desconocido (use /help para ver la ayuda)"
|
||||
msgid "%sBad file descriptor (%d) used in hook_fd"
|
||||
msgstr "%sError: mal descriptor de archivo (%d) usado en hook_fd"
|
||||
|
||||
#, c-format
|
||||
msgid "End of command '%s', timeout reached (%.1fs)"
|
||||
#, fuzzy, c-format
|
||||
#| msgid "End of command '%s', timeout reached (%.1fs)"
|
||||
msgid "End of command '%s', timeout reached (%.3fs)"
|
||||
msgstr "Fin del comando '%s', tiempo de espera alcanzado (%.1fs)"
|
||||
|
||||
#, c-format
|
||||
@@ -68,7 +69,7 @@ msgstr ""
|
||||
|
||||
#, fuzzy, c-format
|
||||
#| msgid "End of command '%s', timeout reached (%.1fs)"
|
||||
msgid "End of URL transfer '%s', timeout reached (%.1fs)"
|
||||
msgid "End of URL transfer '%s', timeout reached (%.3fs)"
|
||||
msgstr "Fin del comando '%s', tiempo de espera alcanzado (%.1fs)"
|
||||
|
||||
#, c-format
|
||||
@@ -10756,17 +10757,19 @@ msgid "IRC host (like `:nick!name@server.com`)"
|
||||
msgstr "IRC host (como `:apodo!nombre@servidor.com`)"
|
||||
|
||||
msgid ""
|
||||
"get nick color code, ignoring case (this calls the info "
|
||||
"\"nick_color_ignore_case\" with appropriate range, according to the value of "
|
||||
"CASEMAPPING on the server, defaulting to \"rfc1459\" if the server is not "
|
||||
"given)"
|
||||
"get nick color code (*deprecated* since version 1.5, replaced by "
|
||||
"\"nick_color\")"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
#| msgid "nick"
|
||||
#| msgid_plural "nicks"
|
||||
msgid "nickname"
|
||||
msgstr "apodo"
|
||||
|
||||
msgid ""
|
||||
"get nick color name, ignoring case (this calls the info "
|
||||
"\"nick_color_name_ignore_case\" with appropriate range, according to the "
|
||||
"value of CASEMAPPING on the server, defaulting to \"rfc1459\" if the server "
|
||||
"is not given)"
|
||||
"get nick color name (*deprecated* since version 1.5, replaced by "
|
||||
"\"nick_color_name\")"
|
||||
msgstr ""
|
||||
|
||||
msgid "get buffer pointer for an IRC server/channel/nick"
|
||||
|
||||
@@ -21,8 +21,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2023-10-10 19:22+0200\n"
|
||||
"PO-Revision-Date: 2023-10-10 19:22+0200\n"
|
||||
"POT-Creation-Date: 2023-10-19 23:54+0200\n"
|
||||
"PO-Revision-Date: 2023-10-19 23:56+0200\n"
|
||||
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
"Language: fr\n"
|
||||
@@ -56,8 +56,8 @@ msgid "%sBad file descriptor (%d) used in hook_fd"
|
||||
msgstr "%sMauvais descripteur de fichier (%d) utilisé dans hook_fd"
|
||||
|
||||
#, c-format
|
||||
msgid "End of command '%s', timeout reached (%.1fs)"
|
||||
msgstr "Fin de la commande '%s', temps maximum atteint (%.1fs)"
|
||||
msgid "End of command '%s', timeout reached (%.3fs)"
|
||||
msgstr "Fin de la commande '%s', temps maximum atteint (%.3fs)"
|
||||
|
||||
#, c-format
|
||||
msgid "System clock skew detected (%+ld seconds), reinitializing all timers"
|
||||
@@ -70,8 +70,8 @@ msgid "%sURL transfer error: %s (URL: \"%s\")"
|
||||
msgstr "%sErreur de transfert d'URL : %s (URL : \"%s\")"
|
||||
|
||||
#, c-format
|
||||
msgid "End of URL transfer '%s', timeout reached (%.1fs)"
|
||||
msgstr "Fin du transfert d'URL '%s', temps maximum atteint (%.1fs)"
|
||||
msgid "End of URL transfer '%s', timeout reached (%.3fs)"
|
||||
msgstr "Fin du transfert d'URL '%s', temps maximum atteint (%.3fs)"
|
||||
|
||||
#, c-format
|
||||
msgid "%sError running thread in hook_url: %s (URL: \"%s\")"
|
||||
@@ -12209,26 +12209,21 @@ msgid "IRC host (like `:nick!name@server.com`)"
|
||||
msgstr "host IRC (comme `:pseudo!nom@serveur.com`)"
|
||||
|
||||
msgid ""
|
||||
"get nick color code, ignoring case (this calls the info "
|
||||
"\"nick_color_ignore_case\" with appropriate range, according to the value of "
|
||||
"CASEMAPPING on the server, defaulting to \"rfc1459\" if the server is not "
|
||||
"given)"
|
||||
"get nick color code (*deprecated* since version 1.5, replaced by "
|
||||
"\"nick_color\")"
|
||||
msgstr ""
|
||||
"retourne le code couleur du pseudo, en ignorant la casse (cela appelle "
|
||||
"l'info \"nick_color_ignore_case\" avec l'intervalle approprié, selon la "
|
||||
"valeur de CASEMAPPING sur le serveur, par défaut \"rfc1459\" si le serveur "
|
||||
"n'est pas fourni)"
|
||||
"retourne le code couleur du pseudo (*obsolète* depuis la version 1.5, "
|
||||
"remplacé par \"nick_color\")"
|
||||
|
||||
msgid "nickname"
|
||||
msgstr "pseudo"
|
||||
|
||||
msgid ""
|
||||
"get nick color name, ignoring case (this calls the info "
|
||||
"\"nick_color_name_ignore_case\" with appropriate range, according to the "
|
||||
"value of CASEMAPPING on the server, defaulting to \"rfc1459\" if the server "
|
||||
"is not given)"
|
||||
"get nick color name (*deprecated* since version 1.5, replaced by "
|
||||
"\"nick_color_name\")"
|
||||
msgstr ""
|
||||
"retourne le nom de la couleur du pseudo, en ignorant la casse (cela appelle "
|
||||
"l'info \"nick_color_name_ignore_case\" avec l'intervalle approprié, selon la "
|
||||
"valeur de CASEMAPPING sur le serveur, par défaut \"rfc1459\" si le serveur "
|
||||
"n'est pas fourni)"
|
||||
"retourne le nom de la couleur du pseudo (*obsolète* depuis la version 1.5, "
|
||||
"remplacé par \"nick_color_name\")"
|
||||
|
||||
msgid "get buffer pointer for an IRC server/channel/nick"
|
||||
msgstr "retourne le pointeur vers le tampon pour un serveur/canal/pseudo IRC"
|
||||
@@ -17318,3 +17313,25 @@ msgstr "%s%s : délai d'attente dépassé pour \"%s\" avec %s"
|
||||
#, c-format
|
||||
msgid "%s%s: unable to connect: unexpected error (%d)"
|
||||
msgstr "%s%s : impossible de se connecter : erreur inattendue (%d)"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "get nick color code, ignoring case (this calls the info "
|
||||
#~ "\"nick_color_ignore_case\" with appropriate range, according to the value "
|
||||
#~ "of CASEMAPPING on the server, defaulting to \"rfc1459\" if the server is "
|
||||
#~ "not given)"
|
||||
#~ msgstr ""
|
||||
#~ "retourne le code couleur du pseudo, en ignorant la casse (cela appelle "
|
||||
#~ "l'info \"nick_color_ignore_case\" avec l'intervalle approprié, selon la "
|
||||
#~ "valeur de CASEMAPPING sur le serveur, par défaut \"rfc1459\" si le "
|
||||
#~ "serveur n'est pas fourni)"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "get nick color name, ignoring case (this calls the info "
|
||||
#~ "\"nick_color_name_ignore_case\" with appropriate range, according to the "
|
||||
#~ "value of CASEMAPPING on the server, defaulting to \"rfc1459\" if the "
|
||||
#~ "server is not given)"
|
||||
#~ msgstr ""
|
||||
#~ "retourne le nom de la couleur du pseudo, en ignorant la casse (cela "
|
||||
#~ "appelle l'info \"nick_color_name_ignore_case\" avec l'intervalle "
|
||||
#~ "approprié, selon la valeur de CASEMAPPING sur le serveur, par défaut "
|
||||
#~ "\"rfc1459\" si le serveur n'est pas fourni)"
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2023-10-10 19:22+0200\n"
|
||||
"POT-Creation-Date: 2023-10-19 23:54+0200\n"
|
||||
"PO-Revision-Date: 2023-09-06 19:13+0200\n"
|
||||
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -51,7 +51,7 @@ msgid "%sBad file descriptor (%d) used in hook_fd"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "End of command '%s', timeout reached (%.1fs)"
|
||||
msgid "End of command '%s', timeout reached (%.3fs)"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
@@ -63,7 +63,7 @@ msgid "%sURL transfer error: %s (URL: \"%s\")"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "End of URL transfer '%s', timeout reached (%.1fs)"
|
||||
msgid "End of URL transfer '%s', timeout reached (%.3fs)"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
@@ -9441,17 +9441,17 @@ msgid "IRC host (like `:nick!name@server.com`)"
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
"get nick color code, ignoring case (this calls the info "
|
||||
"\"nick_color_ignore_case\" with appropriate range, according to the value of "
|
||||
"CASEMAPPING on the server, defaulting to \"rfc1459\" if the server is not "
|
||||
"given)"
|
||||
"get nick color code (*deprecated* since version 1.5, replaced by "
|
||||
"\"nick_color\")"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
msgid "nickname"
|
||||
msgstr "név"
|
||||
|
||||
msgid ""
|
||||
"get nick color name, ignoring case (this calls the info "
|
||||
"\"nick_color_name_ignore_case\" with appropriate range, according to the "
|
||||
"value of CASEMAPPING on the server, defaulting to \"rfc1459\" if the server "
|
||||
"is not given)"
|
||||
"get nick color name (*deprecated* since version 1.5, replaced by "
|
||||
"\"nick_color_name\")"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2023-10-10 19:22+0200\n"
|
||||
"POT-Creation-Date: 2023-10-19 23:54+0200\n"
|
||||
"PO-Revision-Date: 2023-09-06 19:13+0200\n"
|
||||
"Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -50,8 +50,9 @@ msgstr "%sErrore: comando \"%s\" sconosciuto (digita /help per l'aiuto)"
|
||||
msgid "%sBad file descriptor (%d) used in hook_fd"
|
||||
msgstr "%sErrore: descrittore file errato (%d) usato in hook_fd"
|
||||
|
||||
#, c-format
|
||||
msgid "End of command '%s', timeout reached (%.1fs)"
|
||||
#, fuzzy, c-format
|
||||
#| msgid "End of command '%s', timeout reached (%.1fs)"
|
||||
msgid "End of command '%s', timeout reached (%.3fs)"
|
||||
msgstr "Fine comando '%s', timeout raggiunto (%.1fs)"
|
||||
|
||||
#, c-format
|
||||
@@ -66,7 +67,7 @@ msgstr ""
|
||||
|
||||
#, fuzzy, c-format
|
||||
#| msgid "End of command '%s', timeout reached (%.1fs)"
|
||||
msgid "End of URL transfer '%s', timeout reached (%.1fs)"
|
||||
msgid "End of URL transfer '%s', timeout reached (%.3fs)"
|
||||
msgstr "Fine comando '%s', timeout raggiunto (%.1fs)"
|
||||
|
||||
#, c-format
|
||||
@@ -10485,17 +10486,19 @@ msgid "IRC host (like `:nick!name@server.com`)"
|
||||
msgstr "host IRC (come `:nick!nome@server.com`)"
|
||||
|
||||
msgid ""
|
||||
"get nick color code, ignoring case (this calls the info "
|
||||
"\"nick_color_ignore_case\" with appropriate range, according to the value of "
|
||||
"CASEMAPPING on the server, defaulting to \"rfc1459\" if the server is not "
|
||||
"given)"
|
||||
"get nick color code (*deprecated* since version 1.5, replaced by "
|
||||
"\"nick_color\")"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
#| msgid "nick"
|
||||
#| msgid_plural "nicks"
|
||||
msgid "nickname"
|
||||
msgstr "nick"
|
||||
|
||||
msgid ""
|
||||
"get nick color name, ignoring case (this calls the info "
|
||||
"\"nick_color_name_ignore_case\" with appropriate range, according to the "
|
||||
"value of CASEMAPPING on the server, defaulting to \"rfc1459\" if the server "
|
||||
"is not given)"
|
||||
"get nick color name (*deprecated* since version 1.5, replaced by "
|
||||
"\"nick_color_name\")"
|
||||
msgstr ""
|
||||
|
||||
msgid "get buffer pointer for an IRC server/channel/nick"
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2023-10-10 19:22+0200\n"
|
||||
"POT-Creation-Date: 2023-10-19 23:54+0200\n"
|
||||
"PO-Revision-Date: 2023-09-06 19:13+0200\n"
|
||||
"Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
|
||||
"Language-Team: Japanese <https://github.com/l/weechat/tree/master/"
|
||||
@@ -53,8 +53,9 @@ msgstr "%sエラー: 未定義のコマンド \"%s\" (ヘルプを見るには /
|
||||
msgid "%sBad file descriptor (%d) used in hook_fd"
|
||||
msgstr "%sエラー: hook_fd で不正なファイルディスクリプタ (%d) が使われました"
|
||||
|
||||
#, c-format
|
||||
msgid "End of command '%s', timeout reached (%.1fs)"
|
||||
#, fuzzy, c-format
|
||||
#| msgid "End of command '%s', timeout reached (%.1fs)"
|
||||
msgid "End of command '%s', timeout reached (%.3fs)"
|
||||
msgstr "コマンド '%s' の終了、タイムアウトになりました (%.1fs)"
|
||||
|
||||
#, c-format
|
||||
@@ -70,7 +71,7 @@ msgstr "curl エラー %d (%s) (URL: \"%s\")\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
#| msgid "End of command '%s', timeout reached (%.1fs)"
|
||||
msgid "End of URL transfer '%s', timeout reached (%.1fs)"
|
||||
msgid "End of URL transfer '%s', timeout reached (%.3fs)"
|
||||
msgstr "コマンド '%s' の終了、タイムアウトになりました (%.1fs)"
|
||||
|
||||
#, c-format
|
||||
@@ -11740,17 +11741,19 @@ msgid "IRC host (like `:nick!name@server.com`)"
|
||||
msgstr "IRC ホスト (例: `:nick!name@server.com`)"
|
||||
|
||||
msgid ""
|
||||
"get nick color code, ignoring case (this calls the info "
|
||||
"\"nick_color_ignore_case\" with appropriate range, according to the value of "
|
||||
"CASEMAPPING on the server, defaulting to \"rfc1459\" if the server is not "
|
||||
"given)"
|
||||
"get nick color code (*deprecated* since version 1.5, replaced by "
|
||||
"\"nick_color\")"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
#| msgid "nick"
|
||||
#| msgid_plural "nicks"
|
||||
msgid "nickname"
|
||||
msgstr "ニックネーム"
|
||||
|
||||
msgid ""
|
||||
"get nick color name, ignoring case (this calls the info "
|
||||
"\"nick_color_name_ignore_case\" with appropriate range, according to the "
|
||||
"value of CASEMAPPING on the server, defaulting to \"rfc1459\" if the server "
|
||||
"is not given)"
|
||||
"get nick color name (*deprecated* since version 1.5, replaced by "
|
||||
"\"nick_color_name\")"
|
||||
msgstr ""
|
||||
|
||||
msgid "get buffer pointer for an IRC server/channel/nick"
|
||||
|
||||
@@ -22,7 +22,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2023-10-10 19:22+0200\n"
|
||||
"POT-Creation-Date: 2023-10-19 23:54+0200\n"
|
||||
"PO-Revision-Date: 2023-09-06 19:13+0200\n"
|
||||
"Last-Translator: Krzysztof Korościk <soltys@soltys.info>\n"
|
||||
"Language-Team: Polish <kde-i18n-doc@kde.org>\n"
|
||||
@@ -56,8 +56,9 @@ msgstr "%sNieznana komenda \"%s\" (wpisz /help , aby uzyskać pomoc)"
|
||||
msgid "%sBad file descriptor (%d) used in hook_fd"
|
||||
msgstr "%sZły deskryptor pliku (%d) użyty w hook_fd"
|
||||
|
||||
#, c-format
|
||||
msgid "End of command '%s', timeout reached (%.1fs)"
|
||||
#, fuzzy, c-format
|
||||
#| msgid "End of command '%s', timeout reached (%.1fs)"
|
||||
msgid "End of command '%s', timeout reached (%.3fs)"
|
||||
msgstr "Kończenie komendy '%s', przekroczono dopuszczalny czas (%.1fs)"
|
||||
|
||||
#, c-format
|
||||
@@ -73,7 +74,7 @@ msgstr "błąd curl %d (%s) (URL: \"%s\")\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
#| msgid "End of command '%s', timeout reached (%.1fs)"
|
||||
msgid "End of URL transfer '%s', timeout reached (%.1fs)"
|
||||
msgid "End of URL transfer '%s', timeout reached (%.3fs)"
|
||||
msgstr "Kończenie komendy '%s', przekroczono dopuszczalny czas (%.1fs)"
|
||||
|
||||
#, c-format
|
||||
@@ -12954,17 +12955,19 @@ msgid "IRC host (like `:nick!name@server.com`)"
|
||||
msgstr "Host IRC (jak `:nick!nazwa@serwer.com`)"
|
||||
|
||||
msgid ""
|
||||
"get nick color code, ignoring case (this calls the info "
|
||||
"\"nick_color_ignore_case\" with appropriate range, according to the value of "
|
||||
"CASEMAPPING on the server, defaulting to \"rfc1459\" if the server is not "
|
||||
"given)"
|
||||
"get nick color code (*deprecated* since version 1.5, replaced by "
|
||||
"\"nick_color\")"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
#| msgid "nick"
|
||||
#| msgid_plural "nicks"
|
||||
msgid "nickname"
|
||||
msgstr "nick"
|
||||
|
||||
msgid ""
|
||||
"get nick color name, ignoring case (this calls the info "
|
||||
"\"nick_color_name_ignore_case\" with appropriate range, according to the "
|
||||
"value of CASEMAPPING on the server, defaulting to \"rfc1459\" if the server "
|
||||
"is not given)"
|
||||
"get nick color name (*deprecated* since version 1.5, replaced by "
|
||||
"\"nick_color_name\")"
|
||||
msgstr ""
|
||||
|
||||
msgid "get buffer pointer for an IRC server/channel/nick"
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2023-10-10 19:22+0200\n"
|
||||
"POT-Creation-Date: 2023-10-19 23:54+0200\n"
|
||||
"PO-Revision-Date: 2023-09-06 19:13+0200\n"
|
||||
"Last-Translator: Vasco Almeida <vascomalmeida@sapo.pt>\n"
|
||||
"Language-Team: Portuguese <>\n"
|
||||
@@ -51,8 +51,9 @@ msgstr "%sErro: comando desconhecido: \"%s\" (escreva /help para obter ajuda)"
|
||||
msgid "%sBad file descriptor (%d) used in hook_fd"
|
||||
msgstr "%sErro: descritor de ficheiro incorreto (%d) usado em hook_fd"
|
||||
|
||||
#, c-format
|
||||
msgid "End of command '%s', timeout reached (%.1fs)"
|
||||
#, fuzzy, c-format
|
||||
#| msgid "End of command '%s', timeout reached (%.1fs)"
|
||||
msgid "End of command '%s', timeout reached (%.3fs)"
|
||||
msgstr "Fim do comando '%s', tempo limite atingido (%.1fs)"
|
||||
|
||||
#, c-format
|
||||
@@ -68,7 +69,7 @@ msgstr "erro curl %d (%s) (URL: \"%s\")\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
#| msgid "End of command '%s', timeout reached (%.1fs)"
|
||||
msgid "End of URL transfer '%s', timeout reached (%.1fs)"
|
||||
msgid "End of URL transfer '%s', timeout reached (%.3fs)"
|
||||
msgstr "Fim do comando '%s', tempo limite atingido (%.1fs)"
|
||||
|
||||
#, c-format
|
||||
@@ -11441,17 +11442,19 @@ msgid "IRC host (like `:nick!name@server.com`)"
|
||||
msgstr "host de IRC (tal como `:nick!nome@servidor.com`)"
|
||||
|
||||
msgid ""
|
||||
"get nick color code, ignoring case (this calls the info "
|
||||
"\"nick_color_ignore_case\" with appropriate range, according to the value of "
|
||||
"CASEMAPPING on the server, defaulting to \"rfc1459\" if the server is not "
|
||||
"given)"
|
||||
"get nick color code (*deprecated* since version 1.5, replaced by "
|
||||
"\"nick_color\")"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
#| msgid "nick"
|
||||
#| msgid_plural "nicks"
|
||||
msgid "nickname"
|
||||
msgstr "nick"
|
||||
|
||||
msgid ""
|
||||
"get nick color name, ignoring case (this calls the info "
|
||||
"\"nick_color_name_ignore_case\" with appropriate range, according to the "
|
||||
"value of CASEMAPPING on the server, defaulting to \"rfc1459\" if the server "
|
||||
"is not given)"
|
||||
"get nick color name (*deprecated* since version 1.5, replaced by "
|
||||
"\"nick_color_name\")"
|
||||
msgstr ""
|
||||
|
||||
msgid "get buffer pointer for an IRC server/channel/nick"
|
||||
|
||||
+13
-11
@@ -21,7 +21,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2023-10-10 19:22+0200\n"
|
||||
"POT-Creation-Date: 2023-10-19 23:54+0200\n"
|
||||
"PO-Revision-Date: 2023-09-06 19:13+0200\n"
|
||||
"Last-Translator: Érico Nogueira <ericonr@disroot.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -53,7 +53,7 @@ msgid "%sBad file descriptor (%d) used in hook_fd"
|
||||
msgstr "%sDescritor de arquivo ruim (%d) usado em hook_fd"
|
||||
|
||||
#, c-format
|
||||
msgid "End of command '%s', timeout reached (%.1fs)"
|
||||
msgid "End of command '%s', timeout reached (%.3fs)"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
@@ -67,7 +67,7 @@ msgid "%sURL transfer error: %s (URL: \"%s\")"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "End of URL transfer '%s', timeout reached (%.1fs)"
|
||||
msgid "End of URL transfer '%s', timeout reached (%.3fs)"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
@@ -10027,17 +10027,19 @@ msgid "IRC host (like `:nick!name@server.com`)"
|
||||
msgstr "host IRC (exemplo: `:apelido!nome@servidor.com`)"
|
||||
|
||||
msgid ""
|
||||
"get nick color code, ignoring case (this calls the info "
|
||||
"\"nick_color_ignore_case\" with appropriate range, according to the value of "
|
||||
"CASEMAPPING on the server, defaulting to \"rfc1459\" if the server is not "
|
||||
"given)"
|
||||
"get nick color code (*deprecated* since version 1.5, replaced by "
|
||||
"\"nick_color\")"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
#| msgid "nick"
|
||||
#| msgid_plural "nicks"
|
||||
msgid "nickname"
|
||||
msgstr "apelido"
|
||||
|
||||
msgid ""
|
||||
"get nick color name, ignoring case (this calls the info "
|
||||
"\"nick_color_name_ignore_case\" with appropriate range, according to the "
|
||||
"value of CASEMAPPING on the server, defaulting to \"rfc1459\" if the server "
|
||||
"is not given)"
|
||||
"get nick color name (*deprecated* since version 1.5, replaced by "
|
||||
"\"nick_color_name\")"
|
||||
msgstr ""
|
||||
|
||||
msgid "get buffer pointer for an IRC server/channel/nick"
|
||||
|
||||
@@ -21,7 +21,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2023-10-10 19:22+0200\n"
|
||||
"POT-Creation-Date: 2023-10-19 23:54+0200\n"
|
||||
"PO-Revision-Date: 2023-09-06 19:13+0200\n"
|
||||
"Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -54,7 +54,7 @@ msgid "%sBad file descriptor (%d) used in hook_fd"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "End of command '%s', timeout reached (%.1fs)"
|
||||
msgid "End of command '%s', timeout reached (%.3fs)"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
@@ -66,7 +66,7 @@ msgid "%sURL transfer error: %s (URL: \"%s\")"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "End of URL transfer '%s', timeout reached (%.1fs)"
|
||||
msgid "End of URL transfer '%s', timeout reached (%.3fs)"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
@@ -9480,17 +9480,17 @@ msgid "IRC host (like `:nick!name@server.com`)"
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
"get nick color code, ignoring case (this calls the info "
|
||||
"\"nick_color_ignore_case\" with appropriate range, according to the value of "
|
||||
"CASEMAPPING on the server, defaulting to \"rfc1459\" if the server is not "
|
||||
"given)"
|
||||
"get nick color code (*deprecated* since version 1.5, replaced by "
|
||||
"\"nick_color\")"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
msgid "nickname"
|
||||
msgstr "ник"
|
||||
|
||||
msgid ""
|
||||
"get nick color name, ignoring case (this calls the info "
|
||||
"\"nick_color_name_ignore_case\" with appropriate range, according to the "
|
||||
"value of CASEMAPPING on the server, defaulting to \"rfc1459\" if the server "
|
||||
"is not given)"
|
||||
"get nick color name (*deprecated* since version 1.5, replaced by "
|
||||
"\"nick_color_name\")"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2023-10-10 19:22+0200\n"
|
||||
"POT-Creation-Date: 2023-10-19 23:54+0200\n"
|
||||
"PO-Revision-Date: 2023-09-06 19:13+0200\n"
|
||||
"Last-Translator: Ivan Pešić <ivan.pesic@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -55,8 +55,9 @@ msgstr ""
|
||||
msgid "%sBad file descriptor (%d) used in hook_fd"
|
||||
msgstr "%sУ hook_fd је употребљен лош дескриптор фајла (%d)"
|
||||
|
||||
#, c-format
|
||||
msgid "End of command '%s', timeout reached (%.1fs)"
|
||||
#, fuzzy, c-format
|
||||
#| msgid "End of command '%s', timeout reached (%.1fs)"
|
||||
msgid "End of command '%s', timeout reached (%.3fs)"
|
||||
msgstr "Крај команде ’%s’, достигнут је тајмаут (%.1fs)"
|
||||
|
||||
#, c-format
|
||||
@@ -72,7 +73,7 @@ msgstr "curl грешка %d (%s) (URL: „%s”)\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
#| msgid "End of command '%s', timeout reached (%.1fs)"
|
||||
msgid "End of URL transfer '%s', timeout reached (%.1fs)"
|
||||
msgid "End of URL transfer '%s', timeout reached (%.3fs)"
|
||||
msgstr "Крај команде ’%s’, достигнут је тајмаут (%.1fs)"
|
||||
|
||||
#, c-format
|
||||
@@ -12038,26 +12039,20 @@ msgid "IRC host (like `:nick!name@server.com`)"
|
||||
msgstr "IRC хост (као `:надимак!име@сервер.com`)"
|
||||
|
||||
msgid ""
|
||||
"get nick color code, ignoring case (this calls the info "
|
||||
"\"nick_color_ignore_case\" with appropriate range, according to the value of "
|
||||
"CASEMAPPING on the server, defaulting to \"rfc1459\" if the server is not "
|
||||
"given)"
|
||||
"get nick color code (*deprecated* since version 1.5, replaced by "
|
||||
"\"nick_color\")"
|
||||
msgstr ""
|
||||
"враћа код боје надимка, без разликовања величине слова (ово позива инфо "
|
||||
"„nick_color_ignore_case” са одговарајућим опсегом, у сагласности са "
|
||||
"вредношћу CASEMAPPING на серверу, узимајући подразумевану вредност „rfc1459” "
|
||||
"ако се сервер не наведе)"
|
||||
|
||||
#, fuzzy
|
||||
#| msgid "nick"
|
||||
#| msgid_plural "nicks"
|
||||
msgid "nickname"
|
||||
msgstr "надимак"
|
||||
|
||||
msgid ""
|
||||
"get nick color name, ignoring case (this calls the info "
|
||||
"\"nick_color_name_ignore_case\" with appropriate range, according to the "
|
||||
"value of CASEMAPPING on the server, defaulting to \"rfc1459\" if the server "
|
||||
"is not given)"
|
||||
"get nick color name (*deprecated* since version 1.5, replaced by "
|
||||
"\"nick_color_name\")"
|
||||
msgstr ""
|
||||
"враћа име боје надимка, без разликовања величине слова (ово позива инфо "
|
||||
"„nick_color_name_ignore_case” са одговарајућим опсегом, у сагласности са "
|
||||
"вредношћу CASEMAPPING на серверу, узимајући подразумевану вредност „rfc1459” "
|
||||
"ако се сервер не наведе)"
|
||||
|
||||
msgid "get buffer pointer for an IRC server/channel/nick"
|
||||
msgstr "враћа показивач на бафер за IRC сервер/канал/надимак"
|
||||
@@ -17132,5 +17127,27 @@ msgstr "%s%s: тајмаут за „%s” са %s"
|
||||
msgid "%s%s: unable to connect: unexpected error (%d)"
|
||||
msgstr "%s%s: повезивање није успело: неочекивана грешка (%d)"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "get nick color code, ignoring case (this calls the info "
|
||||
#~ "\"nick_color_ignore_case\" with appropriate range, according to the value "
|
||||
#~ "of CASEMAPPING on the server, defaulting to \"rfc1459\" if the server is "
|
||||
#~ "not given)"
|
||||
#~ msgstr ""
|
||||
#~ "враћа код боје надимка, без разликовања величине слова (ово позива инфо "
|
||||
#~ "„nick_color_ignore_case” са одговарајућим опсегом, у сагласности са "
|
||||
#~ "вредношћу CASEMAPPING на серверу, узимајући подразумевану вредност "
|
||||
#~ "„rfc1459” ако се сервер не наведе)"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "get nick color name, ignoring case (this calls the info "
|
||||
#~ "\"nick_color_name_ignore_case\" with appropriate range, according to the "
|
||||
#~ "value of CASEMAPPING on the server, defaulting to \"rfc1459\" if the "
|
||||
#~ "server is not given)"
|
||||
#~ msgstr ""
|
||||
#~ "враћа име боје надимка, без разликовања величине слова (ово позива инфо "
|
||||
#~ "„nick_color_name_ignore_case” са одговарајућим опсегом, у сагласности са "
|
||||
#~ "вредношћу CASEMAPPING на серверу, узимајући подразумевану вредност "
|
||||
#~ "„rfc1459” ако се сервер не наведе)"
|
||||
|
||||
#~ msgid "hash algorithm used to check the decrypted data"
|
||||
#~ msgstr "хеш алгоритам који се користи за проверу дешифрованих података"
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2023-10-10 19:22+0200\n"
|
||||
"POT-Creation-Date: 2023-10-19 23:54+0200\n"
|
||||
"PO-Revision-Date: 2023-09-06 19:13+0200\n"
|
||||
"Last-Translator: Emir SARI <emir_sari@icloud.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -51,8 +51,9 @@ msgstr "%s Bilinmeyen komut \"%s\" (yardım için /help yazın)"
|
||||
msgid "%sBad file descriptor (%d) used in hook_fd"
|
||||
msgstr "%sHatalı dosya açıklayıcısı (%d) hook_fd içinde kullanılmış"
|
||||
|
||||
#, c-format
|
||||
msgid "End of command '%s', timeout reached (%.1fs)"
|
||||
#, fuzzy, c-format
|
||||
#| msgid "End of command '%s', timeout reached (%.1fs)"
|
||||
msgid "End of command '%s', timeout reached (%.3fs)"
|
||||
msgstr "'%s' komutu sonu, zaman aşımına ulaşıldı (%.1fs)"
|
||||
|
||||
#, c-format
|
||||
@@ -67,7 +68,7 @@ msgstr "curl hatası %d (%s) (URL: \"%s\")\n"
|
||||
|
||||
#, fuzzy, c-format
|
||||
#| msgid "End of command '%s', timeout reached (%.1fs)"
|
||||
msgid "End of URL transfer '%s', timeout reached (%.1fs)"
|
||||
msgid "End of URL transfer '%s', timeout reached (%.3fs)"
|
||||
msgstr "'%s' komutu sonu, zaman aşımına ulaşıldı (%.1fs)"
|
||||
|
||||
#, c-format
|
||||
@@ -12440,17 +12441,19 @@ msgid "IRC host (like `:nick!name@server.com`)"
|
||||
msgstr "IRC makinesi (örneğin: `:nick!name@server.com`)"
|
||||
|
||||
msgid ""
|
||||
"get nick color code, ignoring case (this calls the info "
|
||||
"\"nick_color_ignore_case\" with appropriate range, according to the value of "
|
||||
"CASEMAPPING on the server, defaulting to \"rfc1459\" if the server is not "
|
||||
"given)"
|
||||
"get nick color code (*deprecated* since version 1.5, replaced by "
|
||||
"\"nick_color\")"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
#| msgid "nick"
|
||||
#| msgid_plural "nicks"
|
||||
msgid "nickname"
|
||||
msgstr "takma ad"
|
||||
|
||||
msgid ""
|
||||
"get nick color name, ignoring case (this calls the info "
|
||||
"\"nick_color_name_ignore_case\" with appropriate range, according to the "
|
||||
"value of CASEMAPPING on the server, defaulting to \"rfc1459\" if the server "
|
||||
"is not given)"
|
||||
"get nick color name (*deprecated* since version 1.5, replaced by "
|
||||
"\"nick_color_name\")"
|
||||
msgstr ""
|
||||
|
||||
msgid "get buffer pointer for an IRC server/channel/nick"
|
||||
|
||||
+10
-11
@@ -21,7 +21,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2023-10-10 19:22+0200\n"
|
||||
"POT-Creation-Date: 2023-10-19 23:54+0200\n"
|
||||
"PO-Revision-Date: 2014-08-16 10:27+0200\n"
|
||||
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -51,7 +51,7 @@ msgid "%sBad file descriptor (%d) used in hook_fd"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "End of command '%s', timeout reached (%.1fs)"
|
||||
msgid "End of command '%s', timeout reached (%.3fs)"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
@@ -63,7 +63,7 @@ msgid "%sURL transfer error: %s (URL: \"%s\")"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "End of URL transfer '%s', timeout reached (%.1fs)"
|
||||
msgid "End of URL transfer '%s', timeout reached (%.3fs)"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
@@ -8497,17 +8497,16 @@ msgid "IRC host (like `:nick!name@server.com`)"
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
"get nick color code, ignoring case (this calls the info "
|
||||
"\"nick_color_ignore_case\" with appropriate range, according to the value of "
|
||||
"CASEMAPPING on the server, defaulting to \"rfc1459\" if the server is not "
|
||||
"given)"
|
||||
"get nick color code (*deprecated* since version 1.5, replaced by "
|
||||
"\"nick_color\")"
|
||||
msgstr ""
|
||||
|
||||
msgid "nickname"
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
"get nick color name, ignoring case (this calls the info "
|
||||
"\"nick_color_name_ignore_case\" with appropriate range, according to the "
|
||||
"value of CASEMAPPING on the server, defaulting to \"rfc1459\" if the server "
|
||||
"is not given)"
|
||||
"get nick color name (*deprecated* since version 1.5, replaced by "
|
||||
"\"nick_color_name\")"
|
||||
msgstr ""
|
||||
|
||||
msgid "get buffer pointer for an IRC server/channel/nick"
|
||||
|
||||
@@ -270,7 +270,7 @@ hook_connect_free_data (struct t_hook *hook)
|
||||
if (HOOK_CONNECT(hook, child_pid) > 0)
|
||||
{
|
||||
kill (HOOK_CONNECT(hook, child_pid), SIGKILL);
|
||||
hook_schedule_clean_children ();
|
||||
hook_schedule_clean_process (HOOK_CONNECT(hook, child_pid));
|
||||
HOOK_CONNECT(hook, child_pid) = 0;
|
||||
}
|
||||
if (HOOK_CONNECT(hook, child_read) != -1)
|
||||
|
||||
@@ -862,7 +862,7 @@ hook_process_free_data (struct t_hook *hook)
|
||||
if (HOOK_PROCESS(hook, child_pid) > 0)
|
||||
{
|
||||
kill (HOOK_PROCESS(hook, child_pid), SIGKILL);
|
||||
hook_schedule_clean_children ();
|
||||
hook_schedule_clean_process (HOOK_PROCESS(hook, child_pid));
|
||||
HOOK_PROCESS(hook, child_pid) = 0;
|
||||
}
|
||||
if (HOOK_PROCESS(hook, child_read[HOOK_PROCESS_STDIN]) != -1)
|
||||
|
||||
+20
-10
@@ -2197,17 +2197,20 @@ config_weechat_custom_bar_item_read_cb (const void *pointer, void *data,
|
||||
if (!ptr_temp_item)
|
||||
{
|
||||
/* create new temporary custom bar item */
|
||||
ptr_temp_item = gui_bar_item_custom_alloc (item_name);
|
||||
if (ptr_temp_item)
|
||||
if (gui_bar_item_search_default (item_name) < 0)
|
||||
{
|
||||
/* add new custom bar item at the end */
|
||||
ptr_temp_item->prev_item = last_gui_temp_custom_bar_item;
|
||||
ptr_temp_item->next_item = NULL;
|
||||
if (last_gui_temp_custom_bar_item)
|
||||
last_gui_temp_custom_bar_item->next_item = ptr_temp_item;
|
||||
else
|
||||
gui_temp_custom_bar_items = ptr_temp_item;
|
||||
last_gui_temp_custom_bar_item = ptr_temp_item;
|
||||
ptr_temp_item = gui_bar_item_custom_alloc (item_name);
|
||||
if (ptr_temp_item)
|
||||
{
|
||||
/* add new custom bar item at the end */
|
||||
ptr_temp_item->prev_item = last_gui_temp_custom_bar_item;
|
||||
ptr_temp_item->next_item = NULL;
|
||||
if (last_gui_temp_custom_bar_item)
|
||||
last_gui_temp_custom_bar_item->next_item = ptr_temp_item;
|
||||
else
|
||||
gui_temp_custom_bar_items = ptr_temp_item;
|
||||
last_gui_temp_custom_bar_item = ptr_temp_item;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2228,6 +2231,13 @@ config_weechat_custom_bar_item_read_cb (const void *pointer, void *data,
|
||||
section->name, option_name, value);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
gui_chat_printf (NULL,
|
||||
_("%sUnable to add custom bar item \"%s\""),
|
||||
gui_chat_prefix[GUI_CHAT_PREFIX_ERROR],
|
||||
item_name);
|
||||
}
|
||||
|
||||
free (item_name);
|
||||
|
||||
|
||||
@@ -1658,9 +1658,11 @@ doc_generate (const char *path)
|
||||
* (this is used to generate documentation without installing WeeChat,
|
||||
* that means no need to run `make install`)
|
||||
*/
|
||||
#ifdef ENABLE_NLS
|
||||
localedir = getenv ("WEECHAT_DOCGEN_LOCALEDIR");
|
||||
if (localedir && localedir[0])
|
||||
bindtextdomain (PACKAGE, localedir);
|
||||
#endif /* ENABLE_NLS */
|
||||
|
||||
for (i = 0; locales[i]; i++)
|
||||
{
|
||||
|
||||
+16
-8
@@ -28,6 +28,7 @@
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/wait.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "weechat.h"
|
||||
@@ -38,7 +39,6 @@
|
||||
#include "wee-log.h"
|
||||
#include "wee-signal.h"
|
||||
#include "wee-string.h"
|
||||
#include "wee-sys.h"
|
||||
#include "wee-util.h"
|
||||
#include "../gui/gui-chat.h"
|
||||
#include "../plugins/plugin.h"
|
||||
@@ -629,20 +629,19 @@ hook_set (struct t_hook *hook, const char *property, const char *value)
|
||||
}
|
||||
|
||||
/*
|
||||
* Callback used to clean all children (forked processes) by acknowledging
|
||||
* their end.
|
||||
* Callback used to clean a process (forked processes) by acknowledging its end.
|
||||
*/
|
||||
|
||||
int
|
||||
hook_timer_clean_children_cb (const void *pointer, void *data,
|
||||
int remaining_calls)
|
||||
hook_timer_clean_process_cb (const void *pointer, void *data,
|
||||
int remaining_calls)
|
||||
{
|
||||
/* make C compiler happy */
|
||||
(void) pointer;
|
||||
(void) data;
|
||||
(void) remaining_calls;
|
||||
|
||||
sys_waitpid ();
|
||||
waitpid (*((pid_t *)data), NULL, WNOHANG);
|
||||
|
||||
return WEECHAT_RC_OK;
|
||||
}
|
||||
@@ -652,9 +651,18 @@ hook_timer_clean_children_cb (const void *pointer, void *data,
|
||||
*/
|
||||
|
||||
void
|
||||
hook_schedule_clean_children ()
|
||||
hook_schedule_clean_process (pid_t pid)
|
||||
{
|
||||
hook_timer (NULL, 100, 0, 1, &hook_timer_clean_children_cb, NULL, NULL);
|
||||
pid_t *temp_pid;
|
||||
|
||||
/* temp_pid will be freed when the timer is removed */
|
||||
temp_pid = malloc (sizeof (*temp_pid));
|
||||
if (temp_pid)
|
||||
{
|
||||
*temp_pid = pid;
|
||||
hook_timer (NULL, 100, 0, 1,
|
||||
&hook_timer_clean_process_cb, NULL, temp_pid);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
+1
-1
@@ -146,7 +146,7 @@ extern void hook_callback_end (struct t_hook *hook,
|
||||
extern char *hook_get_description (struct t_hook *hook);
|
||||
extern void hook_set (struct t_hook *hook, const char *property,
|
||||
const char *value);
|
||||
extern void hook_schedule_clean_children ();
|
||||
extern void hook_schedule_clean_process (pid_t pid);
|
||||
extern void unhook (struct t_hook *hook);
|
||||
extern void unhook_all_plugin (struct t_weechat_plugin *plugin,
|
||||
const char *subplugin);
|
||||
|
||||
+1
-5
@@ -33,11 +33,7 @@
|
||||
#include <locale.h>
|
||||
|
||||
#if defined(ENABLE_NLS) && !defined(_)
|
||||
#ifdef HAVE_LIBINTL_H
|
||||
#include <libintl.h>
|
||||
#else
|
||||
#include "../../intl/libintl.h"
|
||||
#endif /* HAVE_LIBINTL_H */
|
||||
#include <libintl.h>
|
||||
#define _(string) gettext(string)
|
||||
#define NG_(single,plural,number) ngettext(single,plural,number)
|
||||
#ifdef gettext_noop
|
||||
|
||||
@@ -439,31 +439,46 @@ gui_bar_item_custom_new (const char *name, const char *conditions,
|
||||
if (gui_bar_item_custom_search (name))
|
||||
return NULL;
|
||||
|
||||
if (gui_bar_item_search_default (name) >= 0)
|
||||
return NULL;
|
||||
|
||||
option_conditions = NULL;
|
||||
option_content = NULL;
|
||||
new_bar_item_custom = NULL;
|
||||
|
||||
option_conditions = gui_bar_item_custom_create_option (
|
||||
name,
|
||||
GUI_BAR_ITEM_CUSTOM_OPTION_CONDITIONS,
|
||||
conditions);
|
||||
if (!option_conditions)
|
||||
return NULL;
|
||||
goto error;
|
||||
|
||||
option_content = gui_bar_item_custom_create_option (
|
||||
name,
|
||||
GUI_BAR_ITEM_CUSTOM_OPTION_CONTENT,
|
||||
content);
|
||||
if (!option_content)
|
||||
{
|
||||
config_file_option_free (option_conditions, 0);
|
||||
return NULL;
|
||||
}
|
||||
goto error;
|
||||
|
||||
new_bar_item_custom = gui_bar_item_custom_new_with_options (
|
||||
name,
|
||||
option_conditions,
|
||||
option_content);
|
||||
if (!new_bar_item_custom)
|
||||
goto error;
|
||||
|
||||
gui_bar_item_custom_create_bar_item (new_bar_item_custom);
|
||||
if (!new_bar_item_custom->bar_item)
|
||||
goto error;
|
||||
|
||||
gui_bar_item_update (name);
|
||||
|
||||
return new_bar_item_custom;
|
||||
|
||||
error:
|
||||
if (new_bar_item_custom)
|
||||
{
|
||||
gui_bar_item_custom_create_bar_item (new_bar_item_custom);
|
||||
gui_bar_item_update (name);
|
||||
gui_bar_item_custom_free (new_bar_item_custom);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -472,8 +487,7 @@ gui_bar_item_custom_new (const char *name, const char *conditions,
|
||||
if (option_content)
|
||||
config_file_option_free (option_content, 0);
|
||||
}
|
||||
|
||||
return new_bar_item_custom;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -483,12 +497,13 @@ gui_bar_item_custom_new (const char *name, const char *conditions,
|
||||
void
|
||||
gui_bar_item_custom_use_temp_items ()
|
||||
{
|
||||
struct t_gui_bar_item_custom *ptr_temp_item;
|
||||
struct t_gui_bar_item_custom *ptr_temp_item, *ptr_next_temp_item;
|
||||
int i;
|
||||
|
||||
for (ptr_temp_item = gui_temp_custom_bar_items; ptr_temp_item;
|
||||
ptr_temp_item = ptr_temp_item->next_item)
|
||||
ptr_temp_item = gui_temp_custom_bar_items;
|
||||
while (ptr_temp_item)
|
||||
{
|
||||
ptr_next_temp_item = ptr_temp_item->next_item;
|
||||
for (i = 0; i < GUI_BAR_ITEM_CUSTOM_NUM_OPTIONS; i++)
|
||||
{
|
||||
if (!ptr_temp_item->options[i])
|
||||
@@ -500,6 +515,20 @@ gui_bar_item_custom_use_temp_items ()
|
||||
}
|
||||
}
|
||||
gui_bar_item_custom_create_bar_item (ptr_temp_item);
|
||||
if (!ptr_temp_item->bar_item)
|
||||
{
|
||||
if (ptr_temp_item->prev_item)
|
||||
(ptr_temp_item->prev_item)->next_item = ptr_temp_item->next_item;
|
||||
if (ptr_temp_item->next_item)
|
||||
(ptr_temp_item->next_item)->prev_item = ptr_temp_item->prev_item;
|
||||
if (gui_temp_custom_bar_items == ptr_temp_item)
|
||||
gui_temp_custom_bar_items = ptr_temp_item->next_item;
|
||||
if (last_gui_temp_custom_bar_item == ptr_temp_item)
|
||||
last_gui_temp_custom_bar_item = ptr_temp_item->prev_item;
|
||||
gui_bar_item_custom_free_data (ptr_temp_item);
|
||||
free (ptr_temp_item);
|
||||
}
|
||||
ptr_temp_item = ptr_next_temp_item;
|
||||
}
|
||||
|
||||
/* remove any existing custom bar item */
|
||||
@@ -534,6 +563,9 @@ gui_bar_item_custom_rename (struct t_gui_bar_item_custom *item,
|
||||
if (gui_bar_item_custom_search (new_name))
|
||||
return 0;
|
||||
|
||||
if (gui_bar_item_search_default (new_name) >= 0)
|
||||
return 0;
|
||||
|
||||
old_name = strdup (item->name);
|
||||
if (!old_name)
|
||||
return 0;
|
||||
@@ -570,6 +602,24 @@ gui_bar_item_custom_rename (struct t_gui_bar_item_custom *item,
|
||||
return 1;
|
||||
}
|
||||
|
||||
/*
|
||||
* Frees data in a custom bar item.*
|
||||
*/
|
||||
|
||||
void
|
||||
gui_bar_item_custom_free_data (struct t_gui_bar_item_custom *item)
|
||||
{
|
||||
int i;
|
||||
|
||||
if (item->name)
|
||||
free (item->name);
|
||||
for (i = 0; i < GUI_BAR_ITEM_CUSTOM_NUM_OPTIONS; i++)
|
||||
{
|
||||
if (item->options[i])
|
||||
config_file_option_free (item->options[i], 1);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Deletes a custom bar item.
|
||||
*/
|
||||
@@ -578,7 +628,6 @@ void
|
||||
gui_bar_item_custom_free (struct t_gui_bar_item_custom *item)
|
||||
{
|
||||
char *name;
|
||||
int i;
|
||||
|
||||
if (!item)
|
||||
return;
|
||||
@@ -599,13 +648,7 @@ gui_bar_item_custom_free (struct t_gui_bar_item_custom *item)
|
||||
last_gui_custom_bar_item = item->prev_item;
|
||||
|
||||
/* free data */
|
||||
if (item->name)
|
||||
free (item->name);
|
||||
for (i = 0; i < GUI_BAR_ITEM_CUSTOM_NUM_OPTIONS; i++)
|
||||
{
|
||||
if (item->options[i])
|
||||
config_file_option_free (item->options[i], 1);
|
||||
}
|
||||
gui_bar_item_custom_free_data (item);
|
||||
|
||||
free (item);
|
||||
|
||||
|
||||
@@ -69,6 +69,7 @@ extern struct t_gui_bar_item_custom *gui_bar_item_custom_new (const char *name,
|
||||
extern void gui_bar_item_custom_use_temp_items ();
|
||||
extern int gui_bar_item_custom_rename (struct t_gui_bar_item_custom *item,
|
||||
const char *new_name);
|
||||
extern void gui_bar_item_custom_free_data (struct t_gui_bar_item_custom *item);
|
||||
extern void gui_bar_item_custom_free (struct t_gui_bar_item_custom *item);
|
||||
extern void gui_bar_item_custom_free_all ();
|
||||
|
||||
|
||||
@@ -99,6 +99,30 @@ gui_bar_item_valid (struct t_gui_bar_item *bar_item)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Searches for a default bar item by name.
|
||||
*
|
||||
* Returns index in gui_bar_item_names[], -1 if not found.
|
||||
*/
|
||||
|
||||
int
|
||||
gui_bar_item_search_default (const char *item_name)
|
||||
{
|
||||
int i;
|
||||
|
||||
if (!item_name || !item_name[0])
|
||||
return -1;
|
||||
|
||||
for (i = 0; i < GUI_BAR_NUM_ITEMS; i++)
|
||||
{
|
||||
if (strcmp (gui_bar_item_names[i], item_name) == 0)
|
||||
return i;
|
||||
}
|
||||
|
||||
/* default bar item not found */
|
||||
return -1;
|
||||
}
|
||||
|
||||
/*
|
||||
* Searches for a bar item by name.
|
||||
*/
|
||||
|
||||
@@ -89,6 +89,7 @@ extern char *gui_bar_item_names[];
|
||||
/* functions */
|
||||
|
||||
extern int gui_bar_item_valid (struct t_gui_bar_item *bar_item);
|
||||
extern int gui_bar_item_search_default (const char *item_name);
|
||||
extern struct t_gui_bar_item *gui_bar_item_search (const char *name);
|
||||
extern int gui_bar_item_used_in_bar (struct t_gui_bar *bar,
|
||||
const char *item_name,
|
||||
|
||||
@@ -247,8 +247,7 @@ irc_config_compute_nick_colors ()
|
||||
{
|
||||
if (ptr_nick->color)
|
||||
free (ptr_nick->color);
|
||||
ptr_nick->color = irc_nick_find_color (ptr_server,
|
||||
ptr_nick->name);
|
||||
ptr_nick->color = irc_nick_find_color (ptr_nick->name);
|
||||
}
|
||||
}
|
||||
if (ptr_channel->pv_remote_nick_color)
|
||||
|
||||
@@ -1397,7 +1397,7 @@ irc_ctcp_recv (struct t_irc_server *server, time_t date,
|
||||
if (ptr_nick)
|
||||
nick_color = strdup (ptr_nick->color);
|
||||
else if (nick)
|
||||
nick_color = irc_nick_find_color (server, nick);
|
||||
nick_color = irc_nick_find_color (nick);
|
||||
else
|
||||
nick_color = strdup (IRC_COLOR_CHAT_NICK);
|
||||
if (irc_server_prefix_char_statusmsg (server, target[0]))
|
||||
@@ -1492,8 +1492,7 @@ irc_ctcp_recv (struct t_irc_server *server, time_t date,
|
||||
"%s%s%s%s%s%s",
|
||||
weechat_prefix ("action"),
|
||||
(nick_is_me) ?
|
||||
IRC_COLOR_CHAT_NICK_SELF : irc_nick_color_for_pv (server,
|
||||
ptr_channel,
|
||||
IRC_COLOR_CHAT_NICK_SELF : irc_nick_color_for_pv (ptr_channel,
|
||||
nick),
|
||||
nick,
|
||||
(pos_args) ? IRC_COLOR_RESET : "",
|
||||
|
||||
@@ -197,10 +197,6 @@ irc_info_info_irc_nick_color_cb (const void *pointer, void *data,
|
||||
const char *info_name,
|
||||
const char *arguments)
|
||||
{
|
||||
char *pos_comma, *server;
|
||||
const char *pos_nick;
|
||||
struct t_irc_server *ptr_server;
|
||||
|
||||
/* make C compiler happy */
|
||||
(void) pointer;
|
||||
(void) data;
|
||||
@@ -209,21 +205,7 @@ irc_info_info_irc_nick_color_cb (const void *pointer, void *data,
|
||||
if (!arguments || !arguments[0])
|
||||
return NULL;
|
||||
|
||||
ptr_server = NULL;
|
||||
pos_nick = arguments;
|
||||
pos_comma = strchr (arguments, ',');
|
||||
if (pos_comma)
|
||||
{
|
||||
pos_nick = pos_comma + 1;
|
||||
server = weechat_strndup (arguments, pos_comma - arguments);
|
||||
if (server)
|
||||
{
|
||||
ptr_server = irc_server_search (server);
|
||||
free (server);
|
||||
}
|
||||
}
|
||||
|
||||
return irc_nick_find_color (ptr_server, pos_nick);
|
||||
return irc_nick_find_color (arguments);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -235,10 +217,6 @@ irc_info_info_irc_nick_color_name_cb (const void *pointer, void *data,
|
||||
const char *info_name,
|
||||
const char *arguments)
|
||||
{
|
||||
char *pos_comma, *server;
|
||||
const char *pos_nick;
|
||||
struct t_irc_server *ptr_server;
|
||||
|
||||
/* make C compiler happy */
|
||||
(void) pointer;
|
||||
(void) data;
|
||||
@@ -247,21 +225,7 @@ irc_info_info_irc_nick_color_name_cb (const void *pointer, void *data,
|
||||
if (!arguments || !arguments[0])
|
||||
return NULL;
|
||||
|
||||
ptr_server = NULL;
|
||||
pos_nick = arguments;
|
||||
pos_comma = strchr (arguments, ',');
|
||||
if (pos_comma)
|
||||
{
|
||||
pos_nick = pos_comma + 1;
|
||||
server = weechat_strndup (arguments, pos_comma - arguments);
|
||||
if (server)
|
||||
{
|
||||
ptr_server = irc_server_search (server);
|
||||
free (server);
|
||||
}
|
||||
}
|
||||
|
||||
return irc_nick_find_color_name (ptr_server, pos_nick);
|
||||
return irc_nick_find_color_name (arguments);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -1259,19 +1223,15 @@ irc_info_init ()
|
||||
&irc_info_info_irc_nick_from_host_cb, NULL, NULL);
|
||||
weechat_hook_info (
|
||||
"irc_nick_color",
|
||||
N_("get nick color code, ignoring case (this calls the info "
|
||||
"\"nick_color_ignore_case\" with appropriate range, according "
|
||||
"to the value of CASEMAPPING on the server, "
|
||||
"defaulting to \"rfc1459\" if the server is not given)"),
|
||||
N_("server,nickname (server is optional)"),
|
||||
N_("get nick color code "
|
||||
"(*deprecated* since version 1.5, replaced by \"nick_color\")"),
|
||||
N_("nickname"),
|
||||
&irc_info_info_irc_nick_color_cb, NULL, NULL);
|
||||
weechat_hook_info (
|
||||
"irc_nick_color_name",
|
||||
N_("get nick color name, ignoring case (this calls the info "
|
||||
"\"nick_color_name_ignore_case\" with appropriate range, according "
|
||||
"to the value of CASEMAPPING on the server, "
|
||||
"defaulting to \"rfc1459\" if the server is not given)"),
|
||||
N_("server,nickname (server is optional)"),
|
||||
N_("get nick color name "
|
||||
"(*deprecated* since version 1.5, replaced by \"nick_color_name\")"),
|
||||
N_("nickname"),
|
||||
&irc_info_info_irc_nick_color_name_cb, NULL, NULL);
|
||||
weechat_hook_info (
|
||||
"irc_buffer",
|
||||
|
||||
+11
-38
@@ -139,22 +139,9 @@ irc_nick_is_nick (struct t_irc_server *server, const char *string)
|
||||
*/
|
||||
|
||||
char *
|
||||
irc_nick_find_color (struct t_irc_server *server, const char *nickname)
|
||||
irc_nick_find_color (const char *nickname)
|
||||
{
|
||||
char str_args[4096];
|
||||
int casemapping, range;
|
||||
|
||||
casemapping = (server) ? server->casemapping : -1;
|
||||
if ((casemapping < 0) || (casemapping >= IRC_SERVER_NUM_CASEMAPPING))
|
||||
casemapping = IRC_SERVER_CASEMAPPING_RFC1459;
|
||||
range = irc_server_casemapping_range[casemapping];
|
||||
|
||||
snprintf (str_args, sizeof (str_args),
|
||||
"%s;%d",
|
||||
(nickname) ? nickname : "",
|
||||
range);
|
||||
|
||||
return weechat_info_get ("nick_color_ignore_case", str_args);
|
||||
return weechat_info_get ("nick_color", nickname);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -164,22 +151,9 @@ irc_nick_find_color (struct t_irc_server *server, const char *nickname)
|
||||
*/
|
||||
|
||||
char *
|
||||
irc_nick_find_color_name (struct t_irc_server *server, const char *nickname)
|
||||
irc_nick_find_color_name (const char *nickname)
|
||||
{
|
||||
char str_args[4096];
|
||||
int casemapping, range;
|
||||
|
||||
casemapping = (server) ? server->casemapping : -1;
|
||||
if ((casemapping < 0) || (casemapping >= IRC_SERVER_NUM_CASEMAPPING))
|
||||
casemapping = IRC_SERVER_CASEMAPPING_RFC1459;
|
||||
range = irc_server_casemapping_range[casemapping];
|
||||
|
||||
snprintf (str_args, sizeof (str_args),
|
||||
"%s;%d",
|
||||
(nickname) ? nickname: "",
|
||||
range);
|
||||
|
||||
return weechat_info_get ("nick_color_name_ignore_case", str_args);
|
||||
return weechat_info_get ("nick_color_name", nickname);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -422,7 +396,7 @@ irc_nick_get_color_for_nicklist (struct t_irc_server *server,
|
||||
if (irc_server_strcasecmp (server, nick->name, server->nick) == 0)
|
||||
return strdup (nick_color_self);
|
||||
else
|
||||
return irc_nick_find_color_name (server, nick->name);
|
||||
return irc_nick_find_color_name (nick->name);
|
||||
}
|
||||
|
||||
return strdup (nick_color_bar_fg);
|
||||
@@ -620,7 +594,7 @@ irc_nick_new (struct t_irc_server *server, struct t_irc_channel *channel,
|
||||
if (irc_server_strcasecmp (server, new_nick->name, server->nick) == 0)
|
||||
new_nick->color = strdup (IRC_COLOR_CHAT_NICK_SELF);
|
||||
else
|
||||
new_nick->color = irc_nick_find_color (server, new_nick->name);
|
||||
new_nick->color = irc_nick_find_color (new_nick->name);
|
||||
|
||||
/* add nick to end of list */
|
||||
new_nick->prev_nick = channel->last_nick;
|
||||
@@ -669,7 +643,7 @@ irc_nick_change (struct t_irc_server *server, struct t_irc_channel *channel,
|
||||
if (nick_is_me)
|
||||
nick->color = strdup (IRC_COLOR_CHAT_NICK_SELF);
|
||||
else
|
||||
nick->color = irc_nick_find_color (server, nick->name);
|
||||
nick->color = irc_nick_find_color (nick->name);
|
||||
|
||||
/* add nick in nicklist */
|
||||
irc_nick_nicklist_add (server, channel, nick);
|
||||
@@ -1011,7 +985,7 @@ irc_nick_as_prefix (struct t_irc_server *server, struct t_irc_nick *nick,
|
||||
else if (nick)
|
||||
color = strdup (nick->color);
|
||||
else if (nickname)
|
||||
color = irc_nick_find_color (server, nickname);
|
||||
color = irc_nick_find_color (nickname);
|
||||
else
|
||||
color = strdup (IRC_COLOR_CHAT_NICK);
|
||||
|
||||
@@ -1054,7 +1028,7 @@ irc_nick_color_for_msg (struct t_irc_server *server, int server_message,
|
||||
{
|
||||
return IRC_COLOR_CHAT_NICK_SELF;
|
||||
}
|
||||
color_found = irc_nick_find_color (server, nickname);
|
||||
color_found = irc_nick_find_color (nickname);
|
||||
index_color = (index_color + 1) % 16;
|
||||
snprintf (color[index_color], sizeof (color[index_color]),
|
||||
"%s",
|
||||
@@ -1072,13 +1046,12 @@ irc_nick_color_for_msg (struct t_irc_server *server, int server_message,
|
||||
*/
|
||||
|
||||
const char *
|
||||
irc_nick_color_for_pv (struct t_irc_server *server,
|
||||
struct t_irc_channel *channel, const char *nickname)
|
||||
irc_nick_color_for_pv (struct t_irc_channel *channel, const char *nickname)
|
||||
{
|
||||
if (weechat_config_boolean (irc_config_look_color_pv_nick_like_channel))
|
||||
{
|
||||
if (!channel->pv_remote_nick_color)
|
||||
channel->pv_remote_nick_color = irc_nick_find_color (server, nickname);
|
||||
channel->pv_remote_nick_color = irc_nick_find_color (nickname);
|
||||
if (channel->pv_remote_nick_color)
|
||||
return channel->pv_remote_nick_color;
|
||||
}
|
||||
|
||||
@@ -49,10 +49,8 @@ struct t_irc_nick
|
||||
extern int irc_nick_valid (struct t_irc_channel *channel,
|
||||
struct t_irc_nick *nick);
|
||||
extern int irc_nick_is_nick (struct t_irc_server *server, const char *string);
|
||||
extern char *irc_nick_find_color (struct t_irc_server *server,
|
||||
const char *nickname);
|
||||
extern char *irc_nick_find_color_name (struct t_irc_server *server,
|
||||
const char *nickname);
|
||||
extern char *irc_nick_find_color (const char *nickname);
|
||||
extern char *irc_nick_find_color_name (const char *nickname);
|
||||
extern void irc_nick_set_host (struct t_irc_nick *nick, const char *host);
|
||||
extern int irc_nick_is_op_or_higher (struct t_irc_server *server,
|
||||
struct t_irc_nick *nick);
|
||||
@@ -103,8 +101,7 @@ extern const char *irc_nick_color_for_msg (struct t_irc_server *server,
|
||||
int server_message,
|
||||
struct t_irc_nick *nick,
|
||||
const char *nickname);
|
||||
extern const char * irc_nick_color_for_pv (struct t_irc_server *server,
|
||||
struct t_irc_channel *channel,
|
||||
extern const char * irc_nick_color_for_pv (struct t_irc_channel *channel,
|
||||
const char *nickname);
|
||||
extern char *irc_nick_default_ban_mask (struct t_irc_nick *nick);
|
||||
extern struct t_hdata *irc_nick_hdata_nick_cb (const void *pointer,
|
||||
|
||||
@@ -2310,8 +2310,8 @@ IRC_PROTOCOL_CALLBACK(nick)
|
||||
{
|
||||
if (weechat_config_boolean (irc_config_look_color_pv_nick_like_channel))
|
||||
{
|
||||
old_color = irc_nick_find_color (server, nick);
|
||||
new_color = irc_nick_find_color (server, params[0]);
|
||||
old_color = irc_nick_find_color (nick);
|
||||
new_color = irc_nick_find_color (params[0]);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -3193,7 +3193,6 @@ IRC_PROTOCOL_CALLBACK(privmsg)
|
||||
else
|
||||
{
|
||||
color = irc_nick_find_color_name (
|
||||
server,
|
||||
(ptr_nick) ? ptr_nick->name : nick);
|
||||
str_color = irc_color_for_tags (color);
|
||||
if (color)
|
||||
@@ -3308,7 +3307,7 @@ IRC_PROTOCOL_CALLBACK(privmsg)
|
||||
{
|
||||
if (weechat_config_boolean (irc_config_look_color_pv_nick_like_channel))
|
||||
{
|
||||
color = irc_nick_find_color_name (server, nick);
|
||||
color = irc_nick_find_color_name (nick);
|
||||
str_color = irc_color_for_tags (color);
|
||||
if (color)
|
||||
free (color);
|
||||
@@ -3361,8 +3360,7 @@ IRC_PROTOCOL_CALLBACK(privmsg)
|
||||
irc_nick_as_prefix (
|
||||
server, NULL, nick,
|
||||
(nick_is_me) ?
|
||||
IRC_COLOR_CHAT_NICK_SELF : irc_nick_color_for_pv (server,
|
||||
ptr_channel,
|
||||
IRC_COLOR_CHAT_NICK_SELF : irc_nick_color_for_pv (ptr_channel,
|
||||
nick)),
|
||||
(msg_args2) ? msg_args2 : msg_args);
|
||||
}
|
||||
@@ -3457,7 +3455,7 @@ IRC_PROTOCOL_CALLBACK(quit)
|
||||
_("%s%s%s%s%s%s%s%s%s%s has quit %s(%s%s%s)"),
|
||||
weechat_prefix ("quit"),
|
||||
(ptr_channel->type == IRC_CHANNEL_TYPE_PRIVATE) ?
|
||||
irc_nick_color_for_pv (server, ptr_channel, nick) :
|
||||
irc_nick_color_for_pv (ptr_channel, nick) :
|
||||
irc_nick_color_for_msg (server, 1, ptr_nick, nick),
|
||||
nick,
|
||||
IRC_COLOR_CHAT_DELIMITERS,
|
||||
@@ -3492,7 +3490,7 @@ IRC_PROTOCOL_CALLBACK(quit)
|
||||
_("%s%s%s%s%s%s%s%s%s%s has quit"),
|
||||
weechat_prefix ("quit"),
|
||||
(ptr_channel->type == IRC_CHANNEL_TYPE_PRIVATE) ?
|
||||
irc_nick_color_for_pv (server, ptr_channel, nick) :
|
||||
irc_nick_color_for_pv (ptr_channel, nick) :
|
||||
irc_nick_color_for_msg (server, 1, ptr_nick, nick),
|
||||
nick,
|
||||
IRC_COLOR_CHAT_DELIMITERS,
|
||||
@@ -6322,7 +6320,7 @@ IRC_PROTOCOL_CALLBACK(353)
|
||||
}
|
||||
else
|
||||
{
|
||||
color = irc_nick_find_color (server, nickname);
|
||||
color = irc_nick_find_color (nickname);
|
||||
weechat_string_dyn_concat (str_nicks, color, -1);
|
||||
if (color)
|
||||
free (color);
|
||||
@@ -6610,7 +6608,7 @@ irc_protocol_get_string_channel_nicks (struct t_irc_server *server,
|
||||
}
|
||||
else
|
||||
{
|
||||
color = irc_nick_find_color (server, nickname);
|
||||
color = irc_nick_find_color (nickname);
|
||||
weechat_string_dyn_concat (str_nicks, color, -1);
|
||||
if (color)
|
||||
free (color);
|
||||
|
||||
@@ -464,6 +464,7 @@ TEST(GuiBarItemCustom, Rename)
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* gui_bar_item_custom_free_data
|
||||
* gui_bar_item_custom_free
|
||||
* gui_bar_item_custom_free_all
|
||||
*/
|
||||
|
||||
@@ -53,6 +53,21 @@ TEST(GuiBarItem, Valid)
|
||||
LONGS_EQUAL(0, gui_bar_item_valid (gui_bar_items + 1));
|
||||
}
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* gui_bar_item_search_default
|
||||
*/
|
||||
|
||||
TEST(GuiBarItem, SearchDefault)
|
||||
{
|
||||
LONGS_EQUAL(-1, gui_bar_item_search_default (NULL));
|
||||
LONGS_EQUAL(-1, gui_bar_item_search_default (""));
|
||||
LONGS_EQUAL(-1, gui_bar_item_search_default ("zzz"));
|
||||
|
||||
CHECK(gui_bar_item_search_default ("scroll") >= 0);
|
||||
CHECK(gui_bar_item_search_default ("time") >= 0);
|
||||
}
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* gui_bar_item_search
|
||||
|
||||
@@ -184,76 +184,7 @@ TEST(IrcNick, IsNick)
|
||||
|
||||
TEST(IrcNick, IrcNickFindColor)
|
||||
{
|
||||
struct t_irc_server *server;
|
||||
char *str, str_color[128];
|
||||
|
||||
server = irc_server_alloc ("my_ircd");
|
||||
CHECK(server);
|
||||
|
||||
snprintf (str_color, sizeof (str_color), "%s", gui_color_get_custom ("default"));
|
||||
|
||||
WEE_TEST_STR(str_color, irc_nick_find_color (NULL, NULL));
|
||||
WEE_TEST_STR("default", irc_nick_find_color_name (NULL, NULL));
|
||||
|
||||
WEE_TEST_STR(str_color, irc_nick_find_color (server, NULL));
|
||||
WEE_TEST_STR("default", irc_nick_find_color_name (server, NULL));
|
||||
|
||||
snprintf (str_color, sizeof (str_color), "%s", gui_color_get_custom ("142"));
|
||||
WEE_TEST_STR(str_color, irc_nick_find_color (NULL, "NICK]"));
|
||||
WEE_TEST_STR(str_color, irc_nick_find_color (NULL, "nick}"));
|
||||
WEE_TEST_STR("142", irc_nick_find_color_name (NULL, "NICK]"));
|
||||
WEE_TEST_STR("142", irc_nick_find_color_name (NULL, "nick}"));
|
||||
|
||||
snprintf (str_color, sizeof (str_color), "%s", gui_color_get_custom ("lightcyan"));
|
||||
WEE_TEST_STR(str_color, irc_nick_find_color (NULL, "NICK^A"));
|
||||
WEE_TEST_STR(str_color, irc_nick_find_color (NULL, "nick~a"));
|
||||
WEE_TEST_STR("lightcyan", irc_nick_find_color_name (NULL, "NICK^A"));
|
||||
WEE_TEST_STR("lightcyan", irc_nick_find_color_name (NULL, "nick~a"));
|
||||
|
||||
snprintf (str_color, sizeof (str_color), "%s", gui_color_get_custom ("142"));
|
||||
WEE_TEST_STR(str_color, irc_nick_find_color (server, "NICK]"));
|
||||
WEE_TEST_STR(str_color, irc_nick_find_color (server, "nick}"));
|
||||
WEE_TEST_STR("142", irc_nick_find_color_name (server, "NICK]"));
|
||||
WEE_TEST_STR("142", irc_nick_find_color_name (server, "nick}"));
|
||||
|
||||
snprintf (str_color, sizeof (str_color), "%s", gui_color_get_custom ("lightcyan"));
|
||||
WEE_TEST_STR(str_color, irc_nick_find_color (server, "NICK^A"));
|
||||
WEE_TEST_STR(str_color, irc_nick_find_color (server, "nick~a"));
|
||||
WEE_TEST_STR("lightcyan", irc_nick_find_color_name (server, "NICK^A"));
|
||||
WEE_TEST_STR("lightcyan", irc_nick_find_color_name (server, "nick~a"));
|
||||
|
||||
server->casemapping = IRC_SERVER_CASEMAPPING_STRICT_RFC1459;
|
||||
|
||||
snprintf (str_color, sizeof (str_color), "%s", gui_color_get_custom ("142"));
|
||||
WEE_TEST_STR(str_color, irc_nick_find_color (server, "NICK]"));
|
||||
WEE_TEST_STR(str_color, irc_nick_find_color (server, "nick}"));
|
||||
WEE_TEST_STR("142", irc_nick_find_color_name (server, "NICK]"));
|
||||
WEE_TEST_STR("142", irc_nick_find_color_name (server, "nick}"));
|
||||
|
||||
snprintf (str_color, sizeof (str_color), "%s", gui_color_get_custom ("176"));
|
||||
WEE_TEST_STR(str_color, irc_nick_find_color (server, "NICK^A"));
|
||||
snprintf (str_color, sizeof (str_color), "%s", gui_color_get_custom ("lightcyan"));
|
||||
WEE_TEST_STR(str_color, irc_nick_find_color (server, "nick~a"));
|
||||
WEE_TEST_STR("176", irc_nick_find_color_name (server, "NICK^A"));
|
||||
WEE_TEST_STR("lightcyan", irc_nick_find_color_name (server, "nick~a"));
|
||||
|
||||
server->casemapping = IRC_SERVER_CASEMAPPING_ASCII;
|
||||
|
||||
snprintf (str_color, sizeof (str_color), "%s", gui_color_get_custom ("169"));
|
||||
WEE_TEST_STR(str_color, irc_nick_find_color (server, "NICK]"));
|
||||
snprintf (str_color, sizeof (str_color), "%s", gui_color_get_custom ("142"));
|
||||
WEE_TEST_STR(str_color, irc_nick_find_color (server, "nick}"));
|
||||
WEE_TEST_STR("169", irc_nick_find_color_name (server, "NICK]"));
|
||||
WEE_TEST_STR("142", irc_nick_find_color_name (server, "nick}"));
|
||||
|
||||
snprintf (str_color, sizeof (str_color), "%s", gui_color_get_custom ("176"));
|
||||
WEE_TEST_STR(str_color, irc_nick_find_color (server, "NICK^A"));
|
||||
snprintf (str_color, sizeof (str_color), "%s", gui_color_get_custom ("lightcyan"));
|
||||
WEE_TEST_STR(str_color, irc_nick_find_color (server, "nick~a"));
|
||||
WEE_TEST_STR("176", irc_nick_find_color_name (server, "NICK^A"));
|
||||
WEE_TEST_STR("lightcyan", irc_nick_find_color_name (server, "nick~a"));
|
||||
|
||||
irc_server_free (server);
|
||||
/* TODO: write tests */
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
+2
-2
@@ -39,8 +39,8 @@
|
||||
# devel-number the devel version as hex number ("0x04010000" for "4.1.0-dev")
|
||||
#
|
||||
|
||||
weechat_stable="4.1.0"
|
||||
weechat_devel="4.1.0"
|
||||
weechat_stable="4.1.1"
|
||||
weechat_devel="4.1.1"
|
||||
|
||||
stable_major=$(echo "${weechat_stable}" | cut -d"." -f1)
|
||||
stable_minor=$(echo "${weechat_stable}" | cut -d"." -f2)
|
||||
|
||||
Reference in New Issue
Block a user