diff options
author | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2016-03-30 13:04:35 +0200 |
---|---|---|
committer | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2016-03-30 13:09:29 +0200 |
commit | 07a6662be9f1a59bfe3ae42baa6589d74568c9ce (patch) | |
tree | 80b2def41adcd06e360e475d712d37196cd5f45f /js/codeq/profile.js | |
parent | 5b03ea193c1927305fc99b93307b6c74bde0d84d (diff) |
Add codeq.tr.translate function for GUI strings not in DOM
Diffstat (limited to 'js/codeq/profile.js')
-rw-r--r-- | js/codeq/profile.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/js/codeq/profile.js b/js/codeq/profile.js index 8d26c85..5176fc0 100644 --- a/js/codeq/profile.js +++ b/js/codeq/profile.js @@ -50,11 +50,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ data = data.stat; var columns = ['language', 'problem_group', 'problems_count', 'done', 'in_progress'], - items='<thead><tr>', - tr_gui = codeq.tr.getDictionary('gui'); + items='<thead><tr>'; $.each(columns, function( key, val ) { - items+='<th data-tkey="'+ val + '">'+tr_gui[val][codeq.settings['gui_lang']]+'</th>'; + items+='<th data-tkey="'+val+'">'+codeq.tr.translate(val)+'</th>'; }); items+='</tr></thead>'; |