discourse/discourse — pull request #2687 by meglio (2014-08-23 18:57:31+00:00)
Title: An easy way to match js-translated strings with their translation keys

1. Open the browser debugger and execute:
`I18n.translationCallsIncrementorActive = true`

2. From now on, each time a single string is translated, 2 things will happen:
1. The used translation key and translation options are logged in the browser console with a unique incremental number.
2. The incremental number is added as a suffix to the translated string.

So now we can easily do 2 things:
1. Match translated strings and their translation keys.
2. Quickly find where a particular piece of HTML is rendered in Handlebards templates since almost every text is internationalized.

This functionality is gone as soon as Discourse page is reloaded.

NB. So far, this only works for strings translated on client with JS, but the good thing is that it covers most of non-admin GUI.

![image](https://cloud.githubusercontent.com/assets/282177/4021508/8bb84e5c-2af6-11e4-8b3e-cbd04ec92de8.png)