# \#laminas-i18n

**URL:** https://discourse.laminas.dev/tag/laminas-i18n/80.md

[Latest](https://discourse.laminas.dev/latest.md) · [Categories](https://discourse.laminas.dev/categories.md) · [Tags](https://discourse.laminas.dev/tags.md)

---

## [Pass domain as file pattern in translation config](https://discourse.laminas.dev/t/pass-domain-as-file-pattern-in-translation-config/3846)

<div class="topic-metadata">

**Author:** [@wiryonolau](https://discourse.laminas.dev/u/wiryonolau)\
**Replies:** 2\
**Last updated:** [February 8, 2025, 10:27am UTC](https://discourse.laminas.dev/t/pass-domain-as-file-pattern-in-translation-config/3846 "2025-02-08T10:27:09Z")

</div>

Hi is it possible to pass domain in translation file pattern so that it could find the file without declaring every domain in the config For example , currently every domain need to have it’s own config since it lock th…

---

## [How to configure the TranslatorAwareTreeRouteStack within Mezzio?](https://discourse.laminas.dev/t/how-to-configure-the-translatorawaretreeroutestack-within-mezzio/3579)

<div class="topic-metadata">

**Author:** [@mimmi20](https://discourse.laminas.dev/u/mimmi20)\
**Replies:** 2\
**Last updated:** [August 11, 2024, 5:49pm UTC](https://discourse.laminas.dev/t/how-to-configure-the-translatorawaretreeroutestack-within-mezzio/3579 "2024-08-11T17:49:57Z")

</div>

I want to use the TranslatorAwareTreeRouteStack within Mezzio to have local paths. Does anyone know, how to configure this?

---

## [A plugin by the name "translate" was not found in the plugin manager](https://discourse.laminas.dev/t/a-plugin-by-the-name-translate-was-not-found-in-the-plugin-manager/3659)

<div class="topic-metadata">

**Author:** [@RaghavSingh](https://discourse.laminas.dev/u/RaghavSingh)\
**Replies:** 3\
**Last updated:** [April 2, 2024, 1:27am UTC](https://discourse.laminas.dev/t/a-plugin-by-the-name-translate-was-not-found-in-the-plugin-manager/3659 "2024-04-02T01:27:07Z")

</div>

Fatal error : Uncaught Laminas\\ServiceManager\\Exception\\ServiceNotFoundException: A plugin by the name “translate” was not found in the plugin manager Laminas\\View\\HelperPluginManager in /sandbox/connect-admin/vendor/lam…

---

## [Validating phoneNumbers](https://discourse.laminas.dev/t/validating-phonenumbers/3613)

<div class="topic-metadata">

**Author:** [@mimmi20](https://discourse.laminas.dev/u/mimmi20)\
**Replies:** 3\
**Last updated:** [March 6, 2024, 11:04am UTC](https://discourse.laminas.dev/t/validating-phonenumbers/3613 "2024-03-06T11:04:30Z")

</div>

We want to validate Phone numbers, and there exists a validator in the laminas-i18n Package. There exists also the laminas-i18n-phone-number Package, which is not mentioned in the documentation, with an additional form e…

---

## [Add validation pattern to form element](https://discourse.laminas.dev/t/add-validation-pattern-to-form-element/3614)

<div class="topic-metadata">

**Author:** [@mimmi20](https://discourse.laminas.dev/u/mimmi20)\
**Replies:** 2\
**Last updated:** [March 1, 2024, 10:06am UTC](https://discourse.laminas.dev/t/add-validation-pattern-to-form-element/3614 "2024-03-01T10:06:17Z")

</div>

We want to validate phone numbers and postal codes. These validations are based on regexes. What is the best way to add these validation patterns as the pattern-Attribute to the form field?

---

## [Translate Laminas\\Validator\\ $messageTemplates](https://discourse.laminas.dev/t/translate-laminas-validator-messagetemplates/3422)

<div class="topic-metadata">

**Author:** [@LordSauron](https://discourse.laminas.dev/u/LordSauron)\
**Replies:** 15\
**Last updated:** [February 8, 2024, 10:17am UTC](https://discourse.laminas.dev/t/translate-laminas-validator-messagetemplates/3422 "2024-02-08T10:17:17Z")

</div>

Hi all, it’s the first time I have to ask a question myself because I wasn’t able to google an answer and ChathGPT was no help either. Please be nice to me, I am neither a developer nor a student. Chef I have learned a…

---

## [How to set Translation Domain for all Viewhelpers](https://discourse.laminas.dev/t/how-to-set-translation-domain-for-all-viewhelpers/3588)

<div class="topic-metadata">

**Author:** [@mimmi20](https://discourse.laminas.dev/u/mimmi20)\
**Replies:** 1\
**Last updated:** [January 30, 2024, 10:54am UTC](https://discourse.laminas.dev/t/how-to-set-translation-domain-for-all-viewhelpers/3588 "2024-01-30T10:54:31Z")

</div>

We have an web application with the following configuration: we use lamias-i18n, laminas-view and laminas-form the app is customized for some partners, the language configuration is stored in the db and is loaded dynam…

---

## [isFloat throws AssertionError](https://discourse.laminas.dev/t/isfloat-throws-assertionerror/3522)

<div class="topic-metadata">

**Author:** [@williamgall](https://discourse.laminas.dev/u/williamgall)\
**Replies:** 4\
**Last updated:** [November 9, 2023, 1:22pm UTC](https://discourse.laminas.dev/t/isfloat-throws-assertionerror/3522 "2023-11-09T13:22:27Z")

</div>

After updating my applications dependencies this morning i started getting this error when a validator chain contains isFLoat AssertionError File: /var/www/eap/vendor/laminas/laminas-i18n/src/Validator/IsFloat.php:242…

---

## [Installing the MVC Skeleton](https://discourse.laminas.dev/t/installing-the-mvc-skeleton/3144)

<div class="topic-metadata">

**Author:** [@Muninga](https://discourse.laminas.dev/u/Muninga)\
**Replies:** 1\
**Last updated:** [December 24, 2022, 7:54am UTC](https://discourse.laminas.dev/t/installing-the-mvc-skeleton/3144 "2022-12-24T07:54:59Z")

</div>

I am first time user of Laminas. I want to learn Laminas-MVC. Please help me resolve the error below. The environment: MacBook Pro (Intel Processor) Mac OS Big Sur XAMPP 8.1.12-0 Web server: Using Apache Error: Fata…

---

## [I face the error - 'Class "NumberFormatter" not found ' when I use Element Range](https://discourse.laminas.dev/t/i-face-the-error-class-numberformatter-not-found-when-i-use-element-range/3039)

<div class="topic-metadata">

**Author:** [@sanjivsharmalv](https://discourse.laminas.dev/u/sanjivsharmalv)\
**Replies:** 4\
**Last updated:** [September 13, 2022, 1:36pm UTC](https://discourse.laminas.dev/t/i-face-the-error-class-numberformatter-not-found-when-i-use-element-range/3039 "2022-09-13T13:36:59Z")

</div>

I am facing this error Class “NumberFormatter” when I use Range Element in the form.

---

## [How is translation of labels achieved in Forms?](https://discourse.laminas.dev/t/how-is-translation-of-labels-achieved-in-forms/3016)

<div class="topic-metadata">

**Author:** [@sanjivsharmalv](https://discourse.laminas.dev/u/sanjivsharmalv)\
**Replies:** 5\
**Last updated:** [August 22, 2022, 8:42pm UTC](https://discourse.laminas.dev/t/how-is-translation-of-labels-achieved-in-forms/3016 "2022-08-22T20:42:14Z")

</div>

While creating Form in Laminas I want to know translate the Form Labels. One way is I pass the translator to the form, is there a better way of translation and how does it get the language of the currently logged in user…

---

## [Set application wide translation cache for console jobs](https://discourse.laminas.dev/t/set-application-wide-translation-cache-for-console-jobs/2878)

<div class="topic-metadata">

**Author:** [@Fabian\_Rahm](https://discourse.laminas.dev/u/Fabian_Rahm)\
**Replies:** 1\
**Last updated:** [May 13, 2022, 6:44am UTC](https://discourse.laminas.dev/t/set-application-wide-translation-cache-for-console-jobs/2878 "2022-05-13T06:44:10Z")

</div>

Hi I have a few console jobs running via laminas-cli which uses the translation as provided by laminas-mvc-i18n and laminas-i18n. Translation works with only configuration being present right now. However, I haven’t fi…

---

## [Translation of table contents](https://discourse.laminas.dev/t/translation-of-table-contents/2334)

<div class="topic-metadata">

**Author:** [@WDSB](https://discourse.laminas.dev/u/WDSB)\
**Replies:** 3\
**Last updated:** [June 9, 2021, 5:42pm UTC](https://discourse.laminas.dev/t/translation-of-table-contents/2334 "2021-06-09T17:42:31Z")

</div>

translation of table contents is there a possibility to translate the content of tables / fields with $this-\> translate (‘field content’)?

---

## [Replace specifier in i18n plural translation](https://discourse.laminas.dev/t/replace-specifier-in-i18n-plural-translation/2299)

<div class="topic-metadata">

**Author:** [@ezkimo](https://discourse.laminas.dev/u/ezkimo)\
**Replies:** 4\
**Last updated:** [May 14, 2021, 6:34am UTC](https://discourse.laminas.dev/t/replace-specifier-in-i18n-plural-translation/2299 "2021-05-14T06:34:26Z")

</div>

I 'm struggling with plural forms in my translation files. The \*.po files are set up correctly. All works fine so far. Editing with Poedit works like a charme. But when it comes to the translation of plural forms, I 'm f…

---

## [Z2F dose not validate the US Verizon phone number](https://discourse.laminas.dev/t/z2f-dose-not-validate-the-us-verizon-phone-number/1830)

<div class="topic-metadata">

**Author:** [@Chinnappan\_M](https://discourse.laminas.dev/u/Chinnappan_M)\
**Replies:** 1\
**Last updated:** [September 23, 2020, 10:51am UTC](https://discourse.laminas.dev/t/z2f-dose-not-validate-the-us-verizon-phone-number/1830 "2020-09-23T10:51:45Z")

</div>

The US file in library not supporting the Verizon phone number. vendor/zendframework/library/Zend/I18n/Validator/PhoneNumber/US.php 7373468043 7373469123 7373469190 7373469299 7373467736

---

## [Laminas InputFilter does not translate some validator messages](https://discourse.laminas.dev/t/laminas-inputfilter-does-not-translate-some-validator-messages/1768)

<div class="topic-metadata">

**Author:** [@eguvenc](https://discourse.laminas.dev/u/eguvenc)\
**Replies:** 4\
**Last updated:** [August 4, 2020, 5:12pm UTC](https://discourse.laminas.dev/t/laminas-inputfilter-does-not-translate-some-validator-messages/1768 "2020-08-04T17:12:34Z")

</div>

I have some code like below. I set the data\[‘password’\] = ‘’ input filter translate the error message well. But when i set it as data\[‘password’\] = ‘123’ translator does not translate the error message. i appreciate …
