Skip to content

Commit

Permalink
application: fixed translator usage [WIP]
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Aug 11, 2024
1 parent 02c654e commit f06d83f
Show file tree
Hide file tree
Showing 34 changed files with 34 additions and 34 deletions.
2 changes: 1 addition & 1 deletion application/bg/configuration.texy
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ latte:
```neon
latte:
расширения:
- Latte\Essential\TranslatorExtension
- Latte\Essential\TranslatorExtension(@Nette\Localization\Translator)
```

/--comment
Expand Down
2 changes: 1 addition & 1 deletion application/bg/templates.texy
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ protected function beforeRender(): void
```neon
latte:
extensions:
- Latte\Essential\TranslatorExtension
- Latte\Essential\TranslatorExtension(@Nette\Localization\Translator)
```

След това транслаторът може да се използва например като филтър `|translate`, като на метода `translate()` се предават допълнителни параметри (вж. `foo, bar`):
Expand Down
2 changes: 1 addition & 1 deletion application/cs/configuration.texy
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ Pokud používáte Latte verze 3, můžete přidávat nové [rozšíření |latt
```neon
latte:
extensions:
- Latte\Essential\TranslatorExtension
- Latte\Essential\TranslatorExtension(@Nette\Localization\Translator)
```

Pokud používáte Latte verze 2, můžete registrovat nové tagy (makra) buď uvedením jména třídy, nebo referencí na službu. Jako výchozí je zavolána metoda `install()`, ale to lze změnit tím, že uvedeme jméno jiné metody:
Expand Down
2 changes: 1 addition & 1 deletion application/cs/templates.texy
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ Translator je alternativně možné nastavit pomocí [konfigurace |configuration
```neon
latte:
extensions:
- Latte\Essential\TranslatorExtension
- Latte\Essential\TranslatorExtension(@Nette\Localization\Translator)
```

Poté lze překladač používat například jako filtr `|translate`, a to včetně doplňujících parametrů, které se předají metodě `translate()` (viz `foo, bar`):
Expand Down
2 changes: 1 addition & 1 deletion application/de/configuration.texy
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ Wenn Sie Latte Version 3 verwenden, können Sie neue [Erweiterungen |latte:creat
```neon
latte:
extensions:
- Latte\Essential\TranslatorExtension
- Latte\Essential\TranslatorExtension(@Nette\Localization\Translator)
```

/--comment
Expand Down
2 changes: 1 addition & 1 deletion application/de/templates.texy
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ Alternativ kann der Übersetzer auch über die [Konfiguration |configuration#Lat
```neon
latte:
extensions:
- Latte\Essential\TranslatorExtension
- Latte\Essential\TranslatorExtension(@Nette\Localization\Translator)
```

Der Übersetzer kann dann z.B. als Filter `|translate` verwendet werden, wobei zusätzliche Parameter an die Methode `translate()` übergeben werden (siehe `foo, bar`):
Expand Down
2 changes: 1 addition & 1 deletion application/el/configuration.texy
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ latte:
```neon
latte:
extensions:
- Latte\Essential\TranslatorExtension
- Latte\Essential\TranslatorExtension(@Nette\Localization\Translator)
```

/--comment
Expand Down
2 changes: 1 addition & 1 deletion application/el/templates.texy
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ protected function beforeRender(): void
```neon
latte:
extensions:
- Latte\Essential\TranslatorExtension
- Latte\Essential\TranslatorExtension(@Nette\Localization\Translator)
```

Ο μεταφραστής μπορεί στη συνέχεια να χρησιμοποιηθεί, για παράδειγμα, ως φίλτρο `|translate`, με πρόσθετες παραμέτρους που περνούν στη μέθοδο `translate()` (βλ. `foo, bar`):
Expand Down
2 changes: 1 addition & 1 deletion application/en/configuration.texy
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ If you are using Latte version 3, you can add new [extension |latte:creating-ext
```neon
latte:
extensions:
- Latte\Essential\TranslatorExtension
- Latte\Essential\TranslatorExtension(@Nette\Localization\Translator)
```

If you are using Latte version 2, you can register new tags either by entering the class name or by referring to the service. Method `install()` is called by default, but this can be changed by specifying the name of another method:
Expand Down
2 changes: 1 addition & 1 deletion application/en/templates.texy
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ Alternatively, the translator can be set using the [configuration |configuration
```neon
latte:
extensions:
- Latte\Essential\TranslatorExtension
- Latte\Essential\TranslatorExtension(@Nette\Localization\Translator)
```

The translator can then be used, for example, as a filter `|translate`, with additional parameters passed to the `translate()` method (see `foo, bar`):
Expand Down
2 changes: 1 addition & 1 deletion application/es/configuration.texy
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ Si está utilizando la versión 3 de Latte, puede añadir una nueva [extensión
```neon
latte:
extensions:
- Latte\Essential\TranslatorExtension
- Latte\Essential\TranslatorExtension(@Nette\Localization\Translator)
```

/--comment
Expand Down
2 changes: 1 addition & 1 deletion application/es/templates.texy
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ Alternativamente, el traductor se puede establecer utilizando la [configuración
```neon
latte:
extensions:
- Latte\Essential\TranslatorExtension
- Latte\Essential\TranslatorExtension(@Nette\Localization\Translator)
```

El traductor puede utilizarse, por ejemplo, como un filtro `|translate`, con parámetros adicionales pasados al método `translate()` (véase `foo, bar`):
Expand Down
2 changes: 1 addition & 1 deletion application/fr/configuration.texy
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ Si vous utilisez la version 3 de Latte, vous pouvez ajouter une nouvelle [extens
```neon
latte:
extensions:
- Latte\Essential\TranslatorExtension
- Latte\Essential\TranslatorExtension(@Nette\Localization\Translator)
```

/--comment
Expand Down
2 changes: 1 addition & 1 deletion application/fr/templates.texy
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ Alternativement, le traducteur peut être défini à l'aide de la [configuration
```neon
latte:
extensions:
- Latte\Essential\TranslatorExtension
- Latte\Essential\TranslatorExtension(@Nette\Localization\Translator)
```

Le traducteur peut alors être utilisé, par exemple, comme un filtre `|translate`, avec des paramètres supplémentaires transmis à la méthode `translate()` (voir `foo, bar`) :
Expand Down
2 changes: 1 addition & 1 deletion application/hu/configuration.texy
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ Ha a Latte 3. verzióját használja, akkor új [bővítményt |latte:creating-e
```neon
latte:
extensions:
- Latte\Essential\TranslatorExtension
- Latte\Essential\TranslatorExtension(@Nette\Localization\Translator)
```

/--comment
Expand Down
2 changes: 1 addition & 1 deletion application/hu/templates.texy
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ Alternatívaként a fordítót a [konfiguráció |configuration#Latte] segítsé
```neon
latte:
extensions:
- Latte\Essential\TranslatorExtension
- Latte\Essential\TranslatorExtension(@Nette\Localization\Translator)
```

A fordító ekkor például a `|translate` szűrőként használható, a `translate()` metódusnak átadott további paraméterekkel (lásd `foo, bar`):
Expand Down
2 changes: 1 addition & 1 deletion application/it/configuration.texy
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ Se si utilizza la versione 3 di Latte, è possibile aggiungere nuove [estensioni
```neon
latte:
extensions:
- Latte\Essential\TranslatorExtension
- Latte\Essential\TranslatorExtension(@Nette\Localization\Translator)
```

/--comment
Expand Down
2 changes: 1 addition & 1 deletion application/it/templates.texy
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ In alternativa, il traduttore può essere impostato utilizzando la [configurazio
```neon
latte:
extensions:
- Latte\Essential\TranslatorExtension
- Latte\Essential\TranslatorExtension(@Nette\Localization\Translator)
```

Il traduttore può essere utilizzato, ad esempio, come filtro `|translate`, con parametri aggiuntivi passati al metodo `translate()` (vedere `foo, bar`):
Expand Down
2 changes: 1 addition & 1 deletion application/pl/configuration.texy
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ Jeśli używasz Latte w wersji 3, możesz dodać nowe [rozszerzenia |latte:creat
```neon
latte:
extensions:
- Latte\Essential\TranslatorExtension
- Latte\Essential\TranslatorExtension(@Nette\Localization\Translator)
```

/--comment
Expand Down
2 changes: 1 addition & 1 deletion application/pl/templates.texy
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ Alternatywnie, tłumacz może być ustawiony za pomocą [konfiguracji |configura
```neon
latte:
extensions:
- Latte\Essential\TranslatorExtension
- Latte\Essential\TranslatorExtension(@Nette\Localization\Translator)
```

Translator może być wtedy użyty np. jako filtr `|translate`, z dodatkowymi parametrami przekazywanymi do metody `translate()` (patrz `foo, bar`):
Expand Down
2 changes: 1 addition & 1 deletion application/pt/configuration.texy
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ Se você estiver usando Latte versão 3, você pode adicionar uma nova [extensã
```neon
latte:
extensions:
- Latte\Essential\TranslatorExtension
- Latte\Essential\TranslatorExtension(@Nette\Localization\Translator)
```

/--comment
Expand Down
2 changes: 1 addition & 1 deletion application/pt/templates.texy
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ Alternativamente, o tradutor pode ser definido usando a [configuração |configu
```neon
latte:
extensions:
- Latte\Essential\TranslatorExtension
- Latte\Essential\TranslatorExtension(@Nette\Localization\Translator)
```

O tradutor pode então ser usado, por exemplo, como um filtro `|translate`, com parâmetros adicionais passados para o método `translate()` (ver `foo, bar`):
Expand Down
2 changes: 1 addition & 1 deletion application/ro/configuration.texy
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ Dacă utilizați Latte versiunea 3, puteți adăuga o nouă [extensie |latte:cre
```neon
latte:
extensions:
- Latte\Essential\TranslatorExtension
- Latte\Essential\TranslatorExtension(@Nette\Localization\Translator)
```

/--comment
Expand Down
2 changes: 1 addition & 1 deletion application/ro/templates.texy
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ Alternativ, traducătorul poate fi setat cu ajutorul [configurației |configurat
```neon
latte:
extensions:
- Latte\Essential\TranslatorExtension
- Latte\Essential\TranslatorExtension(@Nette\Localization\Translator)
```

Traducătorul poate fi apoi utilizat, de exemplu, ca filtru `|translate`, cu parametri suplimentari trecuți la metoda `translate()` (a se vedea `foo, bar`):
Expand Down
2 changes: 1 addition & 1 deletion application/ru/configuration.texy
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ latte:
```neon
latte:
расширения:
- Latte\Essential\TranslatorExtension
- Latte\Essential\TranslatorExtension(@Nette\Localization\Translator)
```

/--comment
Expand Down
2 changes: 1 addition & 1 deletion application/ru/templates.texy
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ protected function beforeRender(): void
```neon
latte:
extensions:
- Latte\Essential\TranslatorExtension
- Latte\Essential\TranslatorExtension(@Nette\Localization\Translator)
```

Транслятор можно использовать, например, в качестве фильтра `|translate`, передав дополнительные параметры в метод `translate()` (см. `foo, bar`):
Expand Down
2 changes: 1 addition & 1 deletion application/sl/configuration.texy
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ latte:
```neon
latte:
extensions:
- Latte\Essential\TranslatorExtension
- Latte\Essential\TranslatorExtension(@Nette\Localization\Translator)
```

/--comment
Expand Down
2 changes: 1 addition & 1 deletion application/sl/templates.texy
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ Prevajalnik lahko nastavimo tudi s [konfiguracijo |configuration#Latte]:
```neon
latte:
extensions:
- Latte\Essential\TranslatorExtension
- Latte\Essential\TranslatorExtension(@Nette\Localization\Translator)
```

Prevajalnik lahko nato uporabimo na primer kot filter `|translate`, pri čemer metodi `translate()` posredujemo dodatne parametre (glej `foo, bar`):
Expand Down
2 changes: 1 addition & 1 deletion application/tr/configuration.texy
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ Latte sürüm 3 kullanıyorsanız, kullanarak yeni [uzantı |latte:creating-exte
```neon
latte:
extensions:
- Latte\Essential\TranslatorExtension
- Latte\Essential\TranslatorExtension(@Nette\Localization\Translator)
```

/--comment
Expand Down
2 changes: 1 addition & 1 deletion application/tr/templates.texy
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ Alternatif olarak, çevirmen [yapılandırma |configuration#Latte] kullanılarak
```neon
latte:
extensions:
- Latte\Essential\TranslatorExtension
- Latte\Essential\TranslatorExtension(@Nette\Localization\Translator)
```

Çevirmen daha sonra örneğin `|translate` filtresi olarak kullanılabilir ve ek parametreler `translate()` yöntemine aktarılabilir (bkz. `foo, bar`):
Expand Down
2 changes: 1 addition & 1 deletion application/uk/configuration.texy
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ latte:
```neon
latte:
расширения:
- Latte\Essential\TranslatorExtension
- Latte\Essential\TranslatorExtension(@Nette\Localization\Translator)
```

/--comment
Expand Down
2 changes: 1 addition & 1 deletion application/uk/templates.texy
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ protected function beforeRender(): void
```neon
latte:
extensions:
- Latte\Essential\TranslatorExtension
- Latte\Essential\TranslatorExtension(@Nette\Localization\Translator)
```

Тоді перекладач можна використовувати, наприклад, як фільтр `|translate`, з додатковими параметрами, переданими методу `translate()` (див. `foo, bar`):
Expand Down
2 changes: 1 addition & 1 deletion latte/cs/cookbook/migration-from-latte2.texy
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ V Latte 2 bylo možné registrovat nové tagy pomocí [konfiguračního souboru
latte:
extensions:
- App\Templating\LatteExtension
- Latte\Essential\TranslatorExtension
- Latte\Essential\TranslatorExtension(@Nette\Localization\Translator)
```


Expand Down
2 changes: 1 addition & 1 deletion latte/en/cookbook/migration-from-latte2.texy
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ In Latte 2 it was possible to register new tags using [config file |application:
latte:
extensions:
- App\Templating\LatteExtension
- Latte\Essential\TranslatorExtension
- Latte\Essential\TranslatorExtension(@Nette\Localization\Translator)
```


Expand Down

0 comments on commit f06d83f

Please sign in to comment.