From 22b20d62060cb1d576f3761aa0867b20ac6ce698 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sat, 20 Jul 2013 08:42:16 +0200 Subject: [PATCH] =?UTF-8?q?core:=20add=20options=20weechat.look.hotlist=5F?= =?UTF-8?q?prefix=20and=20weechat.look.hotlist=5Fsuffix=20(task=20#12730)?= =?UTF-8?q?=20(patch=20from=20Nils=20G=C3=B6rs)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ChangeLog | 4 +++- doc/de/autogen/user/weechat_options.txt | 10 ++++++++++ doc/en/autogen/user/weechat_options.txt | 10 ++++++++++ doc/fr/autogen/user/weechat_options.txt | 10 ++++++++++ doc/it/autogen/user/weechat_options.txt | 10 ++++++++++ doc/ja/autogen/user/weechat_options.txt | 10 ++++++++++ po/cs.po | 17 ++++++++++++----- po/de.po | 21 ++++++++++++++++----- po/es.po | 17 ++++++++++++----- po/fr.po | 17 +++++++++++------ po/hu.po | 17 ++++++++++++----- po/it.po | 17 ++++++++++++----- po/ja.po | 17 ++++++++++++----- po/pl.po | 17 ++++++++++++----- po/pt_BR.po | 17 ++++++++++++----- po/ru.po | 14 +++++++++----- po/tr.po | 12 +++++++----- po/weechat.pot | 12 +++++++----- src/core/wee-config.c | 12 ++++++++++++ src/core/wee-config.h | 2 ++ src/gui/gui-bar-item.c | 16 ++++++++++++---- 21 files changed, 213 insertions(+), 66 deletions(-) diff --git a/ChangeLog b/ChangeLog index 33b3c5010..01057adcd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,7 @@ WeeChat ChangeLog ================= Sébastien Helleu -v0.4.2-dev, 2013-07-19 +v0.4.2-dev, 2013-07-20 This document lists all changes for each version. @@ -14,6 +14,8 @@ http://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes] Version 0.4.2 (under dev!) -------------------------- +* core: add options weechat.look.hotlist_prefix and weechat.look.hotlist_suffix + (task #12730) * core: add option weechat.look.key_bind_safe * core: fix char displayed at the intersection of three windows (bug #39331) * core: fix crash in evaluation of expression when reading a string in hdata diff --git a/doc/de/autogen/user/weechat_options.txt b/doc/de/autogen/user/weechat_options.txt index 65af52aff..b9f10cda2 100644 --- a/doc/de/autogen/user/weechat_options.txt +++ b/doc/de/autogen/user/weechat_options.txt @@ -533,6 +533,11 @@ ** Typ: boolesch ** Werte: on, off (Standardwert: `off`) +* [[option_weechat.look.hotlist_prefix]] *weechat.look.hotlist_prefix* +** Beschreibung: `text displayed at the beginning of the hotlist` +** Typ: Zeichenkette +** Werte: beliebige Zeichenkette (Standardwert: `"H: "`) + * [[option_weechat.look.hotlist_short_names]] *weechat.look.hotlist_short_names* ** Beschreibung: `ist diese Option aktiviert, wird der Kurzname der zusammengefügten Buffer in der Hotlist dargestellt (die Darstellung geschieht nach dem ersten '.' im Namen)` ** Typ: boolesch @@ -543,6 +548,11 @@ ** Typ: integer ** Werte: group_time_asc, group_time_desc, group_number_asc, group_number_desc, number_asc, number_desc (Standardwert: `group_time_asc`) +* [[option_weechat.look.hotlist_suffix]] *weechat.look.hotlist_suffix* +** Beschreibung: `text displayed at the end of the hotlist` +** Typ: Zeichenkette +** Werte: beliebige Zeichenkette (Standardwert: `""`) + * [[option_weechat.look.hotlist_unique_numbers]] *weechat.look.hotlist_unique_numbers* ** Beschreibung: `die Nummer des Buffers wird nur einmal in der Hotlist angezeigt (diese Option kommt nur zum Tragen sofern KEINE Buffernamen angezeigt werden)` ** Typ: boolesch diff --git a/doc/en/autogen/user/weechat_options.txt b/doc/en/autogen/user/weechat_options.txt index a7146e43f..012b2a4e1 100644 --- a/doc/en/autogen/user/weechat_options.txt +++ b/doc/en/autogen/user/weechat_options.txt @@ -533,6 +533,11 @@ ** type: boolean ** values: on, off (default value: `off`) +* [[option_weechat.look.hotlist_prefix]] *weechat.look.hotlist_prefix* +** description: `text displayed at the beginning of the hotlist` +** type: string +** values: any string (default value: `"H: "`) + * [[option_weechat.look.hotlist_short_names]] *weechat.look.hotlist_short_names* ** description: `if set, uses short names to display buffer names in hotlist (start after first '.' in name)` ** type: boolean @@ -543,6 +548,11 @@ ** type: integer ** values: group_time_asc, group_time_desc, group_number_asc, group_number_desc, number_asc, number_desc (default value: `group_time_asc`) +* [[option_weechat.look.hotlist_suffix]] *weechat.look.hotlist_suffix* +** description: `text displayed at the end of the hotlist` +** type: string +** values: any string (default value: `""`) + * [[option_weechat.look.hotlist_unique_numbers]] *weechat.look.hotlist_unique_numbers* ** description: `keep only unique numbers in hotlist (this applies only on hotlist items where name is NOT displayed after number)` ** type: boolean diff --git a/doc/fr/autogen/user/weechat_options.txt b/doc/fr/autogen/user/weechat_options.txt index 882a69274..e6934a4be 100644 --- a/doc/fr/autogen/user/weechat_options.txt +++ b/doc/fr/autogen/user/weechat_options.txt @@ -533,6 +533,11 @@ ** type: booléen ** valeurs: on, off (valeur par défaut: `off`) +* [[option_weechat.look.hotlist_prefix]] *weechat.look.hotlist_prefix* +** description: `chaîne affichée au début de la hotlist` +** type: chaîne +** valeurs: toute chaîne (valeur par défaut: `"H: "`) + * [[option_weechat.look.hotlist_short_names]] *weechat.look.hotlist_short_names* ** description: `si défini, utilise des noms courts pour afficher les noms de tampons dans la hotlist (commence après le premier '.' dans le nom)` ** type: booléen @@ -543,6 +548,11 @@ ** type: entier ** valeurs: group_time_asc, group_time_desc, group_number_asc, group_number_desc, number_asc, number_desc (valeur par défaut: `group_time_asc`) +* [[option_weechat.look.hotlist_suffix]] *weechat.look.hotlist_suffix* +** description: `chaîne affichée à la fin de la hotlist` +** type: chaîne +** valeurs: toute chaîne (valeur par défaut: `""`) + * [[option_weechat.look.hotlist_unique_numbers]] *weechat.look.hotlist_unique_numbers* ** description: `garde seulement des numéros uniques dans la hotlist (cela s'applique seulement aux éléments de la hotlist où le nom n'est PAS affiché après le numéro)` ** type: booléen diff --git a/doc/it/autogen/user/weechat_options.txt b/doc/it/autogen/user/weechat_options.txt index e36ce89f8..744bbe429 100644 --- a/doc/it/autogen/user/weechat_options.txt +++ b/doc/it/autogen/user/weechat_options.txt @@ -533,6 +533,11 @@ ** tipo: bool ** valori: on, off (valore predefinito: `off`) +* [[option_weechat.look.hotlist_prefix]] *weechat.look.hotlist_prefix* +** descrizione: `text displayed at the beginning of the hotlist` +** tipo: stringa +** valori: qualsiasi stringa (valore predefinito: `"H: "`) + * [[option_weechat.look.hotlist_short_names]] *weechat.look.hotlist_short_names* ** descrizione: `se impostato, usa i nomi brevi per visualizzare i nomi dei buffer nella hotlist (inizia dopo il primo '.' nel nome)` ** tipo: bool @@ -543,6 +548,11 @@ ** tipo: intero ** valori: group_time_asc, group_time_desc, group_number_asc, group_number_desc, number_asc, number_desc (valore predefinito: `group_time_asc`) +* [[option_weechat.look.hotlist_suffix]] *weechat.look.hotlist_suffix* +** descrizione: `text displayed at the end of the hotlist` +** tipo: stringa +** valori: qualsiasi stringa (valore predefinito: `""`) + * [[option_weechat.look.hotlist_unique_numbers]] *weechat.look.hotlist_unique_numbers* ** descrizione: `mantiene solo numeri univoci nella hotlist (vale solo per gli elementi della hotlist per cui il nome NON viene visualizzato dopo il numero)` ** tipo: bool diff --git a/doc/ja/autogen/user/weechat_options.txt b/doc/ja/autogen/user/weechat_options.txt index 864ac288f..0fccf9009 100644 --- a/doc/ja/autogen/user/weechat_options.txt +++ b/doc/ja/autogen/user/weechat_options.txt @@ -533,6 +533,11 @@ ** タイプ: ブール ** 値: on, off (デフォルト値: `off`) +* [[option_weechat.look.hotlist_prefix]] *weechat.look.hotlist_prefix* +** 説明: `text displayed at the beginning of the hotlist` +** タイプ: 文字列 +** 値: 未制約文字列 (デフォルト値: `"H: "`) + * [[option_weechat.look.hotlist_short_names]] *weechat.look.hotlist_short_names* ** 説明: `セットされた場合、ホットリストではバッファ名に短い名前を使う (名前に含まれる最初の '.' 以降)` ** タイプ: ブール @@ -543,6 +548,11 @@ ** タイプ: 整数 ** 値: group_time_asc, group_time_desc, group_number_asc, group_number_desc, number_asc, number_desc (デフォルト値: `group_time_asc`) +* [[option_weechat.look.hotlist_suffix]] *weechat.look.hotlist_suffix* +** 説明: `text displayed at the end of the hotlist` +** タイプ: 文字列 +** 値: 未制約文字列 (デフォルト値: `""`) + * [[option_weechat.look.hotlist_unique_numbers]] *weechat.look.hotlist_unique_numbers* ** 説明: `ホットリストには一意の番号だけを保持 (これは番号の後ろに名前が表示されていないホットリストアイテムだけに適用されます)` ** タイプ: ブール diff --git a/po/cs.po b/po/cs.po index 0da099ef4..0cfe3fd9e 100644 --- a/po/cs.po +++ b/po/cs.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-07-19 18:12+0200\n" +"POT-Creation-Date: 2013-07-20 08:40+0200\n" "PO-Revision-Date: 2013-07-18 19:51+0200\n" "Last-Translator: Jiri Golembiovsky \n" "Language-Team: weechat-dev \n" @@ -2605,6 +2605,10 @@ msgid "if set, force display of names in hotlist for merged buffers" msgstr "" "pokud je nastaveno, přetíží zobrazování jména v hotlistu pro spojené buffery" +#, fuzzy +msgid "text displayed at the beginning of the hotlist" +msgstr "řetězec zobrazený mezi buffery v hotlistu" + msgid "" "if set, uses short names to display buffer names in hotlist (start after " "first '.' in name)" @@ -2621,6 +2625,10 @@ msgstr "" "[skupina_číslo_vzestupně], group_number_desc [skupina_číslo_sestupně], " "number_asc [číslo_vzestupně], number_desc [číslo_sestupně] )" +#, fuzzy +msgid "text displayed at the end of the hotlist" +msgstr "řetězec zobrazený mezi buffery v hotlistu" + msgid "" "keep only unique numbers in hotlist (this applies only on hotlist items " "where name is NOT displayed after number)" @@ -3615,10 +3623,6 @@ msgstr "Vyhledávání textu (přesné)" msgid "%s-MORE(%d)-" msgstr "%s-VÍCE(%d)-" -#. TRANSLATORS: if possible use short word or abbreviation here ("Act" is abbreviation of "Activity" in english) -msgid "Act: " -msgstr "Akt: " - #, fuzzy, c-format msgid "Notify changed for \"%s%s%s\": \"%s%s%s\" to \"%s%s%s\"" msgstr "Notifikace pro \"%s%s.%s%s\" změněna: \"%s%s%s\" na \"%s%s%s\"" @@ -9575,3 +9579,6 @@ msgstr "" msgid "Constants" msgstr "" + +#~ msgid "Act: " +#~ msgstr "Akt: " diff --git a/po/de.po b/po/de.po index d9c83d589..70630a4f5 100644 --- a/po/de.po +++ b/po/de.po @@ -22,7 +22,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-07-19 18:12+0200\n" +"POT-Creation-Date: 2013-07-20 08:40+0200\n" "PO-Revision-Date: 2013-07-18 19:51+0200\n" "Last-Translator: Nils Görs \n" "Language-Team: German \n" @@ -2933,6 +2933,12 @@ msgstr "" "ist diese Option aktiviert, werden die Namen der zusammengefügten Buffer in " "der Hotlist dargestellt" +#, fuzzy +msgid "text displayed at the beginning of the hotlist" +msgstr "" +"Zeichen welches zum Trennen zwischen den verschiedenen Buffern in der " +"Hotlist genutzt werden soll" + msgid "" "if set, uses short names to display buffer names in hotlist (start after " "first '.' in name)" @@ -2948,6 +2954,12 @@ msgstr "" "Sortierung der Hotlist (group_time_asc (Standardwert), group_time_desc, " "group_number_asc, group_number_desc, number_asc, number_desc)" +#, fuzzy +msgid "text displayed at the end of the hotlist" +msgstr "" +"Zeichen welches zum Trennen zwischen den verschiedenen Buffern in der " +"Hotlist genutzt werden soll" + msgid "" "keep only unique numbers in hotlist (this applies only on hotlist items " "where name is NOT displayed after number)" @@ -4058,10 +4070,6 @@ msgstr "Textsuche (genau)" msgid "%s-MORE(%d)-" msgstr "%s-MEHR(%d)-" -#. TRANSLATORS: if possible use short word or abbreviation here ("Act" is abbreviation of "Activity" in english) -msgid "Act: " -msgstr "Aktiv: " - #, c-format msgid "Notify changed for \"%s%s%s\": \"%s%s%s\" to \"%s%s%s\"" msgstr "" @@ -10472,3 +10480,6 @@ msgstr "Type" msgid "Constants" msgstr "Konstanten" + +#~ msgid "Act: " +#~ msgstr "Aktiv: " diff --git a/po/es.po b/po/es.po index 523dc86a7..a05c6c065 100644 --- a/po/es.po +++ b/po/es.po @@ -22,7 +22,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-07-19 18:12+0200\n" +"POT-Creation-Date: 2013-07-20 08:40+0200\n" "PO-Revision-Date: 2013-07-18 19:51+0200\n" "Last-Translator: Elián Hanisch \n" "Language-Team: weechat-dev \n" @@ -2759,6 +2759,10 @@ msgstr "" "si es establecido, fuerza que se muestre los nombres de buffers fusionados " "en la lista de actividad" +#, fuzzy +msgid "text displayed at the beginning of the hotlist" +msgstr "cadena mostrada entre los buffers en la lista de actividad" + msgid "" "if set, uses short names to display buffer names in hotlist (start after " "first '.' in name)" @@ -2774,6 +2778,10 @@ msgstr "" "group_time_desc, group_number_asc, group_number_desc, number_asc, " "number_desc)" +#, fuzzy +msgid "text displayed at the end of the hotlist" +msgstr "cadena mostrada entre los buffers en la lista de actividad" + msgid "" "keep only unique numbers in hotlist (this applies only on hotlist items " "where name is NOT displayed after number)" @@ -3811,10 +3819,6 @@ msgstr "Búsqueda de texto (exacto)" msgid "%s-MORE(%d)-" msgstr "%s-MÁS(%d)-" -#. TRANSLATORS: if possible use short word or abbreviation here ("Act" is abbreviation of "Activity" in english) -msgid "Act: " -msgstr "Act: " - #, c-format msgid "Notify changed for \"%s%s%s\": \"%s%s%s\" to \"%s%s%s\"" msgstr "Notificación cambiada para \"%s%s%s\": \"%s%s%s\" a \"%s%s%s\"" @@ -9825,3 +9829,6 @@ msgstr "Tipo" msgid "Constants" msgstr "Constantes" + +#~ msgid "Act: " +#~ msgstr "Act: " diff --git a/po/fr.po b/po/fr.po index 457818998..eb0d15ba2 100644 --- a/po/fr.po +++ b/po/fr.po @@ -21,8 +21,8 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-07-19 18:12+0200\n" -"PO-Revision-Date: 2013-07-19 18:13+0200\n" +"POT-Creation-Date: 2013-07-20 08:40+0200\n" +"PO-Revision-Date: 2013-07-20 08:40+0200\n" "Last-Translator: Sebastien Helleu \n" "Language-Team: weechat-dev \n" "Language: fr\n" @@ -2852,6 +2852,9 @@ msgstr "" "si défini, force l'affichage des noms dans la hotlist pour les tampons " "mélangés" +msgid "text displayed at the beginning of the hotlist" +msgstr "chaîne affichée au début de la hotlist" + msgid "" "if set, uses short names to display buffer names in hotlist (start after " "first '.' in name)" @@ -2867,6 +2870,9 @@ msgstr "" "group_time_desc, group_number_asc, group_number_desc, number_asc, " "number_desc)" +msgid "text displayed at the end of the hotlist" +msgstr "chaîne affichée à la fin de la hotlist" + msgid "" "keep only unique numbers in hotlist (this applies only on hotlist items " "where name is NOT displayed after number)" @@ -3954,10 +3960,6 @@ msgstr "Recherche texte (exact)" msgid "%s-MORE(%d)-" msgstr "%s-PLUS(%d)-" -#. TRANSLATORS: if possible use short word or abbreviation here ("Act" is abbreviation of "Activity" in english) -msgid "Act: " -msgstr "Act: " - #, c-format msgid "Notify changed for \"%s%s%s\": \"%s%s%s\" to \"%s%s%s\"" msgstr "Notification changée pour \"%s%s%s\": \"%s%s%s\" à \"%s%s%s\"" @@ -10224,3 +10226,6 @@ msgstr "Type" msgid "Constants" msgstr "Constantes" + +#~ msgid "Act: " +#~ msgstr "Act: " diff --git a/po/hu.po b/po/hu.po index 32c246408..00053b9fb 100644 --- a/po/hu.po +++ b/po/hu.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-07-19 18:12+0200\n" +"POT-Creation-Date: 2013-07-20 08:40+0200\n" "PO-Revision-Date: 2013-07-18 19:51+0200\n" "Last-Translator: Andras Voroskoi \n" "Language-Team: weechat-dev \n" @@ -2248,6 +2248,10 @@ msgstr "" msgid "if set, force display of names in hotlist for merged buffers" msgstr "" +#, fuzzy +msgid "text displayed at the beginning of the hotlist" +msgstr "kiemelendő szavak listája" + msgid "" "if set, uses short names to display buffer names in hotlist (start after " "first '.' in name)" @@ -2258,6 +2262,10 @@ msgid "" "group_number_asc, group_number_desc, number_asc, number_desc)" msgstr "" +#, fuzzy +msgid "text displayed at the end of the hotlist" +msgstr "kiemelendő szavak listája" + msgid "" "keep only unique numbers in hotlist (this applies only on hotlist items " "where name is NOT displayed after number)" @@ -3254,10 +3262,6 @@ msgstr "Szöveg keresése (pontos): " msgid "%s-MORE(%d)-" msgstr "-TOVÁBB-" -#. TRANSLATORS: if possible use short word or abbreviation here ("Act" is abbreviation of "Activity" in english) -msgid "Act: " -msgstr "Akt: " - #, fuzzy, c-format msgid "Notify changed for \"%s%s%s\": \"%s%s%s\" to \"%s%s%s\"" msgstr "%s%s%s megváltoztatta a %s%s%s szoba témáját:" @@ -9028,3 +9032,6 @@ msgstr "" msgid "Constants" msgstr "" + +#~ msgid "Act: " +#~ msgstr "Akt: " diff --git a/po/it.po b/po/it.po index ae53f891e..cc830de61 100644 --- a/po/it.po +++ b/po/it.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-07-19 18:12+0200\n" +"POT-Creation-Date: 2013-07-20 08:40+0200\n" "PO-Revision-Date: 2013-07-18 19:51+0200\n" "Last-Translator: Esteban I. Ruiz Moreno \n" "Language-Team: weechat-dev \n" @@ -2807,6 +2807,10 @@ msgstr "" "se impostato, forza la visualizzazione dei nomi nella hotlist per i buffer " "uniti" +#, fuzzy +msgid "text displayed at the beginning of the hotlist" +msgstr "stringa mostrata tra i buffer nella hotlist" + msgid "" "if set, uses short names to display buffer names in hotlist (start after " "first '.' in name)" @@ -2822,6 +2826,10 @@ msgstr "" "group_time_desc, group_number_asc, group_number_desc, number_asc, " "number_desc)" +#, fuzzy +msgid "text displayed at the end of the hotlist" +msgstr "stringa mostrata tra i buffer nella hotlist" + msgid "" "keep only unique numbers in hotlist (this applies only on hotlist items " "where name is NOT displayed after number)" @@ -3873,10 +3881,6 @@ msgstr "Ricerca testo (esatta)" msgid "%s-MORE(%d)-" msgstr "%s-ANCORA(%d)-" -#. TRANSLATORS: if possible use short word or abbreviation here ("Act" is abbreviation of "Activity" in english) -msgid "Act: " -msgstr "Attività: " - #, c-format msgid "Notify changed for \"%s%s%s\": \"%s%s%s\" to \"%s%s%s\"" msgstr "Notifica modificata per \"%s%s%s\": \"%s%s%s\" a \"%s%s%s\"" @@ -9918,3 +9922,6 @@ msgstr "Tipo" msgid "Constants" msgstr "Costanti" + +#~ msgid "Act: " +#~ msgstr "Attività: " diff --git a/po/ja.po b/po/ja.po index 640957fa6..547e2721f 100644 --- a/po/ja.po +++ b/po/ja.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-07-19 18:12+0200\n" +"POT-Creation-Date: 2013-07-20 08:40+0200\n" "PO-Revision-Date: 2013-07-18 19:51+0200\n" "Last-Translator: AYANOKOUZI, Ryuunosuke \n" "Language-Team: Japanese \n" @@ -2769,6 +2769,10 @@ msgstr "" "セットされた場合、マージバッファに対してホットリストにバッファ名を載せること" "を強制" +#, fuzzy +msgid "text displayed at the beginning of the hotlist" +msgstr "ホットリストにあるバッファの間に表示される文字列" + msgid "" "if set, uses short names to display buffer names in hotlist (start after " "first '.' in name)" @@ -2783,6 +2787,10 @@ msgstr "" "ホットリストのソートタイプ (group_time_asc (デフォルト)、group_time_desc、" "group_number_asc、group_number_desc、number_asc、number_desc)" +#, fuzzy +msgid "text displayed at the end of the hotlist" +msgstr "ホットリストにあるバッファの間に表示される文字列" + msgid "" "keep only unique numbers in hotlist (this applies only on hotlist items " "where name is NOT displayed after number)" @@ -3798,10 +3806,6 @@ msgstr "テキスト検索 (完全一致)" msgid "%s-MORE(%d)-" msgstr "%s-MORE(%d)-" -#. TRANSLATORS: if possible use short word or abbreviation here ("Act" is abbreviation of "Activity" in english) -msgid "Act: " -msgstr "アクティビティ: " - #, c-format msgid "Notify changed for \"%s%s%s\": \"%s%s%s\" to \"%s%s%s\"" msgstr "\"%s%s%s\" の告知が変更されました: \"%s%s%s\" から \"%s%s%s\" に" @@ -9874,3 +9878,6 @@ msgstr "タイプ" msgid "Constants" msgstr "定数" + +#~ msgid "Act: " +#~ msgstr "アクティビティ: " diff --git a/po/pl.po b/po/pl.po index 8ac23b91a..1fe1633e9 100644 --- a/po/pl.po +++ b/po/pl.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-07-19 18:12+0200\n" +"POT-Creation-Date: 2013-07-20 08:40+0200\n" "PO-Revision-Date: 2013-07-18 19:51+0200\n" "Last-Translator: Krzysztof Korościk \n" "Language-Team: weechat-dev \n" @@ -2831,6 +2831,10 @@ msgstr "" "jeśli ustawione, wymusza wyświetlanie nazw w hotliście dla połączonych " "buforów" +#, fuzzy +msgid "text displayed at the beginning of the hotlist" +msgstr "ciąg znaków wyświetlany pomiędzy buforami w hotliście" + msgid "" "if set, uses short names to display buffer names in hotlist (start after " "first '.' in name)" @@ -2845,6 +2849,10 @@ msgstr "" "typ sortowania hotlisty (group_time_asc (domyślny), group_time_desc, " "group_number_asc, group_number_desc, number_asc, number_desc)" +#, fuzzy +msgid "text displayed at the end of the hotlist" +msgstr "ciąg znaków wyświetlany pomiędzy buforami w hotliście" + msgid "" "keep only unique numbers in hotlist (this applies only on hotlist items " "where name is NOT displayed after number)" @@ -3883,10 +3891,6 @@ msgstr "Wyszukiwanie tekstu (dokładne)" msgid "%s-MORE(%d)-" msgstr "%s-Więcej(%d)-" -#. TRANSLATORS: if possible use short word or abbreviation here ("Act" is abbreviation of "Activity" in english) -msgid "Act: " -msgstr "Akt: " - #, c-format msgid "Notify changed for \"%s%s%s\": \"%s%s%s\" to \"%s%s%s\"" msgstr "Zmieniono powiadomienia dla \"%s%s%s\": \"%s%s%s\" na \"%s%s%s\"" @@ -10030,3 +10034,6 @@ msgstr "Typ" msgid "Constants" msgstr "Stałe" + +#~ msgid "Act: " +#~ msgstr "Akt: " diff --git a/po/pt_BR.po b/po/pt_BR.po index d1f5c4675..96682bbe7 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-07-19 18:12+0200\n" +"POT-Creation-Date: 2013-07-20 08:40+0200\n" "PO-Revision-Date: 2013-07-18 19:51+0200\n" "Last-Translator: Sergio Durigan Junior \n" "Language-Team: weechat-dev \n" @@ -2683,6 +2683,10 @@ msgstr "" "se utilizado, força a exibição de nomes na lista de atividade atual para " "buffers mesclados" +#, fuzzy +msgid "text displayed at the beginning of the hotlist" +msgstr "string exibida entre buffers na lista de atividade" + msgid "" "if set, uses short names to display buffer names in hotlist (start after " "first '.' in name)" @@ -2698,6 +2702,10 @@ msgstr "" "group_time_desc, group_number_asc, group_number_desc, number_asc, " "number_desc)" +#, fuzzy +msgid "text displayed at the end of the hotlist" +msgstr "string exibida entre buffers na lista de atividade" + msgid "" "keep only unique numbers in hotlist (this applies only on hotlist items " "where name is NOT displayed after number)" @@ -3705,10 +3713,6 @@ msgstr "Busca de texto (exata)" msgid "%s-MORE(%d)-" msgstr "%s-MORE(%d)-" -#. TRANSLATORS: if possible use short word or abbreviation here ("Act" is abbreviation of "Activity" in english) -msgid "Act: " -msgstr "Ativ: " - #, c-format msgid "Notify changed for \"%s%s%s\": \"%s%s%s\" to \"%s%s%s\"" msgstr "Notificação alterada para \"%s%s%s\": \"%s%s%s\" para \"%s%s%s\"" @@ -9200,3 +9204,6 @@ msgstr "" msgid "Constants" msgstr "" + +#~ msgid "Act: " +#~ msgstr "Ativ: " diff --git a/po/ru.po b/po/ru.po index 340e1b727..64f601236 100644 --- a/po/ru.po +++ b/po/ru.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-07-19 18:12+0200\n" +"POT-Creation-Date: 2013-07-20 08:40+0200\n" "PO-Revision-Date: 2013-07-18 19:52+0200\n" "Last-Translator: Aleksey V Zapparov AKA ixti \n" "Language-Team: weechat-dev \n" @@ -2274,6 +2274,10 @@ msgstr "" msgid "if set, force display of names in hotlist for merged buffers" msgstr "" +#, fuzzy +msgid "text displayed at the beginning of the hotlist" +msgstr "максимальная длина имён в хотлисте" + msgid "" "if set, uses short names to display buffer names in hotlist (start after " "first '.' in name)" @@ -2286,6 +2290,10 @@ msgstr "" "тип сортировки хотлиста (group_time_asc (по-умолчанию), group_time_desc, " "group_number_asc, group_number_desc, number_asc, number_desc)" +#, fuzzy +msgid "text displayed at the end of the hotlist" +msgstr "максимальная длина имён в хотлисте" + #, fuzzy msgid "" "keep only unique numbers in hotlist (this applies only on hotlist items " @@ -3285,10 +3293,6 @@ msgstr "Поиск текста (регистрозависимый): " msgid "%s-MORE(%d)-" msgstr "-ДАЛЬШЕ-" -#. TRANSLATORS: if possible use short word or abbreviation here ("Act" is abbreviation of "Activity" in english) -msgid "Act: " -msgstr "" - #, fuzzy, c-format msgid "Notify changed for \"%s%s%s\": \"%s%s%s\" to \"%s%s%s\"" msgstr "%s%s%s сменил тему %s%s%s на:" diff --git a/po/tr.po b/po/tr.po index 8f811d819..2d23f6c64 100644 --- a/po/tr.po +++ b/po/tr.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.2-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-07-19 18:12+0200\n" +"POT-Creation-Date: 2013-07-20 08:40+0200\n" "PO-Revision-Date: 2013-07-18 19:52+0200\n" "Last-Translator: Hasan Kiran \n" "Language-Team: weechat-dev \n" @@ -2003,6 +2003,9 @@ msgstr "" msgid "if set, force display of names in hotlist for merged buffers" msgstr "" +msgid "text displayed at the beginning of the hotlist" +msgstr "" + msgid "" "if set, uses short names to display buffer names in hotlist (start after " "first '.' in name)" @@ -2013,6 +2016,9 @@ msgid "" "group_number_asc, group_number_desc, number_asc, number_desc)" msgstr "" +msgid "text displayed at the end of the hotlist" +msgstr "" + msgid "" "keep only unique numbers in hotlist (this applies only on hotlist items " "where name is NOT displayed after number)" @@ -2888,10 +2894,6 @@ msgstr "" msgid "%s-MORE(%d)-" msgstr "" -#. TRANSLATORS: if possible use short word or abbreviation here ("Act" is abbreviation of "Activity" in english) -msgid "Act: " -msgstr "" - #, c-format msgid "Notify changed for \"%s%s%s\": \"%s%s%s\" to \"%s%s%s\"" msgstr "" diff --git a/po/weechat.pot b/po/weechat.pot index eb6545d15..0457b03b1 100644 --- a/po/weechat.pot +++ b/po/weechat.pot @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.1-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2013-07-19 18:12+0200\n" +"POT-Creation-Date: 2013-07-20 08:40+0200\n" "PO-Revision-Date: 2013-02-14 18:20+0100\n" "Last-Translator: FULL NAME \n" "Language-Team: weechat-dev \n" @@ -2010,6 +2010,9 @@ msgstr "" msgid "if set, force display of names in hotlist for merged buffers" msgstr "" +msgid "text displayed at the beginning of the hotlist" +msgstr "" + msgid "" "if set, uses short names to display buffer names in hotlist (start after " "first '.' in name)" @@ -2020,6 +2023,9 @@ msgid "" "group_number_asc, group_number_desc, number_asc, number_desc)" msgstr "" +msgid "text displayed at the end of the hotlist" +msgstr "" + msgid "" "keep only unique numbers in hotlist (this applies only on hotlist items " "where name is NOT displayed after number)" @@ -2896,10 +2902,6 @@ msgstr "" msgid "%s-MORE(%d)-" msgstr "" -#. TRANSLATORS: if possible use short word or abbreviation here ("Act" is abbreviation of "Activity" in english) -msgid "Act: " -msgstr "" - #, c-format msgid "Notify changed for \"%s%s%s\": \"%s%s%s\" to \"%s%s%s\"" msgstr "" diff --git a/src/core/wee-config.c b/src/core/wee-config.c index 95efa5e98..1855f070f 100644 --- a/src/core/wee-config.c +++ b/src/core/wee-config.c @@ -112,8 +112,10 @@ struct t_config_option *config_look_hotlist_names_count; struct t_config_option *config_look_hotlist_names_length; struct t_config_option *config_look_hotlist_names_level; struct t_config_option *config_look_hotlist_names_merged_buffers; +struct t_config_option *config_look_hotlist_prefix; struct t_config_option *config_look_hotlist_short_names; struct t_config_option *config_look_hotlist_sort; +struct t_config_option *config_look_hotlist_suffix; struct t_config_option *config_look_hotlist_unique_numbers; struct t_config_option *config_look_input_cursor_scroll; struct t_config_option *config_look_input_share; @@ -2128,6 +2130,11 @@ config_weechat_init_options () "hotlist_names_merged_buffers", "boolean", N_("if set, force display of names in hotlist for merged buffers"), NULL, 0, 0, "off", NULL, 0, NULL, NULL, &config_change_buffer_content, NULL, NULL, NULL); + config_look_hotlist_prefix = config_file_new_option ( + weechat_config_file, ptr_section, + "hotlist_prefix", "string", + N_("text displayed at the beginning of the hotlist"), + NULL, 0, 0, "H: ", NULL, 0, NULL, NULL, &config_change_buffer_content, NULL, NULL, NULL); config_look_hotlist_short_names = config_file_new_option ( weechat_config_file, ptr_section, "hotlist_short_names", "boolean", @@ -2143,6 +2150,11 @@ config_weechat_init_options () "group_time_asc|group_time_desc|group_number_asc|" "group_number_desc|number_asc|number_desc", 0, 0, "group_time_asc", NULL, 0, NULL, NULL, &config_change_hotlist_sort, NULL, NULL, NULL); + config_look_hotlist_suffix = config_file_new_option ( + weechat_config_file, ptr_section, + "hotlist_suffix", "string", + N_("text displayed at the end of the hotlist"), + NULL, 0, 0, "", NULL, 0, NULL, NULL, &config_change_buffer_content, NULL, NULL, NULL); config_look_hotlist_unique_numbers = config_file_new_option ( weechat_config_file, ptr_section, "hotlist_unique_numbers", "boolean", diff --git a/src/core/wee-config.h b/src/core/wee-config.h index b1f541b5d..c6542528e 100644 --- a/src/core/wee-config.h +++ b/src/core/wee-config.h @@ -137,8 +137,10 @@ extern struct t_config_option *config_look_hotlist_names_count; extern struct t_config_option *config_look_hotlist_names_length; extern struct t_config_option *config_look_hotlist_names_level; extern struct t_config_option *config_look_hotlist_names_merged_buffers; +extern struct t_config_option *config_look_hotlist_prefix; extern struct t_config_option *config_look_hotlist_short_names; extern struct t_config_option *config_look_hotlist_sort; +extern struct t_config_option *config_look_hotlist_suffix; extern struct t_config_option *config_look_hotlist_unique_numbers; extern struct t_config_option *config_look_input_cursor_scroll; extern struct t_config_option *config_look_input_share; diff --git a/src/gui/gui-bar-item.c b/src/gui/gui-bar-item.c index a203a5e3c..b7a601a84 100644 --- a/src/gui/gui-bar-item.c +++ b/src/gui/gui-bar-item.c @@ -1086,7 +1086,8 @@ char * gui_bar_item_default_hotlist (void *data, struct t_gui_bar_item *item, struct t_gui_window *window) { - char buf[2048], format[32], *buffer_without_name_displayed; + char buf[4096], format[32], *buffer_without_name_displayed; + const char *hotlist_suffix; struct t_gui_hotlist *ptr_hotlist; int numbers_count, names_count, display_name, count_max; int priority, priority_min, priority_min_displayed, private; @@ -1101,8 +1102,7 @@ gui_bar_item_default_hotlist (void *data, struct t_gui_bar_item *item, buf[0] = '\0'; - /* TRANSLATORS: if possible use short word or abbreviation here ("Act" is abbreviation of "Activity" in english) */ - strcat (buf, _("Act: ")); + strcat (buf, CONFIG_STRING(config_look_hotlist_prefix)); buffer_without_name_displayed = NULL; if (CONFIG_BOOLEAN(config_look_hotlist_unique_numbers) && last_gui_buffer) @@ -1275,7 +1275,7 @@ gui_bar_item_default_hotlist (void *data, struct t_gui_bar_item *item, } } - if (strlen (buf) > sizeof (buf) - 64) + if (strlen (buf) > sizeof (buf) - 256) break; } } @@ -1283,6 +1283,14 @@ gui_bar_item_default_hotlist (void *data, struct t_gui_bar_item *item, if (buffer_without_name_displayed) free (buffer_without_name_displayed); + hotlist_suffix = CONFIG_STRING(config_look_hotlist_suffix); + if (hotlist_suffix[0] + && (strlen (buf) + strlen (CONFIG_STRING(config_look_hotlist_suffix)) + 16 < sizeof (buf))) + { + strcat (buf, GUI_COLOR_CUSTOM_BAR_FG); + strcat (buf, hotlist_suffix); + } + return strdup (buf); }