mirror of
https://github.com/weechat/weechat.git
synced 2026-06-12 14:14:48 +02:00
doc: remove "optional" for arguments of function register (scripting guide)
This commit is contained in:
@@ -99,8 +99,10 @@ Argumente:
|
||||
* 'version': Version des Skripts (String)
|
||||
* 'license': Lizenz für das Skripts (String)
|
||||
* 'description': kurze Beschreibung des Skripts (String)
|
||||
* 'shutdown_function': Name der Funktion die beim Beenden des Skripts aufgerufen werden soll (String, optional)
|
||||
* 'charset': Skript Zeichensatz (optional, liegt das Skript im UTF-8 Format vor kann dieser Wert
|
||||
// TRANSLATION MISSING
|
||||
* 'shutdown_function': Name der Funktion die beim Beenden des Skripts aufgerufen werden soll
|
||||
(String, can be empty string)
|
||||
* 'charset': Skript Zeichensatz (liegt das Skript im UTF-8 Format vor kann dieser Wert
|
||||
leer bleiben. UTF-8 ist der Standardzeichensatz) (String)
|
||||
|
||||
Beispielskripten, für jede Sprache:
|
||||
|
||||
@@ -99,9 +99,10 @@ Arguments:
|
||||
* 'version': string, script version
|
||||
* 'license': string, script license
|
||||
* 'description': string, short description of script
|
||||
* 'shutdown_function': string, name of function called when script is unloaded (optional)
|
||||
* 'charset': string, script charset (optional, if your script is UTF-8, you
|
||||
can use blank value here, because UTF-8 is default charset)
|
||||
* 'shutdown_function': string, name of function called when script is unloaded
|
||||
(can be empty string)
|
||||
* 'charset': string, script charset (if your script is UTF-8, you can use blank
|
||||
value here, because UTF-8 is default charset)
|
||||
|
||||
Example of script, for each language:
|
||||
|
||||
|
||||
@@ -101,10 +101,10 @@ Paramètres :
|
||||
* 'license' : chaîne, licence du script
|
||||
* 'description' : chaîne, description courte du script
|
||||
* 'shutdown_function' : chaîne, nom de la fonction appelée lorsque le script
|
||||
est déchargé (optionnel)
|
||||
* 'charset' : chaîne, jeu de caractères du script (optionnel, si votre script
|
||||
est UTF-8, vous pouvez utiliser une valeur vide ici, car UTF-8 est le jeu de
|
||||
caractères par défaut)
|
||||
est déchargé (peut être une chaîne vide)
|
||||
* 'charset' : chaîne, jeu de caractères du script (si votre script est UTF-8,
|
||||
vous pouvez utiliser une valeur vide ici, car UTF-8 est le jeu de caractères
|
||||
par défaut)
|
||||
|
||||
Exemple, pour chaque langage :
|
||||
|
||||
|
||||
@@ -100,9 +100,10 @@ Argomenti:
|
||||
* 'version': stringa, versione dello script
|
||||
* 'license': stringa, licenza dello script
|
||||
* 'description': stringa, breve descrizione dello script
|
||||
// TRANSLATION MISSING
|
||||
* 'shutdown_function': stringa, nome della funzione chiamata quando lo script
|
||||
viene scaricato (opzionale)
|
||||
* 'charset': stringa, set caratteri dello script (opzionale, se il proprio script è in UTF-8,
|
||||
viene scaricato (can be empty string)
|
||||
* 'charset': stringa, set caratteri dello script (se il proprio script è in UTF-8,
|
||||
è possibile utilizzare un valore nullo qui, dato che UTF-8 è il set caratteri predefinito)
|
||||
|
||||
Esempio di script, per ogni linguaggio:
|
||||
|
||||
@@ -88,9 +88,11 @@ weechat.register(name, author, version, license, description, shutdown_function,
|
||||
* 'version': 文字列型、スクリプトのバージョン
|
||||
* 'license': 文字列型、スクリプトのライセンス
|
||||
* 'description': 文字列型、スクリプトの短い説明
|
||||
* 'shutdown_function': 文字列型、スクリプトがアンロードされた際に呼び出される関数の名前 (任意)
|
||||
* 'charset': 文字列型、スクリプトの文字コード (任意、スクリプトが UTF-8
|
||||
で書かれている場合、UTF-8 はデフォルトの文字コードのため、空文字列が使えます。)
|
||||
// TRANSLATION MISSING
|
||||
* 'shutdown_function': 文字列型、スクリプトがアンロードされた際に呼び出される関数の名前 (can be empty string)
|
||||
// TRANSLATION MISSING
|
||||
* 'charset': 文字列型、スクリプトの文字コード (if your script is UTF-8, you can use blank
|
||||
value here, because UTF-8 is default charset)
|
||||
|
||||
各言語で書かれたスクリプトの例:
|
||||
|
||||
|
||||
@@ -99,9 +99,10 @@ Argumenty:
|
||||
* 'wersja': string, wersja
|
||||
* 'licencja': string, licencja
|
||||
* 'opis': string, krótki opis skryptu
|
||||
// TRANSLATION MISSING
|
||||
* 'funkcja_wyłączająca': string, nazwa funkcji wywoływanej podczas wyładowania skryptu
|
||||
(opcjonalne)
|
||||
* 'kodowanie': string, kodowane skryptu (opcjonalne, jeśli skrypt jest napisany
|
||||
(can be empty string)
|
||||
* 'kodowanie': string, kodowane skryptu (jeśli skrypt jest napisany
|
||||
w UTF-8 można nie podawać tej wartości - UTF-8 to domyślne kodowanie)
|
||||
|
||||
Przykład dla skryptu w każdym z języków:
|
||||
|
||||
Reference in New Issue
Block a user