1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-26 12:56:37 +02:00

core: add option weechat.look.config_permissions (closes #2057)

This commit is contained in:
Sébastien Helleu
2024-05-18 09:16:47 +02:00
parent 839ffc4b0c
commit 2423fdbf2d
18 changed files with 333 additions and 62 deletions
+1
View File
@@ -15,6 +15,7 @@ For a list of important changes that require manual actions, please look at rele
New features::
* core: add option weechat.look.config_permissions (issue #2057)
* core: add bar item "lag"
* core: add buffer properties "input_prompt" and "modes"
* core: send signal "buffer_line_added" on buffers with free content
+19 -4
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2024-05-14 22:20+0200\n"
"POT-Creation-Date: 2024-05-18 09:15+0200\n"
"PO-Revision-Date: 2024-04-07 14:50+0200\n"
"Last-Translator: Ondřej Súkup <mimi.vx@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4407,6 +4407,16 @@ msgid ""
"for /help"
msgstr ""
msgid ""
"permissions for configuration files (*.conf), as octal value (see man "
"chmod); it must be a number with 3 digits, each digit can be 0 (no "
"permissions), 2 (write only), 4 (read only) or 6 (read and write); the first "
"digit must be 6 so that the user can read and write the file; by default "
"configuration files can be read and written by the user only, for security "
"reasons; for example 660 = \"rw-rw-r--\" = file readable and writable by the "
"user and members of the group"
msgstr ""
msgid ""
"if set, /quit command must be confirmed with extra argument \"-yes\" (see /"
"help quit)"
@@ -5448,6 +5458,11 @@ msgstr "(výchozí volby)"
msgid "%sCannot create file \"%s\""
msgstr "%sChyba: nemohu vytvořit soubor \"%s\""
#, fuzzy, c-format
#| msgid "%sWARNING: failed to read configuration file \"%s\" (%s)"
msgid "%sWARNING: failed to set permissions on configuration file \"%s\" (%s)"
msgstr "%sVAROVÁNÍ: selhalo čtení konfiguračního souboru \"%s\" (%s)"
#, c-format
msgid "%sError writing configuration file \"%s\""
msgstr "%sChyba při zápisu konfiguračního souboru \"%s\""
@@ -6255,6 +6270,9 @@ msgstr ""
msgid "%s-MORE(%d)-"
msgstr "%s-VÍCE(%d)-"
msgid "Lag"
msgstr "Lag"
msgid "away"
msgstr "pryč"
@@ -8151,9 +8169,6 @@ msgstr "%s%s: skript \"%s\" nenačten"
msgid "server"
msgstr "server"
msgid "Lag"
msgstr "Lag"
#. TRANSLATORS: this is displayed in a bar item and must be as short as possible
msgid "cleartext"
msgstr ""
+19 -7
View File
@@ -26,7 +26,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2024-05-14 22:20+0200\n"
"POT-Creation-Date: 2024-05-18 09:15+0200\n"
"PO-Revision-Date: 2024-05-15 18:07+0200\n"
"Last-Translator: Nils Görs <weechatter@arcor.de>\n"
"Language-Team: German <kde-i18n-de@kde.org>\n"
@@ -4958,6 +4958,16 @@ msgstr ""
"ist diese Einstellung aktiviert werden unvollständige und eindeutige Befehle "
"akzeptiert, zum Beispiel /he für /help"
msgid ""
"permissions for configuration files (*.conf), as octal value (see man "
"chmod); it must be a number with 3 digits, each digit can be 0 (no "
"permissions), 2 (write only), 4 (read only) or 6 (read and write); the first "
"digit must be 6 so that the user can read and write the file; by default "
"configuration files can be read and written by the user only, for security "
"reasons; for example 660 = \"rw-rw-r--\" = file readable and writable by the "
"user and members of the group"
msgstr ""
msgid ""
"if set, /quit command must be confirmed with extra argument \"-yes\" (see /"
"help quit)"
@@ -6223,6 +6233,11 @@ msgstr "(Standardeinstellungen)"
msgid "%sCannot create file \"%s\""
msgstr "%sDie Datei \"%s\" kann nicht erstellt werden"
#, fuzzy, c-format
#| msgid "%sWARNING: failed to read configuration file \"%s\" (%s)"
msgid "%sWARNING: failed to set permissions on configuration file \"%s\" (%s)"
msgstr "%sWARNUNG: Konfigurationsdatei \"%s\" konnte nicht geladen werden (%s)"
#, c-format
msgid "%sError writing configuration file \"%s\""
msgstr ""
@@ -7097,6 +7112,9 @@ msgstr "Tastatur- und Maus-Debug ('q' zum Verlassen des Debug-Modus)"
msgid "%s-MORE(%d)-"
msgstr "%s-MEHR(%d)-"
msgid "Lag"
msgstr "Lag"
msgid "away"
msgstr "abwesend"
@@ -9337,9 +9355,6 @@ msgstr "%s%s: Das Skript \"%s\" wurde nicht installiert"
msgid "server"
msgstr "Server"
msgid "Lag"
msgstr "Lag"
#. TRANSLATORS: this is displayed in a bar item and must be as short as possible
msgid "cleartext"
msgstr "Klartext"
@@ -15630,7 +15645,6 @@ msgstr ""
"url: URL des Remote-Relays im Format https://example.com:9000 oder http://"
"example.com:9000 (Klartext-Verbindung, nicht empfohlen)"
#| msgid "option: extra option, for some servers"
msgid "option: set option for remote relay"
msgstr "option: zusätzliche Einstellung, für ein Remote-Relay"
@@ -15717,7 +15731,6 @@ msgstr ""
"example.com:9000 oder http://example.com:9000 (Klartext-Verbindung, nicht "
"empfohlen)"
#| msgid "raw[connect]: connect to a remote relay server"
msgid "auto-connect to the remote relay"
msgstr "automatische Verbindung zu einem Remote-Relay herstellen"
@@ -18419,4 +18432,3 @@ msgstr ""
#~ msgid "color for channel modes, near channel name"
#~ msgstr "Farbe der Kanal-Modes (neben des Kanalnamens)"
+18 -4
View File
@@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2024-05-14 22:20+0200\n"
"POT-Creation-Date: 2024-05-18 09:15+0200\n"
"PO-Revision-Date: 2024-04-07 14:50+0200\n"
"Last-Translator: Santiago Forero <santiago@forero.xyz>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4534,6 +4534,16 @@ msgid ""
"for /help"
msgstr ""
msgid ""
"permissions for configuration files (*.conf), as octal value (see man "
"chmod); it must be a number with 3 digits, each digit can be 0 (no "
"permissions), 2 (write only), 4 (read only) or 6 (read and write); the first "
"digit must be 6 so that the user can read and write the file; by default "
"configuration files can be read and written by the user only, for security "
"reasons; for example 660 = \"rw-rw-r--\" = file readable and writable by the "
"user and members of the group"
msgstr ""
msgid ""
"if set, /quit command must be confirmed with extra argument \"-yes\" (see /"
"help quit)"
@@ -5631,6 +5641,10 @@ msgstr "(opciones por defecto)"
msgid "%sCannot create file \"%s\""
msgstr "%sError: no es posible crear el archivo \"%s\""
#, fuzzy, c-format
msgid "%sWARNING: failed to set permissions on configuration file \"%s\" (%s)"
msgstr "Guardando archivo de configuración %s %s"
#, c-format
msgid "%sError writing configuration file \"%s\""
msgstr "%sError al escribir el archivo de configuración \"%s\""
@@ -6434,6 +6448,9 @@ msgstr ""
msgid "%s-MORE(%d)-"
msgstr "%s-MÁS(%d)-"
msgid "Lag"
msgstr "Retraso"
msgid "away"
msgstr "ausente"
@@ -8343,9 +8360,6 @@ msgstr "%s%s: el script \"%s\" no está cargado"
msgid "server"
msgstr "servidor"
msgid "Lag"
msgstr "Retraso"
#. TRANSLATORS: this is displayed in a bar item and must be as short as possible
msgid "cleartext"
msgstr ""
+29 -5
View File
@@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2024-05-14 22:20+0200\n"
"PO-Revision-Date: 2024-05-14 22:23+0200\n"
"POT-Creation-Date: 2024-05-18 09:15+0200\n"
"PO-Revision-Date: 2024-05-18 09:16+0200\n"
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: fr\n"
@@ -4849,6 +4849,24 @@ msgstr ""
"si activé, les commandes incomplètes et non ambiguës sont autorisées, par "
"exemple /he pour /help"
msgid ""
"permissions for configuration files (*.conf), as octal value (see man "
"chmod); it must be a number with 3 digits, each digit can be 0 (no "
"permissions), 2 (write only), 4 (read only) or 6 (read and write); the first "
"digit must be 6 so that the user can read and write the file; by default "
"configuration files can be read and written by the user only, for security "
"reasons; for example 660 = \"rw-rw-r--\" = file readable and writable by the "
"user and members of the group"
msgstr ""
"permissions pour les fichiers de configuration (*.conf), sous forme de "
"valeur octale (voir man chmod) ; doit être un nombre avec 3 chiffres, chaque "
"chiffre peut être 0 (aucune permission), 2 (écriture seule), 4 (lecture "
"seule) ou 6 (lecture et écriture) ; le premier chiffre doit être 6 pour que "
"l'utilisateur puisse lire et écrire le fichier ; par défaut les fichiers de "
"configuration peuvent être lus et écrits par l'utilisateur seulement, pour "
"des raisons de sécurité ; par exemple 660 = \"rw-rw-r--\" = fichier en "
"lecture et écriture pour l'utilisateur et les membres du groupe"
msgid ""
"if set, /quit command must be confirmed with extra argument \"-yes\" (see /"
"help quit)"
@@ -6084,6 +6102,12 @@ msgstr "(options par défaut)"
msgid "%sCannot create file \"%s\""
msgstr "%sImpossible de créer le fichier \"%s\""
#, c-format
msgid "%sWARNING: failed to set permissions on configuration file \"%s\" (%s)"
msgstr ""
"%sATTENTION : échec de changement des permissions sur le fichier de "
"configuration \"%s\" (%s)"
#, c-format
msgid "%sError writing configuration file \"%s\""
msgstr "%sErreur d'écriture du fichier de configuration \"%s\""
@@ -6955,6 +6979,9 @@ msgstr "debug clavier et souris ('q' pour quitter le mode de debug)"
msgid "%s-MORE(%d)-"
msgstr "%s-PLUS(%d)-"
msgid "Lag"
msgstr "Lag"
msgid "away"
msgstr "absent"
@@ -9167,9 +9194,6 @@ msgstr "%s%s : script \"%s\" non chargé"
msgid "server"
msgstr "serveur"
msgid "Lag"
msgstr "Lag"
#. TRANSLATORS: this is displayed in a bar item and must be as short as possible
msgid "cleartext"
msgstr "en clair"
+18 -4
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2024-05-14 22:20+0200\n"
"POT-Creation-Date: 2024-05-18 09:15+0200\n"
"PO-Revision-Date: 2024-04-07 14:50+0200\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4183,6 +4183,16 @@ msgid ""
"for /help"
msgstr ""
msgid ""
"permissions for configuration files (*.conf), as octal value (see man "
"chmod); it must be a number with 3 digits, each digit can be 0 (no "
"permissions), 2 (write only), 4 (read only) or 6 (read and write); the first "
"digit must be 6 so that the user can read and write the file; by default "
"configuration files can be read and written by the user only, for security "
"reasons; for example 660 = \"rw-rw-r--\" = file readable and writable by the "
"user and members of the group"
msgstr ""
msgid ""
"if set, /quit command must be confirmed with extra argument \"-yes\" (see /"
"help quit)"
@@ -5151,6 +5161,10 @@ msgstr ""
msgid "%sCannot create file \"%s\""
msgstr "%s nem sikerült a \"%s\" fájlt létrehozni\n"
#, fuzzy, c-format
msgid "%sWARNING: failed to set permissions on configuration file \"%s\" (%s)"
msgstr "beállítások mentése kilépéskor"
#, fuzzy, c-format
msgid "%sError writing configuration file \"%s\""
msgstr "szerver konfigurációs fájljának újraolvastatása"
@@ -5937,6 +5951,9 @@ msgstr ""
msgid "%s-MORE(%d)-"
msgstr "-TOVÁBB-"
msgid "Lag"
msgstr ""
msgid "away"
msgstr ""
@@ -7807,9 +7824,6 @@ msgstr "%s a \"%s\" szerver nem található\n"
msgid "server"
msgstr "szerver"
msgid "Lag"
msgstr ""
#. TRANSLATORS: this is displayed in a bar item and must be as short as possible
msgid "cleartext"
msgstr ""
+18 -4
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2024-05-14 22:20+0200\n"
"POT-Creation-Date: 2024-05-18 09:15+0200\n"
"PO-Revision-Date: 2024-04-07 14:50+0200\n"
"Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4443,6 +4443,16 @@ msgid ""
"for /help"
msgstr ""
msgid ""
"permissions for configuration files (*.conf), as octal value (see man "
"chmod); it must be a number with 3 digits, each digit can be 0 (no "
"permissions), 2 (write only), 4 (read only) or 6 (read and write); the first "
"digit must be 6 so that the user can read and write the file; by default "
"configuration files can be read and written by the user only, for security "
"reasons; for example 660 = \"rw-rw-r--\" = file readable and writable by the "
"user and members of the group"
msgstr ""
msgid ""
"if set, /quit command must be confirmed with extra argument \"-yes\" (see /"
"help quit)"
@@ -5561,6 +5571,10 @@ msgstr "(opzioni predefinite)"
msgid "%sCannot create file \"%s\""
msgstr "%sErrore: impossibile creare il file \"%s\""
#, fuzzy, c-format
msgid "%sWARNING: failed to set permissions on configuration file \"%s\" (%s)"
msgstr "Salvataggio del file di configurazione %s %s"
#, c-format
msgid "%sError writing configuration file \"%s\""
msgstr "%sErrore: impossibile scrivere sul file di configurazione \"%s\""
@@ -6388,6 +6402,9 @@ msgstr ""
msgid "%s-MORE(%d)-"
msgstr "%s-ANCORA(%d)-"
msgid "Lag"
msgstr "Ritardo"
msgid "away"
msgstr "assente"
@@ -8338,9 +8355,6 @@ msgstr "%s%s: script \"%s\" non caricato"
msgid "server"
msgstr "server"
msgid "Lag"
msgstr "Ritardo"
#. TRANSLATORS: this is displayed in a bar item and must be as short as possible
msgid "cleartext"
msgstr ""
+19 -4
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2024-05-14 22:20+0200\n"
"POT-Creation-Date: 2024-05-18 09:15+0200\n"
"PO-Revision-Date: 2024-04-07 14:50+0200\n"
"Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
"Language-Team: Japanese <https://github.com/l/weechat/tree/master/"
@@ -4586,6 +4586,16 @@ msgstr ""
"これを設定した場合、不完全なコマンドと完全なコマンドを両方使えるようになりま"
"す、例えば /he は /help の意味で使うことができます"
msgid ""
"permissions for configuration files (*.conf), as octal value (see man "
"chmod); it must be a number with 3 digits, each digit can be 0 (no "
"permissions), 2 (write only), 4 (read only) or 6 (read and write); the first "
"digit must be 6 so that the user can read and write the file; by default "
"configuration files can be read and written by the user only, for security "
"reasons; for example 660 = \"rw-rw-r--\" = file readable and writable by the "
"user and members of the group"
msgstr ""
msgid ""
"if set, /quit command must be confirmed with extra argument \"-yes\" (see /"
"help quit)"
@@ -5733,6 +5743,11 @@ msgstr "(デフォルトオプション)"
msgid "%sCannot create file \"%s\""
msgstr "%sエラー: ファイル \"%s\" の作成に失敗"
#, fuzzy, c-format
#| msgid "%sWARNING: failed to read configuration file \"%s\" (%s)"
msgid "%sWARNING: failed to set permissions on configuration file \"%s\" (%s)"
msgstr "%s警告: 設定ファイル \"%s\" (%s) の読み込みに失敗"
#, c-format
msgid "%sError writing configuration file \"%s\""
msgstr "%s設定ファイル \"%s\" の書き込み中にエラー"
@@ -6561,6 +6576,9 @@ msgstr ""
msgid "%s-MORE(%d)-"
msgstr "%s-MORE(%d)-"
msgid "Lag"
msgstr "遅延時間"
msgid "away"
msgstr "離席"
@@ -8593,9 +8611,6 @@ msgstr "%s%s: スクリプト \"%s\" はロードされていません"
msgid "server"
msgstr "サーバ"
msgid "Lag"
msgstr "遅延時間"
#. TRANSLATORS: this is displayed in a bar item and must be as short as possible
msgid "cleartext"
msgstr ""
+19 -4
View File
@@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2024-05-14 22:20+0200\n"
"POT-Creation-Date: 2024-05-18 09:15+0200\n"
"PO-Revision-Date: 2024-05-02 00:06+0200\n"
"Last-Translator: Krzysztof Korościk <soltys@soltys.info>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4716,6 +4716,16 @@ msgstr ""
"jeśli ustawione, niekompletne i jednoznaczne komendy są dozwolone, na "
"przykład /he dla /help"
msgid ""
"permissions for configuration files (*.conf), as octal value (see man "
"chmod); it must be a number with 3 digits, each digit can be 0 (no "
"permissions), 2 (write only), 4 (read only) or 6 (read and write); the first "
"digit must be 6 so that the user can read and write the file; by default "
"configuration files can be read and written by the user only, for security "
"reasons; for example 660 = \"rw-rw-r--\" = file readable and writable by the "
"user and members of the group"
msgstr ""
msgid ""
"if set, /quit command must be confirmed with extra argument \"-yes\" (see /"
"help quit)"
@@ -5894,6 +5904,11 @@ msgstr "(domyślne opcje)"
msgid "%sCannot create file \"%s\""
msgstr "%sNie można utworzyć pliku \"%s\""
#, fuzzy, c-format
#| msgid "%sWARNING: failed to read configuration file \"%s\" (%s)"
msgid "%sWARNING: failed to set permissions on configuration file \"%s\" (%s)"
msgstr "%sUWAGA: nie powiódł się odczyt pliku konfiguracyjnego \"%s\" (%s)"
#, c-format
msgid "%sError writing configuration file \"%s\""
msgstr "%sBłąd podczas zapisu pliku konfiguracyjnego \"%s\""
@@ -6744,6 +6759,9 @@ msgstr "debugowanie klawiatury i myszy ('q' wychodzi z trybu debugowania)"
msgid "%s-MORE(%d)-"
msgstr "%s-Więcej(%d)-"
msgid "Lag"
msgstr "Lag"
msgid "away"
msgstr "nieobecny"
@@ -8875,9 +8893,6 @@ msgstr "%s%s: skrypt \"%s\" nie załadowany"
msgid "server"
msgstr "serwer"
msgid "Lag"
msgstr "Lag"
#. TRANSLATORS: this is displayed in a bar item and must be as short as possible
msgid "cleartext"
msgstr "czysty tekst"
+19 -4
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2024-05-14 22:20+0200\n"
"POT-Creation-Date: 2024-05-18 09:15+0200\n"
"PO-Revision-Date: 2024-04-07 14:50+0200\n"
"Last-Translator: Vasco Almeida <vascomalmeida@sapo.pt>\n"
"Language-Team: Portuguese <>\n"
@@ -4604,6 +4604,16 @@ msgstr ""
"se definido, são permitidos comandos incompletos mas não ambíguos, por "
"exemplo /he para /help"
msgid ""
"permissions for configuration files (*.conf), as octal value (see man "
"chmod); it must be a number with 3 digits, each digit can be 0 (no "
"permissions), 2 (write only), 4 (read only) or 6 (read and write); the first "
"digit must be 6 so that the user can read and write the file; by default "
"configuration files can be read and written by the user only, for security "
"reasons; for example 660 = \"rw-rw-r--\" = file readable and writable by the "
"user and members of the group"
msgstr ""
msgid ""
"if set, /quit command must be confirmed with extra argument \"-yes\" (see /"
"help quit)"
@@ -5774,6 +5784,11 @@ msgstr "(opções predefinidas)"
msgid "%sCannot create file \"%s\""
msgstr "%sErro: não é possível criar o ficheiro \"%s\""
#, fuzzy, c-format
#| msgid "%sWARNING: failed to read configuration file \"%s\" (%s)"
msgid "%sWARNING: failed to set permissions on configuration file \"%s\" (%s)"
msgstr "%sAVISO: falha ao ler o ficheiro de configuração \"%s\" (%s)"
#, c-format
msgid "%sError writing configuration file \"%s\""
msgstr "%sErro ao escrever o ficheiro de configuração \"%s\""
@@ -6619,6 +6634,9 @@ msgstr ""
msgid "%s-MORE(%d)-"
msgstr "%s-MAIS(%d)-"
msgid "Lag"
msgstr "Lag"
msgid "away"
msgstr "ausente"
@@ -8581,9 +8599,6 @@ msgstr "%s%s: script \"%s\" não carregado"
msgid "server"
msgstr "servidor"
msgid "Lag"
msgstr "Lag"
#. TRANSLATORS: this is displayed in a bar item and must be as short as possible
msgid "cleartext"
msgstr ""
+18 -4
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2024-05-14 22:20+0200\n"
"POT-Creation-Date: 2024-05-18 09:15+0200\n"
"PO-Revision-Date: 2024-04-07 14:50+0200\n"
"Last-Translator: Érico Nogueira <ericonr@disroot.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4452,6 +4452,16 @@ msgid ""
"for /help"
msgstr ""
msgid ""
"permissions for configuration files (*.conf), as octal value (see man "
"chmod); it must be a number with 3 digits, each digit can be 0 (no "
"permissions), 2 (write only), 4 (read only) or 6 (read and write); the first "
"digit must be 6 so that the user can read and write the file; by default "
"configuration files can be read and written by the user only, for security "
"reasons; for example 660 = \"rw-rw-r--\" = file readable and writable by the "
"user and members of the group"
msgstr ""
msgid ""
"if set, /quit command must be confirmed with extra argument \"-yes\" (see /"
"help quit)"
@@ -5520,6 +5530,10 @@ msgstr "(opções padrão)"
msgid "%sCannot create file \"%s\""
msgstr "%sErro: não foi possível criar arquivo \"%s\""
#, fuzzy, c-format
msgid "%sWARNING: failed to set permissions on configuration file \"%s\" (%s)"
msgstr "Escrevendo arquivo de configurações %s %s"
#, c-format
msgid "%sError writing configuration file \"%s\""
msgstr "%sErro escrevendo arquivo de configuração \"%s\""
@@ -6306,6 +6320,9 @@ msgstr ""
msgid "%s-MORE(%d)-"
msgstr "%s-MORE(%d)-"
msgid "Lag"
msgstr ""
msgid "away"
msgstr ""
@@ -8230,9 +8247,6 @@ msgstr "%s%s: script \"%s\" não carregado"
msgid "server"
msgstr "servidor"
msgid "Lag"
msgstr ""
#. TRANSLATORS: this is displayed in a bar item and must be as short as possible
msgid "cleartext"
msgstr ""
+18 -4
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2024-05-14 22:20+0200\n"
"POT-Creation-Date: 2024-05-18 09:15+0200\n"
"PO-Revision-Date: 2024-04-07 14:50+0200\n"
"Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4208,6 +4208,16 @@ msgid ""
"for /help"
msgstr ""
msgid ""
"permissions for configuration files (*.conf), as octal value (see man "
"chmod); it must be a number with 3 digits, each digit can be 0 (no "
"permissions), 2 (write only), 4 (read only) or 6 (read and write); the first "
"digit must be 6 so that the user can read and write the file; by default "
"configuration files can be read and written by the user only, for security "
"reasons; for example 660 = \"rw-rw-r--\" = file readable and writable by the "
"user and members of the group"
msgstr ""
msgid ""
"if set, /quit command must be confirmed with extra argument \"-yes\" (see /"
"help quit)"
@@ -5182,6 +5192,10 @@ msgstr ""
msgid "%sCannot create file \"%s\""
msgstr "%s не могу создать файл \"%s\"\n"
#, fuzzy, c-format
msgid "%sWARNING: failed to set permissions on configuration file \"%s\" (%s)"
msgstr "сохранять конфигурационный файл при выходе"
#, fuzzy, c-format
msgid "%sError writing configuration file \"%s\""
msgstr "перезагрузить конфигурационный файл сервера"
@@ -5978,6 +5992,9 @@ msgstr ""
msgid "%s-MORE(%d)-"
msgstr "-ДАЛЬШЕ-"
msgid "Lag"
msgstr ""
msgid "away"
msgstr ""
@@ -7849,9 +7866,6 @@ msgstr "%s сервер \"%s\" не найден\n"
msgid "server"
msgstr "сервер"
msgid "Lag"
msgstr ""
#. TRANSLATORS: this is displayed in a bar item and must be as short as possible
msgid "cleartext"
msgstr ""
+19 -4
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2024-05-14 22:20+0200\n"
"POT-Creation-Date: 2024-05-18 09:15+0200\n"
"PO-Revision-Date: 2024-05-07 14:00+0400\n"
"Last-Translator: Ivan Pešić <ivan.pesic@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4710,6 +4710,16 @@ msgstr ""
"ако је постављено, дозвољене су недовршене или двосмислене команде, на "
"пример /he за /help"
msgid ""
"permissions for configuration files (*.conf), as octal value (see man "
"chmod); it must be a number with 3 digits, each digit can be 0 (no "
"permissions), 2 (write only), 4 (read only) or 6 (read and write); the first "
"digit must be 6 so that the user can read and write the file; by default "
"configuration files can be read and written by the user only, for security "
"reasons; for example 660 = \"rw-rw-r--\" = file readable and writable by the "
"user and members of the group"
msgstr ""
msgid ""
"if set, /quit command must be confirmed with extra argument \"-yes\" (see /"
"help quit)"
@@ -5890,6 +5900,11 @@ msgstr "(подразумеване опције)"
msgid "%sCannot create file \"%s\""
msgstr "%sНе може да се креира фајл „%s”"
#, fuzzy, c-format
#| msgid "%sWARNING: failed to read configuration file \"%s\" (%s)"
msgid "%sWARNING: failed to set permissions on configuration file \"%s\" (%s)"
msgstr "%sУПОЗОРЕЊЕ: није могао да се прочита конфигурациони фајл „%s” (%s)"
#, c-format
msgid "%sError writing configuration file \"%s\""
msgstr "%sГрешка при уписивању конфигурационог фајла „%s”"
@@ -6741,6 +6756,9 @@ msgstr "дибаг тастатуре и миша (’q’ да напустит
msgid "%s-MORE(%d)-"
msgstr "%s-ЈОШ(%d)-"
msgid "Lag"
msgstr "Кашњење"
msgid "away"
msgstr "одсутан"
@@ -8886,9 +8904,6 @@ msgstr "%s%s: скрипта „%s” није учитана"
msgid "server"
msgstr "сервер"
msgid "Lag"
msgstr "Кашњење"
#. TRANSLATORS: this is displayed in a bar item and must be as short as possible
msgid "cleartext"
msgstr "чисттекст"
+19 -4
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2024-05-14 22:20+0200\n"
"POT-Creation-Date: 2024-05-18 09:15+0200\n"
"PO-Revision-Date: 2024-04-07 14:50+0200\n"
"Last-Translator: Emir SARI <emir_sari@icloud.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -4619,6 +4619,16 @@ msgstr ""
"eğer ayarlıysa tamamlanmamış ve belirsiz komutlara izin verilir, örn. /help "
"yerine /he"
msgid ""
"permissions for configuration files (*.conf), as octal value (see man "
"chmod); it must be a number with 3 digits, each digit can be 0 (no "
"permissions), 2 (write only), 4 (read only) or 6 (read and write); the first "
"digit must be 6 so that the user can read and write the file; by default "
"configuration files can be read and written by the user only, for security "
"reasons; for example 660 = \"rw-rw-r--\" = file readable and writable by the "
"user and members of the group"
msgstr ""
msgid ""
"if set, /quit command must be confirmed with extra argument \"-yes\" (see /"
"help quit)"
@@ -5792,6 +5802,11 @@ msgstr "(öntanımlı seçenekler)"
msgid "%sCannot create file \"%s\""
msgstr "%s\"%s\" dosyası oluşturulamıyor"
#, fuzzy, c-format
#| msgid "%sWARNING: failed to read configuration file \"%s\" (%s)"
msgid "%sWARNING: failed to set permissions on configuration file \"%s\" (%s)"
msgstr "%sUYARI: \"%s\" yapılandırma dosyası okunamadı (%s)"
#, c-format
msgid "%sError writing configuration file \"%s\""
msgstr "%s\"%s\" yapılandırma dosyası yazılırken hata"
@@ -6636,6 +6651,9 @@ msgstr ""
msgid "%s-MORE(%d)-"
msgstr "%s-DAHA FAZLA(%d)-"
msgid "Lag"
msgstr "Gecikme"
msgid "away"
msgstr "uzakta"
@@ -8692,9 +8710,6 @@ msgstr "%s%s: \"%s\" betiği yüklenmedi"
msgid "server"
msgstr "sunucu"
msgid "Lag"
msgstr "Gecikme"
#. TRANSLATORS: this is displayed in a bar item and must be as short as possible
msgid "cleartext"
msgstr "düzmetin"
+18 -4
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2024-05-14 22:20+0200\n"
"POT-Creation-Date: 2024-05-18 09:15+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"
@@ -3924,6 +3924,16 @@ msgid ""
"for /help"
msgstr ""
msgid ""
"permissions for configuration files (*.conf), as octal value (see man "
"chmod); it must be a number with 3 digits, each digit can be 0 (no "
"permissions), 2 (write only), 4 (read only) or 6 (read and write); the first "
"digit must be 6 so that the user can read and write the file; by default "
"configuration files can be read and written by the user only, for security "
"reasons; for example 660 = \"rw-rw-r--\" = file readable and writable by the "
"user and members of the group"
msgstr ""
msgid ""
"if set, /quit command must be confirmed with extra argument \"-yes\" (see /"
"help quit)"
@@ -4783,6 +4793,10 @@ msgstr ""
msgid "%sCannot create file \"%s\""
msgstr ""
#, c-format
msgid "%sWARNING: failed to set permissions on configuration file \"%s\" (%s)"
msgstr ""
#, c-format
msgid "%sError writing configuration file \"%s\""
msgstr ""
@@ -5526,6 +5540,9 @@ msgstr ""
msgid "%s-MORE(%d)-"
msgstr ""
msgid "Lag"
msgstr ""
msgid "away"
msgstr ""
@@ -7285,9 +7302,6 @@ msgstr ""
msgid "server"
msgstr ""
msgid "Lag"
msgstr ""
#. TRANSLATORS: this is displayed in a bar item and must be as short as possible
msgid "cleartext"
msgstr ""
+16 -2
View File
@@ -3193,7 +3193,8 @@ config_file_write_internal (struct t_config_file *config_file,
int default_options)
{
int filename_length, rc;
char *filename, *filename2, resolved_path[PATH_MAX];
long file_perms;
char *filename, *filename2, resolved_path[PATH_MAX], *error;
struct t_config_section *ptr_section;
struct t_config_option *ptr_option;
@@ -3339,7 +3340,20 @@ config_file_write_internal (struct t_config_file *config_file,
config_file->file = NULL;
/* update file mode */
chmod (filename2, 0600);
error = NULL;
file_perms = strtol (CONFIG_STRING(config_look_config_permissions), &error, 8);
if (!error || error[0])
file_perms = 0600;
if (chmod (filename2, file_perms) < 0)
{
gui_chat_printf (
NULL,
_("%sWARNING: failed to set permissions on configuration file "
"\"%s\" (%s)"),
gui_chat_prefix[GUI_CHAT_PREFIX_ERROR],
filename2,
strerror (errno));
}
/* rename temp file to target file */
rc = rename (filename2, filename);
+45
View File
@@ -133,6 +133,7 @@ struct t_config_option *config_look_color_pairs_auto_reset = NULL;
struct t_config_option *config_look_color_real_white = NULL;
struct t_config_option *config_look_command_chars = NULL;
struct t_config_option *config_look_command_incomplete = NULL;
struct t_config_option *config_look_config_permissions = NULL;
struct t_config_option *config_look_confirm_quit = NULL;
struct t_config_option *config_look_confirm_upgrade = NULL;
struct t_config_option *config_look_day_change = NULL;
@@ -393,6 +394,35 @@ config_change_sys_rlimit (const void *pointer, void *data,
sys_setrlimit ();
}
/*
* Checks option "weechat.look.config_permissions".
*/
int
config_check_config_permissions (const void *pointer, void *data,
struct t_config_option *option,
const char *value)
{
const char *ptr_perm;
/* make C compiler happy */
(void) pointer;
(void) data;
(void) option;
if (!value || (strlen (value) != 3) || (value[0] != '6'))
return 0;
ptr_perm = value;
while (ptr_perm && ptr_perm[0])
{
if (!strchr ("0246", ptr_perm[0]))
return 0;
ptr_perm++;
}
return 1;
}
/*
* Callback for changes on options "weechat.look.save_{config|layout}_on_exit".
*/
@@ -3462,6 +3492,21 @@ config_weechat_init_options ()
"example /he for /help"),
NULL, 0, 0, "off", NULL, 0,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
config_look_config_permissions = config_file_new_option (
weechat_config_file, weechat_config_section_look,
"config_permissions", "string",
N_("permissions for configuration files (*.conf), as octal value "
"(see man chmod); it must be a number with 3 digits, each digit "
"can be 0 (no permissions), 2 (write only), 4 (read only) or "
"6 (read and write); the first digit must be 6 so that the user "
"can read and write the file; by default configuration files "
"can be read and written by the user only, for security "
"reasons; for example 660 = \"rw-rw-r--\" = file readable and "
"writable by the user and members of the group"),
NULL, 0, 0, "600", NULL, 0,
&config_check_config_permissions, NULL, NULL,
NULL, NULL, NULL,
NULL, NULL, NULL);
config_look_confirm_quit = config_file_new_option (
weechat_config_file, weechat_config_section_look,
"confirm_quit", "boolean",
+1
View File
@@ -190,6 +190,7 @@ extern struct t_config_option *config_look_color_pairs_auto_reset;
extern struct t_config_option *config_look_color_real_white;
extern struct t_config_option *config_look_command_chars;
extern struct t_config_option *config_look_command_incomplete;
extern struct t_config_option *config_look_config_permissions;
extern struct t_config_option *config_look_confirm_quit;
extern struct t_config_option *config_look_confirm_upgrade;
extern struct t_config_option *config_look_day_change;