owncloud/core — pull request #3967 by jakobsack (2013-07-07 18:37:33+00:00)
Title: Adding plural translations to ownCloud

This PR adds the possibility to use plural in translations.
Closes #3935

Help needed
=========

I'm not very familiar with javascript. Please have a look at the __FIXME__ -parts in js.js

How does it work?
===========

The new function OC_L10n::tp( $text_singular, $text_plural, $count, $vars ) uses the singular translation if $count is exactly 1 or the plural translation if $count is not 1.

This should be the same behaviour gettext shows.

In the translations __%n__ will be replaced with the content of $count.

Possible improvements
=================

The content of $count could be checked/sanitized.