Skip to content

Firefly III: a personal finances manager

Some formatting and translations. [skip ci]

James Cole7c436920a43e
diff --git a/public/css/firefly.css b/public/css/firefly.css
index 81b3942858..98fef1454b 100644
--- a/public/css/firefly.css
+++ b/public/css/firefly.css
@@ -11,3 +11,8 @@
margin: 0;
padding: 0;
}
+
+/* fix login box */
+.login-box {width:600px;}
+.login-logo {width:360px;margin-left:110px;}
+.login-box-body {width:360px;margin-left:110px;}
\ No newline at end of file
diff --git a/resources/lang/en/firefly.php b/resources/lang/en/firefly.php
index 7ab8ff2bd2..313d140345 100644
--- a/resources/lang/en/firefly.php
+++ b/resources/lang/en/firefly.php
@@ -18,7 +18,7 @@ return [
'showEverything' => 'Show everything',
'never' => 'Never',
'search_results_for' => 'Search results for ":query"',
- 'bounce_error' => 'The message sent to :email bounced.',
+ 'bounce_error' => 'The message sent to :email bounced, so no access for you.',
'removed_amount' => 'Removed :amount',
'added_amount' => 'Added :amount',
@@ -52,15 +52,22 @@ return [
'csv_define_column_roles' => 'Define column roles',
'csv_map_values' => 'Map found values to existing values',
'csv_download_config' => 'Download CSV configuration file.',
- 'csv_index_text' => 'This form allows you to import a CSV file with transactions into Firefly. It is based on the excellent CSV importer made by' . ' the folks at <a href="https://www.atlassian.com/">Atlassian</a>. Simply upload your CSV file and follow the instructions.' . ' If you would like to learn more, please click on the <i class="fa fa-question-circle"></i> button at the top of this page.',
+ 'csv_index_text' => 'This form allows you to import a CSV file with transactions into Firefly. It is based on the excellent CSV importer made by'
+ . ' the folks at <a href="https://www.atlassian.com/">Atlassian</a>. Simply upload your CSV file and follow the instructions.'
+ . ' If you would like to learn more, please click on the <i class="fa fa-question-circle"></i> button at the top of this page.',
'csv_index_beta_warning' => 'This tool is very much in beta. Please proceed with caution',
'csv_header_help' => 'Check this box when your CSV file\'s first row consists of column names, not actual data',
- 'csv_date_help' => 'Date time format in your CSV. Follow the format like <a href="https://secure.' . 'php.net/manual/en/datetime.createfromformat.php#refsect1-datetime.createfromformat-parameters">this' . ' page</a> indicates. The default value will parse dates that look like this: ' . date('Ymd'),
+ 'csv_date_help' => 'Date time format in your CSV. Follow the format like <a href="https://secure.'
+ . 'php.net/manual/en/datetime.createfromformat.php#refsect1-datetime.createfromformat-parameters">this'
+ . ' page</a> indicates. The default value will parse dates that look like this: ' . date('Ymd'),
'csv_csv_file_help' => 'Select the CSV file here. You can only upload one file at a time',
'csv_csv_config_file_help' => 'Select your CSV import configuration here. If you do not know what this is, ignore it. It will be explained later.',
'csv_upload_button' => 'Start importing CSV',
'csv_column_roles_title' => 'Define column roles',
- 'csv_column_roles_text' => 'Firefly does not know what each column means. You need to indicate what every column is. Please check out the example ' . 'data if you\'re not sure yourself. Click on the question mark (top right of the page) to learn what' . ' each column means. If you want to map imported data onto existing data in Firefly, use the checkbox. ' . 'The next step will show you what this button does.',
+ 'csv_column_roles_text' => 'Firefly does not know what each column means. You need to indicate what every column is. Please check out the example '
+ . 'data if you\'re not sure yourself. Click on the question mark (top right of the page) to learn what'
+ . ' each column means. If you want to map imported data onto existing data in Firefly, use the checkbox. '
+ . 'The next step will show you what this button does.',
'csv_column_roles_table' => 'Column roles',
'csv_column' => 'CSV column',
'cvs_column_name' => 'CSV column name',
@@ -70,13 +77,15 @@ return [
'csv_continue' => 'Continue to the next step',
'csv_go_back' => 'Go back to the previous step',
'csv_map_title' => 'Map found values to existing values',
- 'csv_map_text' => 'This page allows you to map the values from the CSV file to existing entries in your database. This ensures that accounts and other' . ' things won\'t be created twice.',
+ 'csv_map_text' => 'This page allows you to map the values from the CSV file to existing entries in your database. This ensures that accounts and other'
+ . ' things won\'t be created twice.',
'cvs_field_value' => 'Field value from CSV',
'csv_field_mapped_to' => 'Must be mapped to...',
'csv_do_not_map' => 'Do not map this value',
'csv_download_config_title' => 'Download CSV configuration',
'csv_download_config_text' => 'Everything you\'ve just set up can be downloaded as a configuration file. Click the button to do so.',
- 'csv_more_information_text' => 'If the import fails, you can use this configuration file so you don\'t have to start all over again.' . ' But, if the import succeeds, it will be easier to upload similar CSV files.',
+ 'csv_more_information_text' => 'If the import fails, you can use this configuration file so you don\'t have to start all over again.'
+ . ' But, if the import succeeds, it will be easier to upload similar CSV files.',
'csv_do_download_config' => 'Download configuration file.',
'csv_empty_description' => '(empty description)',
'csv_upload_form' => 'CSV upload form',
@@ -297,6 +306,7 @@ return [
'quarterly' => 'Quarterly',
'half-year' => 'Every six months',
'yearly' => 'Yearly',
+ 'profile' => 'Profile',
// reports:
'reportForYear' => 'Yearly report for :year',
diff --git a/resources/lang/nl/firefly.php b/resources/lang/nl/firefly.php
index 07d1390314..eee51f3e65 100644
--- a/resources/lang/nl/firefly.php
+++ b/resources/lang/nl/firefly.php
@@ -307,6 +307,7 @@ return [
'Withdrawal' => 'Uitgave',
'Deposit' => 'Inkomsten',
'Transfer' => 'Overschrijving',
+ 'profile' => 'Profiel',
'bill' => 'Contract',
'yes' => 'Ja',
'no' => 'Nee',
diff --git a/resources/twig/auth/login.twig b/resources/twig/auth/login.twig
index 3211d30000..88e8d4554e 100644
--- a/resources/twig/auth/login.twig
+++ b/resources/twig/auth/login.twig
@@ -14,7 +14,6 @@
</div>
{% endif %}
-
<div class="login-box-body">
<p class="login-box-msg">Sign in to start your session</p>
diff --git a/resources/twig/layout/empty.twig b/resources/twig/layout/empty.twig
new file mode 100644
index 0000000000..c27f63e493
--- /dev/null
+++ b/resources/twig/layout/empty.twig
@@ -0,0 +1,73 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="UTF-8">
+ <title>Firefly III</title>
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
+ <base href="{{ route('index') }}/">
+ <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css" type="text/css" media="all"/>
+ <link rel="stylesheet" href="font-awesome/css/font-awesome.min.css" type="text/css" media="all"/>
+ <link href="dist/css/AdminLTE.min.css" rel="stylesheet" type="text/css"/>
+
+ <!--[if lt IE 9]>
+ <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
+ <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
+ <![endif]-->
+
+ <!-- favicons -->
+ <link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon-57x57.png?v=Lb54KlrQnz">
+ <link rel="apple-touch-icon" sizes="60x60" href="/apple-touch-icon-60x60.png?v=Lb54KlrQnz">
+ <link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon-72x72.png?v=Lb54KlrQnz">
+ <link rel="apple-touch-icon" sizes="76x76" href="/apple-touch-icon-76x76.png?v=Lb54KlrQnz">
+ <link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon-114x114.png?v=Lb54KlrQnz">
+ <link rel="apple-touch-icon" sizes="120x120" href="/apple-touch-icon-120x120.png?v=Lb54KlrQnz">
+ <link rel="apple-touch-icon" sizes="144x144" href="/apple-touch-icon-144x144.png?v=Lb54KlrQnz">
+ <link rel="apple-touch-icon" sizes="152x152" href="/apple-touch-icon-152x152.png?v=Lb54KlrQnz">
+ <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon-180x180.png?v=Lb54KlrQnz">
+ <link rel="icon" type="image/png" href="/favicon-32x32.png?v=Lb54KlrQnz" sizes="32x32">
+ <link rel="icon" type="image/png" href="/android-chrome-192x192.png?v=Lb54KlrQnz" sizes="192x192">
+ <link rel="icon" type="image/png" href="/favicon-96x96.png?v=Lb54KlrQnz" sizes="96x96">
+ <link rel="icon" type="image/png" href="/favicon-16x16.png?v=Lb54KlrQnz" sizes="16x16">
+ <link rel="manifest" href="/manifest.json?v=Lb54KlrQnz">
+ <link rel="shortcut icon" href="/favicon.ico?v=Lb54KlrQnz">
+ <meta name="msapplication-TileColor" content="#2d89ef">
+ <meta name="msapplication-TileImage" content="/mstile-144x144.png?v=Lb54KlrQnz">
+ <meta name="theme-color" content="#ffffff">
+
+</head>
+<body class="login-page">
+<div class="login-box">
+ <div class="login-logo">
+ <a href="{{ route('index') }}"><b>Firefly</b>III</a>
+ </div>
+ {% block content %}{% endblock %}
+</div>
+<!-- /.login-box -->
+<script type="text/javascript" src="js/jquery-2.1.3.min.js"></script>
+<script type="text/javascript" src="bootstrap/js/bootstrap.min.js"></script>
+
+<script>
+ (function (i, s, o, g, r, a, m) {
+ i['GoogleAnalyticsObject'] = r;
+ i[r] = i[r] || function () {
+ (i[r].q = i[r].q || []).push(arguments)
+ }, i[r].l = 1 * new Date();
+ a = s.createElement(o),
+ m = s.getElementsByTagName(o)[0];
+ a.async = 1;
+ a.src = g;
+ m.parentNode.insertBefore(a, m)
+ })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
+ ga('create', '{{ env('ANALYTICS_ID', 'XXX-XX-X') }}', {'siteSpeedSampleRate': 100});
+ ga('send', 'pageview');
+ // send an event if relevant:
+ {% if Session.has('gaEventCategory') and Session.has('gaEventAction') and not Session.has('gaEventLabel') %}
+ ga('send', 'event', '{{Session.get('gaEventCategory')}}', '{{Session.get('gaEventAction')}}');
+ {% endif %}
+ {% if Session.has('gaEventCategory') and Session.has('gaEventAction') and Session.has('gaEventLabel') %}
+ ga('send', 'event', '{{Session.get('gaEventCategory')}}', '{{Session.get('gaEventAction')}}', '{{ Session.get('gaEventLabel') }}');
+ {% endif %}
+</script>
+</body>
+</html>
diff --git a/resources/twig/layout/guest.twig b/resources/twig/layout/guest.twig
index c27f63e493..6b64dff171 100644
--- a/resources/twig/layout/guest.twig
+++ b/resources/twig/layout/guest.twig
@@ -9,6 +9,7 @@
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css" type="text/css" media="all"/>
<link rel="stylesheet" href="font-awesome/css/font-awesome.min.css" type="text/css" media="all"/>
<link href="dist/css/AdminLTE.min.css" rel="stylesheet" type="text/css"/>
+ <link href="css/firefly.css" rel="stylesheet" type="text/css"/>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
diff --git a/resources/twig/partials/menu-sidebar.twig b/resources/twig/partials/menu-sidebar.twig
index 8e347578d7..136d7fdc0d 100644
--- a/resources/twig/partials/menu-sidebar.twig
+++ b/resources/twig/partials/menu-sidebar.twig
@@ -115,7 +115,7 @@
<ul class="treeview-menu">
<li class="{{ activeRoutePartial('profile') }}">
- <a class="{{ activeRouteStrict('profile') }}" href="{{ route('profile') }}"><i class="fa fa-user fa-fw"></i> Profile</a>
+ <a class="{{ activeRouteStrict('profile') }}" href="{{ route('profile') }}"><i class="fa fa-user fa-fw"></i> {{ 'profile'|_ }}</a>
</li>
<li class="{{ activeRoutePartial('preferences') }}">
<a class="{{ activeRouteStrict('preferences') }}" href="{{ route('preferences') }}"><i class="fa fa-gear fa-fw"></i> {{ 'preferences'|_ }}</a>