hackerspace-bootstrap / strichliste-web

DEPRECATED - frontend for the strichliste api
http://demo.strichliste.org/
MIT License
11 stars 10 forks source link

add plural helper for i18n #38

Closed schinken closed 8 years ago

schinken commented 8 years ago

Now it's possible to use pluralization using messageformat

schinken commented 8 years ago

One last note: The messageformat usage has drawbacks! (http://angular-translate.github.io/docs/#/guide/14_pluralization#pluralization_the-drawback)

If we want to use angular features inside our translation-strings, we need remove useMessageFormatInterpolation() and use addInterpolation('$translateMessageFormatInterpolation'). But in this case, we have to adjust our translate calls for snippets which uses messageformat