owncloud/core — pull request #24 by tanghus (2012-10-05 01:42:15+00:00)
Title: A suggestion for simple, yet efficient variable interpolation in js translations

Which requires no extra libraries. This is of course for post-4.5, just wanted to get it out of the door while I remembered.

Usage is imo very intuitive:

t('app', 'Bake, uncovered, until the {greasystuff} is melted and the {pasta} is heated through, about {min} minutes.', {greasystuff: 'cheese', pasta: 'macaroni', min: 10});

Not that I want to stir up a discussion of whether macaroni is pasta or not, but my mind was totally blank when I should find an example :-P