#236: onboarding localization

This commit is contained in:
Benjamin Gamard 2019-02-05 17:45:07 +01:00
parent e905aa76a0
commit 992150804a
2 changed files with 17 additions and 13 deletions

View File

@ -156,32 +156,36 @@ angular.module('docs').controller('DocumentDefault', function ($scope, $rootScop
{
title: $translate.instant('onboarding.step1.title'),
description: $translate.instant('onboarding.step1.description'),
position: "centered",
position: 'centered',
width: 300
},
{
title: $translate.instant('onboarding.step2.title'),
description: $translate.instant('onboarding.step2.description'),
attachTo: "#document-add-btn",
position: "right"
attachTo: '#document-add-btn',
position: 'right',
width: 300
},
{
title: $translate.instant('onboarding.step3.title'),
description: $translate.instant('onboarding.step3.description'),
attachTo: "#quick-upload-zone",
position: "left"
attachTo: '#quick-upload-zone',
position: 'left',
width: 300
},
{
title: $translate.instant('onboarding.step4.title'),
description: $translate.instant('onboarding.step4.description'),
attachTo: "#search-box",
position: "right"
attachTo: '#search-box',
position: 'right',
width: 300
},
{
title: $translate.instant('onboarding.step5.title'),
description: $translate.instant('onboarding.step5.description'),
attachTo: "#navigation-tag",
position: "right"
attachTo: '#navigation-tag',
position: "right",
width: 300
}
];
});

View File

@ -16,12 +16,12 @@
buttonContainerClass: 'onboarding-button-container',
buttonClass: "btn",
showButtons: true,
nextButtonText: 'Next →',
previousButtonText: '← Previous',
nextButtonText: '<span class="fa fa-arrow-right"></span>',
previousButtonText: '<span class="fa fa-arrow-left"></span>',
showDoneButton: true,
doneButtonText: 'Done',
doneButtonText: '<span class="fa fa-check"></span>',
closeButtonClass: 'onboarding-close-button',
closeButtonText: 'X',
closeButtonText: '<span class="fa fa-times"></span>',
stepClass: 'onboarding-step-info',
showStepInfo: true
},