jpjoyal/jsperanto — pull request #9 by isra17 (2013-09-25 22:02:57+00:00)
Title: Replace all token instead of first occurence

This patch allow `$.t('__FOO__ and __FOO__', {FOO: 'foo'})` to translate to `foo and foo` instead of `foo and __FOO__`.

I replaced the `replace` call to a simple `split/join` which act as a `replaceAll`. I didn't use a global regex so we don't have to escape special character and split/join has better performance.