Add strings for #1116 to intro page.

This commit is contained in:
James Cole 2018-01-10 07:57:36 +01:00
parent 48c16c3dcc
commit e40d4ef829
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E
4 changed files with 17 additions and 2 deletions

View File

@ -18,8 +18,7 @@
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
/** global: routeForTour, token, routeStepsUri, routeForFinishedTour, forceDemoOff */
/** global: nextLabel, prevLabel,skipLabel,doneLabel routeForTour, token, routeStepsUri, routeForFinishedTour, forceDemoOff */
$(function () {
"use strict";
if (!forceDemoOff) {
@ -31,6 +30,10 @@ function setupIntro(steps) {
var intro = introJs();
intro.setOptions({
nextLabel: nextLabel,
prevLabel: prevLabel,
skipLabel: skipLabel,
doneLabel: doneLabel,
steps: steps,
exitOnEsc: true,
exitOnOverlayClick: true,

View File

@ -112,6 +112,10 @@ return [
'multi_select_n_selected' => 'selected',
'multi_select_all_selected' => 'All selected',
'multi_select_filter_placeholder' => 'Find..',
'intro_next_label' => 'Next',
'intro_prev_label' => 'Previous',
'intro_skip_label' => 'Skip',
'intro_done_label' => 'Done',
'between_dates_breadcrumb' => 'Between :start and :end',
'all_journals_without_budget' => 'All transactions without a budget',
'journals_without_budget' => 'Transactions without a budget',

View File

@ -159,5 +159,9 @@ return [
'spectre_accounts_title' => 'Select accounts to import from',
'spectre_accounts_text' => 'Each account on the left below has been found by Spectre and can be imported into Firefly III. Please select the asset account that should hold any given transactions. If you do not wish to import from any particular account, remove the check from the checkbox.',
'spectre_do_import' => 'Yes, import from this account',
// various other strings:
'imported_from_account' => 'Imported from ":account"',
];

View File

@ -191,6 +191,10 @@
<script type="text/javascript" src="js/ff/help.js?v={{ FF_VERSION }}"></script>
{% if not shownDemo %}
<script type="text/javascript">
var nextLabel = "{{ trans('firefly.intro_next_label')|escape('js') }}";
var prevLabel = "{{ trans('firefly.intro_prev_label')|escape('js') }}";
var skipLabel = "{{ trans('firefly.intro_skip_label')|escape('js') }}";
var doneLabel = "{{ trans('firefly.intro_done_label')|escape('js') }}";
var routeForTour = "{{ current_route_name }}";
var routeStepsUri = "{{ route('json.intro', [current_route_name, what|default("")]) }}";
var routeForFinishedTour = "{{ route('json.intro.finished', [current_route_name, what|default("")]) }}";