This object is in archive! 

How to localize "%s responses" in response-sidebar.phtml?

Archived Guest 12 years ago

"%s responses", used in application/modules/system/templates/components/response-sidebar.phtml, seems to be missing from the localization files.

Best Answer
photo

We'll add translation for this and it will be covered in 2.1 Release

Done

Replies (7)

photo
1

We'll add translation for this and it will be covered in 2.1 Release

Done

photo
1

When can we expect 2.1 to be shipped?

We've been searching for a roadmap and couldn't find anything.

photo
1

It should be shipped in several hours. Our roadmap is not public, but from what I can say for the next release:

  • Knowledge Base module
  • System Analytics
  • Extended Sorting & Filtering on home page settings.
  • >10 general tweaks

We don't give public roadmap to not give expectations on specific features, as sometimes we don't release specific things that work not smooth as expected and move it to the next release.

photo
1

Verrrrry nice!

photo
1

Hi Stas,


thank you for fixing this!


However, we hoped that the fix would include support for singular and plural versions of the string – sorry for not explicitly mentioning this :-/ …

To clarify: The current English localization doesn't support proper singular- and plural forms for "results" (as well as e. g. "1 Participants" and probably even more):

  • 0 responses
  • 1 responses – this is wrong, should be: 1 response
  • 2 responses

In this, as well as many other cases, the German language follows that pattern.Sadly, this makes things look quite unprofessional.

photo
1

We are aware of such situations, and this situation happens only when you have one response. In other languages we just put 1 response(s). You can change it in translations in other places.

We'll think of improving it, but definitely after 2.2 release that we are working on

photo
1

The "1 response(s)"-workaround might be fine for English, but we can't use it in our specific case - here, not only the ending of the singular form changes:

  • 0 Beiträge
  • 1 Beitrag
  • 2 Beiträge

You could argue that we could find another word to work around this - and while this would be possible in this case, it might not be in all (Comments, Participants, Subscribers, Replies, Views ...).


I noted that UseResponse's localization system is based on Zend_Translate, which in their documentation for plural forms say it best:


> Professional translation will always have the need to use plurals as they are native in almost all languages.

> We'll think of improving


Please don't just think about it.

Another thing regarding localization:

  1. 'Follow this Topic'

seems to be missing from application/modules/system/lang.php.

Replies have been locked on this page!