Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Translate some help text.
James Coleb9586481fc7e
diff --git a/app/Helpers/Help/Help.php b/app/Helpers/Help/Help.phpindex 349bad112e..881006afe0 100644--- a/app/Helpers/Help/Help.php+++ b/app/Helpers/Help/Help.php@@ -41,7 +41,7 @@ class Help implements HelpInterface$routeIndex = str_replace('.', '-', $route);$title = trans('help.' . $routeIndex);$content = [- 'text' => '<p>There is no help for this route, or there is no help available in your language.</p>',+ 'text' => '<p>' . strval(trans('firefly.route_has_no_help')) . '</p>','title' => $title,];@@ -58,7 +58,7 @@ class Help implements HelpInterfaceif (strlen(trim($content['text'])) == 0) {Log::debug('No actual help text for this route (even though a page was found).');- $content['text'] = '<p>There is no help for this route, or there is no help available in your language.</p>';+ $content['text'] = '<p>' . strval(trans('firefly.route_has_no_help')) . '</p>';}$converter = new CommonMarkConverter();$content['text'] = $converter->convertToHtml($content['text']);diff --git a/resources/lang/en_US/firefly.php b/resources/lang/en_US/firefly.phpindex 96b0685ca3..a3a406cb37 100644--- a/resources/lang/en_US/firefly.php+++ b/resources/lang/en_US/firefly.php@@ -52,6 +52,7 @@ return ['flash_info_multiple' => 'There is one message|There are :count messages','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, or there is no help available in your language.',// export data:'import_and_export' => 'Import and export',