From c2a584ac68533d8bb126da1f68ea6183c5b113c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milo=C5=A1=20Brecher?= <34324008+mildabre@users.noreply.github.com> Date: Fri, 7 Apr 2023 16:19:48 +0200 Subject: [PATCH] tracy: Adding a line to the Tracy activation code sample (#991) --- tracy/bg/guide.texy | 4 +++- tracy/cs/guide.texy | 4 +++- tracy/de/guide.texy | 4 +++- tracy/el/guide.texy | 4 +++- tracy/en/guide.texy | 4 +++- tracy/es/guide.texy | 4 +++- tracy/fr/guide.texy | 4 +++- tracy/hu/guide.texy | 4 +++- tracy/it/guide.texy | 4 +++- tracy/pl/guide.texy | 4 +++- tracy/pt/guide.texy | 4 +++- tracy/ro/guide.texy | 4 +++- tracy/ru/guide.texy | 4 +++- tracy/sl/guide.texy | 4 +++- tracy/tr/guide.texy | 4 +++- tracy/uk/guide.texy | 4 +++- 16 files changed, 48 insertions(+), 16 deletions(-) diff --git a/tracy/bg/guide.texy b/tracy/bg/guide.texy index 76d8faf89a..4a74e8c5b3 100644 --- a/tracy/bg/guide.texy +++ b/tracy/bg/guide.texy @@ -34,11 +34,13 @@ composer require tracy/tracy Използване на .[#toc-usage] =========================== -Активирането на Tracy е много лесно. Просто добавете тези два реда код, за предпочитане непосредствено след зареждането на библиотеката (например `require 'vendor/autoload.php'`) и преди изпращането на изхода към браузъра: +Tracy се активира чрез извикване на метода `Tracy\Debugger::enable()' възможно най-скоро в началото на програмата, преди да се изпрати какъвто и да е изход: ```php use Tracy\Debugger; +require 'vendor/autoload.php'; // алтернативно tracy.phar + Debugger::enable(); ``` diff --git a/tracy/cs/guide.texy b/tracy/cs/guide.texy index 3e92207ec9..c8e7a2ff9e 100644 --- a/tracy/cs/guide.texy +++ b/tracy/cs/guide.texy @@ -34,11 +34,13 @@ Můžete si také stáhnout celý balíček jako soubor [tracy.phar |https://git Použití ======= -*Laděnku* aktivujeme snadno. Stačí přidat do kódu, nejlépe hned za načtení knihovny (např. `require 'vendor/autoload.php'`) a dříve než se odešle jakýkoliv výstup, následující: +*Laděnku* aktivujeme voláním metody `Tracy\Debugger::enable()' co nejdříve na začátku programu, před odesláním jakéhokoli výstupu: ```php use Tracy\Debugger; +require 'vendor/autoload.php'; // případně tracy.phar + Debugger::enable(); ``` diff --git a/tracy/de/guide.texy b/tracy/de/guide.texy index b8045c8c82..453e31a580 100644 --- a/tracy/de/guide.texy +++ b/tracy/de/guide.texy @@ -34,11 +34,13 @@ Alternativ können Sie auch das gesamte Paket oder die Datei [tracy.phar |https: Verwendung .[#toc-usage] ======================== -Die Aktivierung von Tracy ist einfach. Fügen Sie einfach diese beiden Codezeilen ein, vorzugsweise direkt nach dem Laden der Bibliothek (wie `require 'vendor/autoload.php'`) und bevor eine Ausgabe an den Browser gesendet wird: +Tracy wird durch den Aufruf der Methode `Tracy\Debugger::enable()' so früh wie möglich zu Beginn des Programms aktiviert, bevor irgendeine Ausgabe gesendet wird: ```php use Tracy\Debugger; +require 'vendor/autoload.php'; // alternativ tracy.phar + Debugger::enable(); ``` diff --git a/tracy/el/guide.texy b/tracy/el/guide.texy index 9b4dbddae1..f942fa71e8 100644 --- a/tracy/el/guide.texy +++ b/tracy/el/guide.texy @@ -34,11 +34,13 @@ composer require tracy/tracy Χρήση .[#toc-usage] =================== -Η ενεργοποίηση του Tracy είναι εύκολη. Απλά προσθέστε αυτές τις δύο γραμμές κώδικα, κατά προτίμηση αμέσως μετά τη φόρτωση της βιβλιοθήκης (όπως `require 'vendor/autoload.php'`) και πριν από την αποστολή οποιασδήποτε εξόδου στο πρόγραμμα περιήγησης: +Το Tracy ενεργοποιείται με την κλήση της μεθόδου `Tracy\Debugger::enable()' το συντομότερο δυνατό στην αρχή του προγράμματος, πριν από την αποστολή οποιασδήποτε εξόδου: ```php use Tracy\Debugger; +require 'vendor/autoload.php'; // εναλλακτικά tracy.phar + Debugger::enable(); ``` diff --git a/tracy/en/guide.texy b/tracy/en/guide.texy index ffff816ce5..94b755fbcf 100644 --- a/tracy/en/guide.texy +++ b/tracy/en/guide.texy @@ -34,11 +34,13 @@ Alternatively, you can download the whole package or [tracy.phar |https://github Usage ===== -Activating Tracy is easy. Simply add these two lines of code, preferably just after library loading (like `require 'vendor/autoload.php'`) and before any output is sent to browser: +Tracy is activated by calling the `Tracy\Debugger::enable()' method as soon as possible at the beginning of the program, before any output is sent: ```php use Tracy\Debugger; +require 'vendor/autoload.php'; // alternatively tracy.phar + Debugger::enable(); ``` diff --git a/tracy/es/guide.texy b/tracy/es/guide.texy index 2f0386c04b..3538ea6275 100644 --- a/tracy/es/guide.texy +++ b/tracy/es/guide.texy @@ -34,11 +34,13 @@ También puede descargar el paquete completo o el archivo [tracy.phar |https://g Utilización .[#toc-usage] ========================= -Activar Tracy es fácil. Simplemente añada estas dos líneas de código, preferiblemente justo después de cargar la librería (como `require 'vendor/autoload.php'`) y antes de que cualquier salida sea enviada al navegador: +Tracy se activa llamando al método `Tracy\Debugger::enable()' tan pronto como sea posible al principio del programa, antes de que se envíe ninguna salida: ```php use Tracy\Debugger; +require 'vendor/autoload.php'; // alternativamente tracy.phar + Debugger::enable(); ``` diff --git a/tracy/fr/guide.texy b/tracy/fr/guide.texy index 0a70d43baf..de2abc975f 100644 --- a/tracy/fr/guide.texy +++ b/tracy/fr/guide.texy @@ -34,11 +34,13 @@ Vous pouvez également télécharger le paquet complet ou le fichier [tracy.phar Utilisation .[#toc-usage] ========================= -L'activation de Tracy est facile. Il suffit d'ajouter ces deux lignes de code, de préférence juste après le chargement de la bibliothèque (comme `require 'vendor/autoload.php'`) et avant que toute sortie soit envoyée au navigateur : +Tracy est activé en appelant la méthode `Tracy\Debugger::enable()' dès que possible au début du programme, avant que toute sortie ne soit envoyée : ```php use Tracy\Debugger; +require 'vendor/autoload.php' ; // alternativement tracy.phar + Debugger::enable(); ``` diff --git a/tracy/hu/guide.texy b/tracy/hu/guide.texy index 5c2e8a40e8..31dec6942e 100644 --- a/tracy/hu/guide.texy +++ b/tracy/hu/guide.texy @@ -34,11 +34,13 @@ Alternatívaként letöltheti a teljes csomagot vagy a [tracy.phar |https://gith Használat .[#toc-usage] ======================= -Tracy aktiválása egyszerű. Egyszerűen add hozzá ezt a két kódsort, lehetőleg közvetlenül a könyvtár betöltése után (mint a `require 'vendor/autoload.php'`), és mielőtt bármilyen kimenetet elküldenél a böngészőnek: +A Tracy aktiválása a `Tracy\Debugger::enable()' metódus meghívásával történik a program elején a lehető leghamarabb, mielőtt bármilyen kimenet elküldésre kerülne: ```php use Tracy\Debugger; +require 'vendor/autoload.php'; // alternatívaként tracy.phar + Debugger::enable(); ``` diff --git a/tracy/it/guide.texy b/tracy/it/guide.texy index ffd9a573f2..4657d2e8d7 100644 --- a/tracy/it/guide.texy +++ b/tracy/it/guide.texy @@ -34,11 +34,13 @@ In alternativa, è possibile scaricare l'intero pacchetto o il file [tracy.phar Utilizzo .[#toc-usage] ====================== -Attivare Tracy è facile. È sufficiente aggiungere queste due righe di codice, preferibilmente subito dopo il caricamento della libreria (come `require 'vendor/autoload.php'`) e prima che qualsiasi output sia inviato al browser: +Tracy viene attivato chiamando il metodo `Tracy\Debugger::enable()' il prima possibile all'inizio del programma, prima che venga inviato qualsiasi output: ```php use Tracy\Debugger; +require 'vendor/autoload.php'; // in alternativa tracy.phar + Debugger::enable(); ``` diff --git a/tracy/pl/guide.texy b/tracy/pl/guide.texy index 465f98949e..b59b619280 100644 --- a/tracy/pl/guide.texy +++ b/tracy/pl/guide.texy @@ -34,11 +34,13 @@ Możesz również pobrać cały pakiet jako plik [tracy.phar |https://github.com Zastosowanie .[#toc-usage] ========================== -*Płyta* jest łatwa do aktywacji. Wystarczy dodać poniższe do kodu, najlepiej zaraz po załadowaniu biblioteki (np. `require 'vendor/autoload.php'`) i przed wysłaniem jakiegokolwiek wyjścia: +Tracy aktywuje się poprzez wywołanie metody `TracyDebugger::enable()' jak najszybciej na początku programu, przed wysłaniem jakiegokolwiek wyjścia: ```php use Tracy\Debugger; +require 'vendor/autoload.php'; // alternatywnie tracy.phar + Debugger::enable(); ``` diff --git a/tracy/pt/guide.texy b/tracy/pt/guide.texy index 1c13f1db76..5350ab840e 100644 --- a/tracy/pt/guide.texy +++ b/tracy/pt/guide.texy @@ -34,11 +34,13 @@ Alternativamente, você pode baixar o pacote completo ou o arquivo [tracy.phar. Utilização .[#toc-usage] ======================== -Ativar Tracy é fácil. Basta adicionar estas duas linhas de código, de preferência logo após o carregamento da biblioteca (como `require 'vendor/autoload.php'`) e antes que qualquer saída seja enviada para o navegador: +Tracy é ativado chamando o método `Tracy\Debugger::enable()' o mais rápido possível no início do programa, antes que qualquer saída seja enviada: ```php use Tracy\Debugger; +require 'vendor/autoload.php'; // alternativamente tracy.phar + Debugger::enable(); ``` diff --git a/tracy/ro/guide.texy b/tracy/ro/guide.texy index 1df3635dd1..d289faf636 100644 --- a/tracy/ro/guide.texy +++ b/tracy/ro/guide.texy @@ -34,11 +34,13 @@ Alternativ, puteți descărca întregul pachet sau fișierul [tracy.phar |https: Utilizare .[#toc-usage] ======================= -Activarea lui Tracy este ușoară. Pur și simplu adăugați aceste două linii de cod, de preferință imediat după încărcarea bibliotecii (cum ar fi `require 'vendor/autoload.php'`) și înainte ca orice ieșire să fie trimisă în browser: +Tracy este activat prin apelarea metodei `Tracy\Debugger::enable()' cât mai curând posibil la începutul programului, înainte de a fi trimisă orice ieșire: ```php use Tracy\Debugger; +require 'vendor/autoload.php'; // alternativ tracy.phar + Debugger::enable(); ``` diff --git a/tracy/ru/guide.texy b/tracy/ru/guide.texy index c54e2f1e82..93f029345a 100644 --- a/tracy/ru/guide.texy +++ b/tracy/ru/guide.texy @@ -34,11 +34,13 @@ composer require tracy/tracy Использование .[#toc-usage] =========================== -Активировать Tracy очень просто. Просто добавьте эти две строки кода, желательно сразу после загрузки библиотеки (например, `require 'vendor/autoload.php'`) и перед отправкой любого вывода в браузер: +Трейси активируется вызовом метода `Tracy\Debugger::enable()' как можно раньше в начале программы, до того, как будет отправлен какой-либо вывод: ```php use Tracy\Debugger; +require 'vendor/autoload.php'; // альтернатива tracy.phar + Debugger::enable(); ``` diff --git a/tracy/sl/guide.texy b/tracy/sl/guide.texy index b0f4390efc..3a411e57c7 100644 --- a/tracy/sl/guide.texy +++ b/tracy/sl/guide.texy @@ -34,11 +34,13 @@ lahko prenesete tudi celoten paket ali datoteko [tracy.phar |https://github.com/ Uporaba .[#toc-usage] ===================== -Aktivacija programa Tracy je preprosta. Preprosto dodajte ti dve vrstici kode, po možnosti takoj po nalaganju knjižnice (kot `require 'vendor/autoload.php'`) in preden se v brskalnik pošlje kakršen koli izpis: +Tracy se aktivira s klicem metode `Tracy\Debugger::enable()' čim prej na začetku programa, preden se pošlje kakršen koli izhod: ```php use Tracy\Debugger; +require 'vendor/autoload.php'; // alternativno tracy.phar + Debugger::enable(); ``` diff --git a/tracy/tr/guide.texy b/tracy/tr/guide.texy index fff9bdd255..30b5ded8b0 100644 --- a/tracy/tr/guide.texy +++ b/tracy/tr/guide.texy @@ -34,11 +34,13 @@ Alternatif olarak, tüm paketi veya [tracy.phar |https://github.com/nette/tracy/ Kullanım .[#toc-usage] ====================== -Tracy'yi etkinleştirmek kolaydır. Tercihen kütüphane yüklemesinden hemen sonra ( `require 'vendor/autoload.php'` gibi) ve tarayıcıya herhangi bir çıktı gönderilmeden önce bu iki kod satırını eklemeniz yeterlidir: +Tracy, `Tracy\Debugger::enable()' yönteminin programın başında, herhangi bir çıktı gönderilmeden önce mümkün olan en kısa sürede çağrılmasıyla etkinleştirilir: ```php use Tracy\Debugger; +require 'vendor/autoload.php'; // alternatif olarak tracy.phar + Debugger::enable(); ``` diff --git a/tracy/uk/guide.texy b/tracy/uk/guide.texy index bf85607f87..6761dcd4bb 100644 --- a/tracy/uk/guide.texy +++ b/tracy/uk/guide.texy @@ -34,11 +34,13 @@ composer require tracy/tracy Використання .[#toc-usage] ========================== -Активувати Tracy дуже просто. Просто додайте ці два рядки коду, бажано одразу після завантаження бібліотеки (наприклад, `require 'vendor/autoload.php'`) і перед надсиланням будь-якого виводу в браузер: +Tracy активується викликом методу `Tracy\Debugger::enable()' якнайшвидше на початку програми, до того, як буде надіслано будь-який вивід: ```php use Tracy\Debugger; +require 'vendor/autoload.php'; // або tracy.phar + Debugger::enable(); ```