Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
yotta
/
pictogram
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
60
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
56c7fa85
authored
May 30, 2017
by
Jose Antonio
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Issue
#253
Closed
parent
296ba636
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
sails/src/assets/scripts/modules/translate/controllers/translate.js
sails/src/assets/scripts/modules/translate/controllers/translate.js
View file @
56c7fa85
...
...
@@ -19,6 +19,10 @@ dashboardControllers.controller('TranslateController', function(
var
obj
=
JSON
.
parse
(
$window
.
sessionStorage
.
user
);
$translate
.
use
(
obj
.
lang
);
}
else
if
(
$window
.
sessionStorage
.
lang
){
var
lang
=
JSON
.
parse
(
$window
.
sessionStorage
.
lang
);
$translate
.
use
(
lang
);
}
// Changes the language when user click on footer lang
$scope
.
changeLanguage
=
function
(
langKey
)
{
...
...
@@ -48,6 +52,11 @@ dashboardControllers.controller('TranslateController', function(
console
.
log
(
"Error: Update supervisor language"
);
});
}
else
{
var
lang
=
JSON
.
parse
(
$window
.
sessionStorage
.
lang
);
lang
=
langKey
;
$window
.
sessionStorage
.
lang
=
JSON
.
stringify
(
lang
);
}
// Reload captcha according to language (only once instance per page, so id is always 0)
try
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment