From 2cac31f160b623a640f66fb421906b999d7910f0 Mon Sep 17 00:00:00 2001
From: xamgore <xamgore@ya.ru>
Date: Wed, 2 Sep 2015 15:24:27 +0300
Subject: [PATCH] Localization for degree in profile popup window

---
 ~dev_rating/application/views/base.twig            | 2 ++
 ~dev_rating/application/views/profile/student.twig | 4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/~dev_rating/application/views/base.twig b/~dev_rating/application/views/base.twig
index 37ce065cd..44b915cc9 100644
--- a/~dev_rating/application/views/base.twig
+++ b/~dev_rating/application/views/base.twig
@@ -105,6 +105,8 @@
 					{{ HTML.image('static/img/messageIcon.png', {'height': '11px'})|raw }} (1)
 				</div>
 				include 'messages/messages' #}
+                
+                {# see media/js/profile.js, views/profile/*.twig #}
 				<div id="username">{{ User.FirstName }} {{ User.LastName }}</div>
 
 				{% if User.isAdmin or User.isDean %}
diff --git a/~dev_rating/application/views/profile/student.twig b/~dev_rating/application/views/profile/student.twig
index 8ffb1191e..255d08452 100644
--- a/~dev_rating/application/views/profile/student.twig
+++ b/~dev_rating/application/views/profile/student.twig
@@ -12,7 +12,7 @@
     </div>
     <div class="clearFix profile_delimeter">
         <div class="label">РљСѓСЂСЃ, РіСЂСѓРїРїР°:</div>
-        <div class="content">{{ User.Degree }}, {{ User.GradeNum }} РєСѓСЂСЃ, {{ User.GroupNum }} РіСЂСѓРїРїР°</div>
+        <div class="content">{{ Rus[User.Degree] }}, {{ User.GradeNum }} РєСѓСЂСЃ, {{ User.GroupNum }} РіСЂСѓРїРїР°</div>
     </div>
     <div class="clearFix">
         <div class="label">Тип аккаунта:</div>
@@ -26,4 +26,4 @@
         <div class="label">E-Mail:</div>
         <div class="content">{{ User.EMail }}</div>
     </div>
-</div>
\ No newline at end of file
+</div>
-- 
GitLab