diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2017-04-24 22:37:49 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2017-04-24 22:37:49 +0200 |
commit | 112bebcddf99d5187ede8ebbe765abc75373c4f2 (patch) | |
tree | 3430bc6a930518eb0fe325c93bd7217d823083c6 /po/fr.po | |
parent | 0470a71af9e9da57b39702f94705f5f43cec5448 (diff) | |
download | weechat-112bebcddf99d5187ede8ebbe765abc75373c4f2.zip |
core: add a way to count the suffix length in max chars displayed in cut of string ("cut:" and "cutscr:") (closes #963)
The format to use is one of:
- ${cut:+max,suffix,string}
- ${cutscr:+max,suffix,string}
With the "+" before max, WeeChat ensures there are at most "max" chars in
output, including the length of suffix string.
Diffstat (limited to 'po/fr.po')
-rw-r--r-- | po/fr.po | 21 |
1 files changed, 12 insertions, 9 deletions
@@ -21,8 +21,8 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2017-04-23 14:44+0200\n" -"PO-Revision-Date: 2017-04-23 14:45+0200\n" +"POT-Creation-Date: 2017-04-24 22:34+0200\n" +"PO-Revision-Date: 2017-04-24 22:35+0200\n" "Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" "Language: fr\n" @@ -1550,9 +1550,10 @@ msgid "" " 1. an evaluated sub-string (format: \"eval:xxx\")\n" " 2. a string with escaped chars (format: \"esc:xxx\" or \"\\xxx\")\n" " 3. a string with chars to hide (format: \"hide:char,string\")\n" -" 4. a string with max chars (format: \"cut:max,suffix,string\")\n" -" or max chars displayed on screen (format: \"cutscr:max,suffix,string" -"\")\n" +" 4. a string with max chars (format: \"cut:max,suffix,string\" or \"cut:" +"+max,suffix,string\")\n" +" or max chars displayed on screen (format: \"cutscr:max,suffix,string\" " +"or \"cutscr:+max,suffix,string\")\n" " 5. a color (format: \"color:xxx\", see \"Plugin API reference\", function " "\"color\")\n" " 6. an info (format: \"info:name,arguments\", arguments are optional)\n" @@ -1590,7 +1591,8 @@ msgid "" " /eval -n ${window.buffer.number} ==> 1\n" " /eval -n ${\\t} ==> <tab>\n" " /eval -n ${hide:-,${relay.network.password}} ==> --------\n" -" /eval -n ${cut:2,+,test} ==> te+\n" +" /eval -n ${cut:3,+,test} ==> tes+\n" +" /eval -n ${cut:+3,+,test} ==> te+\n" " /eval -n ${date:%H:%M:%S} ==> 07:46:40\n" " /eval -n ${if:${info:term_width}>80?big:small} ==> big\n" "\n" @@ -1644,9 +1646,9 @@ msgstr "" " 3. une chaîne avec des caractères à cacher (format : \"hide:caractère," "chaîne\")\n" " 4. une chaîne avec un maximum de caractères (format : \"cut:max,suffixe," -"chaîne\")\n" +"chaîne\" ou \"cut:+max,suffixe,chaîne\")\n" " ou un maximum de caractères affichés à l'écran (format : \"cutscr:max," -"suffixe,chaîne\")\n" +"suffixe,chaîne\" ou \"cutscr:+max,suffixe,chaîne\")\n" " 5. une couleur (format : \"color:xxx\", voir la \"Référence API extension" "\", fonction \"color\")\n" " 6. une info (format : \"info:nom,paramètres\", les paramètres sont " @@ -1687,7 +1689,8 @@ msgstr "" " /eval -n ${window.buffer.number} ==> 1\n" " /eval -n ${\\t} ==> <tab>\n" " /eval -n ${hide:-,${relay.network.password}} ==> --------\n" -" /eval -n ${cut:2,+,test} ==> te+\n" +" /eval -n ${cut:3,+,test} ==> tes+\n" +" /eval -n ${cut:+3,+,test} ==> te+\n" " /eval -n ${date:%H:%M:%S} ==> 07:46:40\n" " /eval -n ${if:${info:term_width}>80?big:small} ==> big\n" "\n" |