# Pagination error - translation issue - 43 items, 2 pages in total =\> error is displayed

**URL:** <https://forum.mautic.org/t/pagination-error-translation-issue-43-items-2-pages-in-total-error-is-displayed/28929>\
**Category:** Mautic Translations\
**Tags:** development\
**Created:** [August 13, 2023, 7:22pm UTC](https://forum.mautic.org/t/pagination-error-translation-issue-43-items-2-pages-in-total-error-is-displayed/28929 "2023-08-13T19:22:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![IonutOjicaDe](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ionutojicade/32/7383_2.png) [@IonutOjicaDe](https://forum.mautic.org/u/IonutOjicaDe)\
**Post date:** [August 13, 2023, 7:22pm UTC](https://forum.mautic.org/t/pagination-error-translation-issue-43-items-2-pages-in-total-error-is-displayed/28929/1 "2023-08-13T19:22:22Z")

</div>

I fresh installed mautic 4.4.9 and chose Romanian Language.  
At the bottom of the “Custom Fields” Page I get Page error:

![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/f/f67acae954031b9d52475de1a82c34748e18301f.png)

When I choose English, everything is normal:

![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/3/344f8fe135206a504a75f1b6745dbba916b676cb.png)

So, I suppose there is an issue with the translation. I worked in the last time at translating to Romanian language, but I cannot figure it out, where could be the issue.

I would be grateful for any hint 🙂

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [August 15, 2023, 5:47pm UTC](https://forum.mautic.org/t/pagination-error-translation-issue-43-items-2-pages-in-total-error-is-displayed/28929/2 "2023-08-15T17:47:21Z")

</div>

Look for ‘ and ‘’

---

<div class="post-metadata">

**Author:** ![IonutOjicaDe](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ionutojicade/32/7383_2.png) [@IonutOjicaDe](https://forum.mautic.org/u/IonutOjicaDe)\
**Post date:** [August 16, 2023, 5:45pm UTC](https://forum.mautic.org/t/pagination-error-translation-issue-43-items-2-pages-in-total-error-is-displayed/28929/3 "2023-08-16T17:45:48Z")

</div>

As I saw, the issue is also with the Russian translation (commented one year ago, according to transifex). So I suppose it is something with Mautic.

I will let the string for the moment untranslated, it works without this string translation.

I tried with the 1:1 same English text, and it does not work. The error in the log is the following:

- this error is irrelevant

> [2023-08-16 20:35:53] mautic.NOTICE: PHP Notice - Undefined variable: inline - in file /var/www/html/mail/offline.php - at line 77 {“inTemplate”:true,“isAjax”:true,“message”:“The site is currently offline due to encountering an error. If the problem persists, please contact the system administrator.”,“submessage”:“System administrators, check server logs for errors.”,“inDev”:false,“base”:“/”,“root”:“/var/www/html/mail”,“assetPrefix”:“”,“paths”:{“themes”:“themes”,“assets”:“media”,“asset\_prefix”:“”,“plugins”:“plugins”,“translations”:“translations”,“local\_config”:“%kernel.root\_dir%/config/local.php”,“root”:“/var/www/html/”,“app”:“app”,“bundles”:“app/bundles”,“vendor”:“vendor”},“assetBase”:“/media”} {“hostname”:“mail”,“pid”:2126}

- here can be seen the 1:1 same English text that generates the error:

> [2023-08-16 20:35:53] mautic.ERROR: Symfony\Component\Translation\Exception\InvalidArgumentException: Unable to choose a translation for **“one: %count% item|some: %count% items”** with locale “ro\_RO” for value “43”. Double check that this translation has the correct plural options (e.g. “There is one apple|There are %count% apples”). - in file /var/www/html/mail/vendor/symfony/translation-contracts/TranslatorTrait.php - at line 125 {“hostname”:“mail”,“pid”:2126}

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/4/4e1b57d26cef99f94e59d239a9e3cd7a487dd596.png)

---

<div class="post-metadata">

**Author:** ![zaharovrd](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/zaharovrd/32/7799_2.png) [@zaharovrd](https://forum.mautic.org/u/zaharovrd)\
**Post date:** [May 20, 2024, 9:13am UTC](https://forum.mautic.org/t/pagination-error-translation-issue-43-items-2-pages-in-total-error-is-displayed/28929/4 "2024-05-20T09:13:03Z")

</div>

in version 5.0.4 i have this error only report page. In contacts (error has been in 4.4.10) - all right

 ![2024-05-20_12-12](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/7/7a71539b9bcf693c0870ea44372699d32233f217.png)

and on report page:

`[2024-05-20T09:12:54.443280+00:00] mautic.CRITICAL: Uncaught PHP Exception Twig\Error\RuntimeError: "An exception has been thrown during the rendering of a template ("Unable to choose a translation for "one: 1 элемент|some: %count% элементов" with locale "ru" for value "5". Double check that this translation has the correct plural options (e.g. "There is one apple|There are %count% apples").")." at ./app/bundles/CoreBundle/Resources/views/Helper/pagination.html.twig line 118 {"exception":"[object] (Twig\\Error\\RuntimeError(code: 0): An exception has been thrown during the rendering of a template (\"Unable to choose a translation for \"one: 1 элемент|some: %count% элементов\" with locale \"ru\" for value \"5\". Double check that this translation has the correct plural options (e.g. \"There is one apple|There are %count% apples\").\"). at ./app/bundles/CoreBundle/Resources/views/Helper/pagination.html.twig:118)\n[previous exception] [object] (Symfony\\Component\\Translation\\Exception\\InvalidArgumentException(code: 0): Unable to choose a translation for \"one: 1 элемент|some: %count% элементов\" with locale \"ru\" for value \"5\". Double check that this translation has the correct plural options (e.g. \"There is one apple|There are %count% apples\"). at ./vendor/symfony/translation-contracts/TranslatorTrait.php:125)"} {"hostname":"demo","pid":128631}`

---

<div class="post-metadata">

**Author:** ![zaharovrd](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/zaharovrd/32/7799_2.png) [@zaharovrd](https://forum.mautic.org/u/zaharovrd)\
**Post date:** [May 20, 2024, 9:27am UTC](https://forum.mautic.org/t/pagination-error-translation-issue-43-items-2-pages-in-total-error-is-displayed/28929/5 "2024-05-20T09:27:18Z")

</div>

I guess it’s somewhere because of this 😀 , but:

1. what should be? ’ or "
2. how can it be that pagination works on one partition, but not on another? key mautic.core.pagination.items is global key …

 ![2024-05-20_12-46](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/c/ce67cf0864fdbfec7a0461d7639b9b5412354093.png)
