Commit b934454e authored by Matheus Miranda's avatar Matheus Miranda
Browse files

Merge branch 'develop' into 'master'

Add edit for profile username

See merge request !96
parents 4c2f20e5 4c11237c
......@@ -15,5 +15,17 @@
// 'ngRoute',
'ngFileUpload',
'shared',
'gettext',
]);
angular.module("messages").run(["gettextCatalog", "UserLocalStorage", function (gettextCatalog, UserLocalStorage) {
let defaultLanguage = UserLocalStorage.get("currentLanguage") || "en";
gettextCatalog.setCurrentLanguage(defaultLanguage);
UserLocalStorage.set("currentLanguage", defaultLanguage);
// UserLocalStorage.set("currentLanguage", "es");
gettextCatalog.setStrings('es', {"Actions":"Acciones","Announcements":"Notificaciones","Close":"Cerrar","Email":"Email","Full name":"Nombre completo","General announcements":"Notificaciones generales","Loading Classes...":"Cargando clases ...","New announcement":"Nueva notificación","Please enter the subject of the announcement.":"Por favor ingrese el asunto de la notificación.","Please insert the text of the announcement.":"Inserte el texto de la notificación.","Please select at least":"Por favor seleccione al menos","Please select at least one class.":"Seleccione al menos una clase.","Send":"Enviar","Send to all students on the platform":"Enviar a todos los estudiantes en la plataforma","Send to my classes for this course":"Enviar a mis clases para este curso","Specify groups":"Especificar grupos","Specify users individually":"Especificar usuarios individualmente","There are currently no important announcement in this course for you.":"Actualmente no hay ninguna notificación importante en este curso para usted.","User":"Usuario","You haven't received any announcement yet.":"Aún no has recibido ninguna notificación.","hide":"esconder","see":"ver","see all announcements":"ver todas las notificaciones","see full announcement":"ver notificación completa","Send to all classes in this course":"Enviar a todas las clases de este curso"});
gettextCatalog.setStrings('pt_br', {"Actions":"Ações","Announcements":"Avisos","Close":"Fechar","Email":"Email","Full name":"Nome completo","General announcements":"Avisos Gerais","Loading Classes...":"Carregando turmas ...","New announcement":"Novo aviso","Please enter the subject of the announcement.":"Por favor, insira o assunto do aviso.","Please insert the text of the announcement.":"Por favor, insira o texto do aviso.","Please select at least":"Selecione pelo menos","Please select at least one class.":"Selecione pelo menos uma classe.","Send":"Enviar","Send to all classes in this course":"Enviar para todas as turmas deste curso","Send to my classes for this course":"Enviar para minhas turmas deste curso","Specify groups":"Especificar os grupos","Specify users individually":"Especificar os usuários individualmente","There are currently no important announcement in this course for you.":"Atualmente, não há nenhum aviso importante neste curso para você.","User":"Usuário","You haven't received any announcement yet.":"Você ainda não recebeu nenhum aviso.","hide":"ocultar","see":"ver","see all announcements":"ver todos os avisos","see full announcement":"ver o aviso completo","Send to all students on the platform":"Enviar para todos os alunos na plataforma"});
}]);
})(angular);
......@@ -271,7 +271,7 @@ if settings.TIMTEC_THEMES_COMPAT:
url(r'^$', HomeView.as_view(), name='home_view'),
url(r'^dashboard/', DashboardView.as_view(), name='dashboard'),
url(r'^profile/edit/?$', ProfileEditView.as_view(), name="profile_edit"),
url(r'^profile/edit/(?P<username>[\w.+-]+)?/?$', ProfileEditView.as_view(), name="profile_edit"),
url(r'^profile/(?P<username>[\w.+-]+)?/?$', ProfileView.as_view(), name="profile"),
url(r'^contact/?$', csrf_exempt(ContactView.as_view()), name="contact"),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment