allure-framework/allure-core — pull request #345 by dimand58 (2014-08-18 07:36:37+00:00)
Title: Translation via angular-translate. Part 1

First part of translation mechanism (using angular-translate).

Short instruction:
1) Replace any text in HTML to "{{ 'pagename.FIELD ' | translate }}" (without double-quotes)
2) Add necessary pagename, FIELD and it value in translations/en_US.json and translations/ru_RU.json
3) Use switcher "English | Русский" on top of report page

TODO:
1) Investigate problem of translations in attributes like:
allure-table-col="{heading: 'Broken', predicate: 'statistic.broken', class:'text-center', reverse: true}"
Replacing of 'Broken' to {{'somepage.BROKEN' | translate}} is WORK, BUT not changing after switching of language. Need to reinitialise whole page, I guess.

2) Investigate possibility of translations in *.js files. Example:
attachmentPlural = {
one: ' attachment',
other: ' attachments'
};