yml pluralization symfony2

Matteo Martinelli

I have this yml translation file:

follower:
  one: 'Follower'
  other: 'Followers'

And in my twig template I have this simple statement:

{{ 'app.activity.follower'|transchoice(1) }}

Currently the output is app.activity.follower. It's possibile to divide in more range than 3(zero, one, other)?

Matteo

This is my xliff example:

        <trans-unit id="11">
            <source> app.activity.follower </source>
            <target>{0} No Follower|{1} Follower|[2,Inf] Followers</target>
        </trans-unit>

Hope this help

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Symfony pluralization ignoring floats

From Dev

Symfony2 JMSSerializerBundle expose property in YML

From Dev

javascript translation yml symfony2

From Dev

Symfony2 - Using yml for FOSOAuthServerBundle

From Dev

Symfony2 JMSSerializerBundle expose property in YML

From Dev

Doctrine2 YML Mapping on Symfony2

From Dev

Translation placeholder in YML format with Symfony2, is possible?

From Dev

Symfony2 get parameters.yml in entity, special case

From Dev

Symfony2: how to read parameters array in config.yml

From Dev

How to declare both method in routing.yml Symfony2?

From Dev

Symfony2 - Import config.yml in services.xml

From Dev

Travis CI & Symfony2 integration .travis.yml issue

From Dev

Symfony2 routing.yml to external url

From Dev

Symfony2 validation.yml for value of Array field type

From Dev

PHPUnit symfony2 faking parameters.yml

From Dev

Symfony2: accessing parameter.yml in view ( php template )

From Dev

Symfony2 is not using the config_prod.yml

From Dev

Symfony2 - Purpose of `anonymous.key` in security.yml

From Dev

A parameters.yml per bundle, symfony2

From Dev

Symfony2 - Import config.yml in services.xml

From Dev

Translation placeholder in YML format with Symfony2, is possible?

From Dev

Symfony2, validation in YML files, Entities and Forms

From Dev

cache path variable in config.yml for symfony2

From Dev

How to set validation.yml for form with passwords (Symfony2)

From Dev

PHPUnit symfony2 faking parameters.yml

From Dev

Number index in parameters.yml corrupted Symfony2

From Dev

Table pluralization?

From Dev

Difference between parameters.yml and config.yml in Symfony2

From Dev

Symfony2 routing.yml setting routing_frontend.yml and routing_backend.yml in same directory

Related Related

  1. 1

    Symfony pluralization ignoring floats

  2. 2

    Symfony2 JMSSerializerBundle expose property in YML

  3. 3

    javascript translation yml symfony2

  4. 4

    Symfony2 - Using yml for FOSOAuthServerBundle

  5. 5

    Symfony2 JMSSerializerBundle expose property in YML

  6. 6

    Doctrine2 YML Mapping on Symfony2

  7. 7

    Translation placeholder in YML format with Symfony2, is possible?

  8. 8

    Symfony2 get parameters.yml in entity, special case

  9. 9

    Symfony2: how to read parameters array in config.yml

  10. 10

    How to declare both method in routing.yml Symfony2?

  11. 11

    Symfony2 - Import config.yml in services.xml

  12. 12

    Travis CI & Symfony2 integration .travis.yml issue

  13. 13

    Symfony2 routing.yml to external url

  14. 14

    Symfony2 validation.yml for value of Array field type

  15. 15

    PHPUnit symfony2 faking parameters.yml

  16. 16

    Symfony2: accessing parameter.yml in view ( php template )

  17. 17

    Symfony2 is not using the config_prod.yml

  18. 18

    Symfony2 - Purpose of `anonymous.key` in security.yml

  19. 19

    A parameters.yml per bundle, symfony2

  20. 20

    Symfony2 - Import config.yml in services.xml

  21. 21

    Translation placeholder in YML format with Symfony2, is possible?

  22. 22

    Symfony2, validation in YML files, Entities and Forms

  23. 23

    cache path variable in config.yml for symfony2

  24. 24

    How to set validation.yml for form with passwords (Symfony2)

  25. 25

    PHPUnit symfony2 faking parameters.yml

  26. 26

    Number index in parameters.yml corrupted Symfony2

  27. 27

    Table pluralization?

  28. 28

    Difference between parameters.yml and config.yml in Symfony2

  29. 29

    Symfony2 routing.yml setting routing_frontend.yml and routing_backend.yml in same directory

HotTag

Archive