Comments (6)
Hi @MH-Zarkhani, what is the output for arabic? Empty string?
from oc-twigextensions-plugin.
this exception :
An exception has been thrown during the rendering of a template ("Unable to choose a translation for "1 یوم قبل|:count یوم قبل" with locale "ar" for value "4". Double check that this translation has the correct plural options (e.g. "There is one apple|There are %count% apples").").
from oc-twigextensions-plugin.
@MH-Zarkhani Maybe you have to use |%count%
instead of |:count
?
from oc-twigextensions-plugin.
this code of ar/lang.php file
return [
'diff' => [
'empty' => 'الآن',
'ago' => [
'year' => '1 سنة قبل|:count سنة قبل ',
'month' => '1 شهر قبل|:count شهر قبل',
'day' => '1 یوم قبل|:count یوم قبل',
'hour' => '1 ساعة قبل|:count ساعة قبل ',
'minute' => '1 دقیقة قبل| :count دقیقة قبل ',
'second' => '1 ثانیة قبل|:count ثانیة قبل',
],
'in' => [
'year' => '1 سنة قبل|:count سنة قبل ',
'month' => '1 شهر قبل|:count شهر قبل',
'day' => '1 یوم قبل|:count یوم قبل',
'hour' => '1 ساعة قبل|:count ساعة قبل ',
'minute' => '1 دقیقة قبل| :count دقیقة قبل ',
'second' => '1 ثانیة قبل|:count ثانیة قبل',
]
],
];```
from oc-twigextensions-plugin.
You have to insert [2, Inf]
, please check Czech translation https://github.com/vojtasvoboda/oc-twigextensions-plugin/blob/master/lang/cs/lang.php
from oc-twigextensions-plugin.
thank you
from oc-twigextensions-plugin.
Related Issues (20)
- Translations sets days months and year with value 1 HOT 1
- base64_encode/decode (enhancement) HOT 1
- Custom plugin and custom lang.php file HOT 1
- ucfirst filter has wrong behavior.
- Plugin update error HOT 2
- Group By function? HOT 5
- Class 'Twig_Extensions_Extension_Text' not found with OctoberCMS v1.1.1 HOT 5
- Plugin prevents password retrieval HOT 1
- mode-js.js for October plugin - Twig Extensions (I think) HOT 1
- "Target class [twig.environment] does not exist" while running phpunit HOT 1
- Class "Twig_Extension_StringLoader" not found HOT 14
- New version won't update HOT 9
- october 3.x HOT 3
- Struggling to update to latest version HOT 7
- October CMS v3.1 - Upgrade Guide HOT 5
- Incompatible with October v3.0 HOT 4
- Class "IntlDateFormatter" not found HOT 9
- Error with format_datetime() HOT 9
- Unknown "truncate" filter. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oc-twigextensions-plugin.