Framework: [5.4] Plurals of many languages has been missed

Created on 8 Feb 2017  ·  2Comments  ·  Source: laravel/framework

  • Laravel Version: 5.4.*

Description:

Since PR https://github.com/laravel/framework/pull/15563 was introduced, Laravel has been missed a major feature for translators - plurals. While English and other langs with one|many plural scheme is working great, another languages (like Russian with more complex plural scheme) is broken right now.

Steps To Reproduce:

English locale

'apples' => ':count apple|:count apples',

1 apple | 2 apples | 24 apples | 2657 apples

Russian locale

'apples' => ':count яблоко|:count яблока|:count яблок',

Should be 1 яблоко | 2 яблока | 24 яблока | 2657 яблок
Returns 1 яблоко | 2 яблока | 24 яблока | 2657 яблока

Most helpful comment

Looking into fixing this today.

All 2 comments

Looking into fixing this today.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

digirew picture digirew  ·  3Comments

SachinAgarwal1337 picture SachinAgarwal1337  ·  3Comments

klimentLambevski picture klimentLambevski  ·  3Comments

felixsanz picture felixsanz  ·  3Comments

shopblocks picture shopblocks  ·  3Comments