mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Strings for #1116 (help text)
This commit is contained in:
parent
e40d4ef829
commit
ad306e4d01
10
public/js/ff/help.js
vendored
10
public/js/ff/help.js
vendored
@ -17,7 +17,7 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/** global: token */
|
||||
/** global: token, helpPageTitle, noHelpForPage,noHelpForPageTitle */
|
||||
$(function () {
|
||||
"use strict";
|
||||
$('#help').click(showHelp);
|
||||
@ -35,12 +35,12 @@ function showHelp(e) {
|
||||
}
|
||||
$('#helpBody').html('<i class="fa fa-refresh fa-spin"></i>');
|
||||
$('#helpModal').modal('show');
|
||||
$('#helpTitle').html('Help for this page');
|
||||
$.getJSON('help/' + encodeURI(route)).done(function (data) {
|
||||
$('#helpTitle').html(helpPageTitle);
|
||||
$.getJSON('helpx/' + encodeURI(route)).done(function (data) {
|
||||
$('#helpBody').html(data.html);
|
||||
}).fail(function () {
|
||||
$('#helpBody').html('<p class="text-danger">No help text could be found.</p>');
|
||||
$('#helpTitle').html('Apologies');
|
||||
$('#helpBody').html('<p class="text-danger">' + noHelpForPage + '</p>');
|
||||
$('#helpTitle').html(noHelpForPageTitle);
|
||||
});
|
||||
$('#reenableGuidance').unbind('click').click(function () {
|
||||
enableGuidance(route, specialPage);
|
||||
|
@ -60,6 +60,9 @@ return [
|
||||
'flash_error_multiple' => 'There is one error|There are :count errors',
|
||||
'net_worth' => 'Net worth',
|
||||
'route_has_no_help' => 'There is no help for this route.',
|
||||
'help_for_this_page' => 'Help for this page',
|
||||
'no_help_could_be_found' => 'No help text could be found.',
|
||||
'no_help_title' => 'Apologies, an error occurred.',
|
||||
'two_factor_welcome' => 'Hello, :user!',
|
||||
'two_factor_enter_code' => 'To continue, please enter your two factor authentication code. Your application can generate it for you.',
|
||||
'two_factor_code_here' => 'Enter code here',
|
||||
|
@ -188,6 +188,11 @@
|
||||
<script src="{{ route('javascript.variables') }}?ext=.js&v={{ FF_VERSION }}{% if account %}&account={{ account.id }}{% endif %}"
|
||||
type="text/javascript"></script>
|
||||
<script type="text/javascript" src="js/ff/firefly.js?v={{ FF_VERSION }}"></script>
|
||||
<script type="text/javascript">
|
||||
var helpPageTitle = "{{ trans('firefly.help_for_this_page')|escape('js') }}";
|
||||
var noHelpForPage = "{{ trans('firefly.no_help_could_be_found')|escape('js') }}";
|
||||
var noHelpForPageTitle = "{{ trans('firefly.no_help_title')|escape('js') }}";
|
||||
</script>
|
||||
<script type="text/javascript" src="js/ff/help.js?v={{ FF_VERSION }}"></script>
|
||||
{% if not shownDemo %}
|
||||
<script type="text/javascript">
|
||||
|
Loading…
Reference in New Issue
Block a user