Commit 6e9aaacc authored by Sascha Pfeiffer's avatar Sascha Pfeiffer

added some more translations

Signed-off-by: default avatarSascha Pfeiffer <sascha.pfeiffer@psono.com>
parent 048076f4
......@@ -12,7 +12,22 @@
* Controller for the Generate Security Report view
*/
angular.module('psonocli').controller('SecurityReportCtrl', ['$scope', '$routeParams', 'managerSecurityReport',
function ($scope, $routeParams, managerSecurityReport) {
'DTOptionsBuilder', 'DTColumnDefBuilder', 'languagePicker',
function ($scope, $routeParams, managerSecurityReport,
DTOptionsBuilder, DTColumnDefBuilder, languagePicker) {
$scope.dtOptions = DTOptionsBuilder
.newOptions()
.withLanguageSource('translations/datatables.' + languagePicker.get_active_language_code() + '.json');
$scope.dtColumnDefs = [
DTColumnDefBuilder.newColumnDef(0),
DTColumnDefBuilder.newColumnDef(1),
DTColumnDefBuilder.newColumnDef(2),
DTColumnDefBuilder.newColumnDef(3),
DTColumnDefBuilder.newColumnDef(4),
DTColumnDefBuilder.newColumnDef(5)
];
$scope.name = "SecurityReportCtrl";
$scope.check_haveibeenpwned = false;
......
......@@ -16,9 +16,21 @@
* Controller for the Share view
*/
angular.module('psonocli').controller('ShareCtrl', ['$scope', '$routeParams', '$uibModal', 'managerShare',
'managerShareLink', 'managerDatastorePassword', 'cryptoLibrary',
'managerShareLink', 'managerDatastorePassword', 'cryptoLibrary', 'languagePicker', 'DTOptionsBuilder', 'DTColumnDefBuilder',
function ($scope, $routeParams, $uibModal, managerShare,
managerShareLink, managerDatastorePassword, cryptoLibrary) {
managerShareLink, managerDatastorePassword, cryptoLibrary, languagePicker, DTOptionsBuilder, DTColumnDefBuilder) {
$scope.dtOptions = DTOptionsBuilder
.newOptions()
.withLanguageSource('translations/datatables.' + languagePicker.get_active_language_code() + '.json');
$scope.dtColumnDefs = [
DTColumnDefBuilder.newColumnDef(0),
DTColumnDefBuilder.newColumnDef(1),
DTColumnDefBuilder.newColumnDef(2),
DTColumnDefBuilder.newColumnDef(3),
DTColumnDefBuilder.newColumnDef(4)
];
$scope.accept = accept;
$scope.decline = decline;
......
......@@ -13,8 +13,19 @@
* @description
* Controller for the "Setup Google Authenticator" modal
*/
angular.module('psonocli').controller('ModalConfigureGoogleAuthenticatorCtrl', ['$q', '$scope', '$uibModalInstance', 'managerDatastoreUser', 'helper',
function ($q, $scope, $uibModalInstance, managerDatastoreUser, helper) {
angular.module('psonocli').controller('ModalConfigureGoogleAuthenticatorCtrl', ['$q', '$scope', '$uibModalInstance',
'managerDatastoreUser', 'helper', 'DTOptionsBuilder', 'DTColumnDefBuilder', 'languagePicker',
function ($q, $scope, $uibModalInstance,
managerDatastoreUser, helper, DTOptionsBuilder, DTColumnDefBuilder, languagePicker) {
$scope.dtOptions = DTOptionsBuilder
.newOptions()
.withLanguageSource('translations/datatables.' + languagePicker.get_active_language_code() + '.json');
$scope.dtColumnDefs = [
DTColumnDefBuilder.newColumnDef(0),
DTColumnDefBuilder.newColumnDef(1)
];
$scope.create_ga = create_ga;
$scope.activate_ga = activate_ga;
......
......@@ -13,8 +13,19 @@
* @description
* Controller for the "Setup Google Authenticator" modal
*/
angular.module('psonocli').controller('ModalConfigureYubiKeyOTPCtrl', ['$scope', '$q', '$uibModalInstance', 'managerDatastoreUser', 'helper',
function ($scope, $q, $uibModalInstance, managerDatastoreUser, helper) {
angular.module('psonocli').controller('ModalConfigureYubiKeyOTPCtrl', ['$scope', '$q', '$uibModalInstance',
'managerDatastoreUser', 'helper', 'DTOptionsBuilder', 'DTColumnDefBuilder', 'languagePicker',
function ($scope, $q, $uibModalInstance,
managerDatastoreUser, helper, DTOptionsBuilder, DTColumnDefBuilder, languagePicker) {
$scope.dtOptions = DTOptionsBuilder
.newOptions()
.withLanguageSource('translations/datatables.' + languagePicker.get_active_language_code() + '.json');
$scope.dtColumnDefs = [
DTColumnDefBuilder.newColumnDef(0),
DTColumnDefBuilder.newColumnDef(1)
];
$scope.create_yubikey_otp = create_yubikey_otp;
$scope.delete_yubikey_otp = delete_yubikey_otp;
......
......@@ -17,9 +17,22 @@
* Controller for the "Edit Group" modal
*/
angular.module('psonocli').controller('ModalEditGroupCtrl', ['$scope', '$uibModal', '$uibModalInstance',
'managerGroups', 'managerDatastoreUser', 'managerShare', 'shareBlueprint', 'cryptoLibrary', 'helper', 'account', 'group_id',
'managerGroups', 'managerDatastoreUser', 'managerShare', 'shareBlueprint', 'cryptoLibrary', 'helper', 'languagePicker', 'DTOptionsBuilder', 'DTColumnDefBuilder', 'account', 'group_id',
function ($scope, $uibModal, $uibModalInstance,
managerGroups, managerDatastoreUser, managerShare, shareBlueprint, cryptoLibrary, helper, account, group_id) {
managerGroups, managerDatastoreUser, managerShare, shareBlueprint, cryptoLibrary, helper, languagePicker, DTOptionsBuilder, DTColumnDefBuilder, account, group_id) {
$scope.dtOptions = DTOptionsBuilder
.newOptions()
.withLanguageSource('translations/datatables.' + languagePicker.get_active_language_code() + '.json');
$scope.dtColumnDefs = [
DTColumnDefBuilder.newColumnDef(0),
DTColumnDefBuilder.newColumnDef(1),
DTColumnDefBuilder.newColumnDef(2),
DTColumnDefBuilder.newColumnDef(3),
DTColumnDefBuilder.newColumnDef(4)
];
var i;
var original_group_name;
var group;
......
......@@ -14,8 +14,21 @@
* @description
* Controller for the "Setup Emergency Codes" modal
*/
angular.module('psonocli').controller('ModalShowEmergencyCodesCtrl', ['$q', '$scope', '$translate', '$uibModalInstance', 'managerDatastoreUser', 'managerHost', 'helper',
function ($q, $scope, $translate, $uibModalInstance, managerDatastoreUser, managerHost, helper) {
angular.module('psonocli').controller('ModalShowEmergencyCodesCtrl', ['$q', '$scope', '$translate',
'$uibModalInstance', 'managerDatastoreUser', 'managerHost', 'helper', 'DTOptionsBuilder', 'DTColumnDefBuilder',
'languagePicker',
function ($q, $scope, $translate,
$uibModalInstance, managerDatastoreUser, managerHost, helper, DTOptionsBuilder, DTColumnDefBuilder,
languagePicker) {
$scope.dtOptions = DTOptionsBuilder
.newOptions()
.withLanguageSource('translations/datatables.' + languagePicker.get_active_language_code() + '.json');
$scope.dtColumnDefs = [
DTColumnDefBuilder.newColumnDef(0),
DTColumnDefBuilder.newColumnDef(1)
];
var _translations;
var _server_info;
......@@ -42,7 +55,6 @@
managerDatastoreUser.read_emergency_codes()
.then(function(emergency_codes) {
console.log(emergency_codes);
$scope.emergency_codes = emergency_codes;
});
......
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