mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-06 04:34:00 +00:00
Translate some help text.
This commit is contained in:
@@ -41,7 +41,7 @@ class Help implements HelpInterface
|
|||||||
$routeIndex = str_replace('.', '-', $route);
|
$routeIndex = str_replace('.', '-', $route);
|
||||||
$title = trans('help.' . $routeIndex);
|
$title = trans('help.' . $routeIndex);
|
||||||
$content = [
|
$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,
|
'title' => $title,
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -58,7 +58,7 @@ class Help implements HelpInterface
|
|||||||
|
|
||||||
if (strlen(trim($content['text'])) == 0) {
|
if (strlen(trim($content['text'])) == 0) {
|
||||||
Log::debug('No actual help text for this route (even though a page was found).');
|
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();
|
$converter = new CommonMarkConverter();
|
||||||
$content['text'] = $converter->convertToHtml($content['text']);
|
$content['text'] = $converter->convertToHtml($content['text']);
|
||||||
|
@@ -52,6 +52,7 @@ return [
|
|||||||
'flash_info_multiple' => 'There is one message|There are :count messages',
|
'flash_info_multiple' => 'There is one message|There are :count messages',
|
||||||
'flash_error_multiple' => 'There is one error|There are :count errors',
|
'flash_error_multiple' => 'There is one error|There are :count errors',
|
||||||
'net_worth' => 'Net worth',
|
'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:
|
// export data:
|
||||||
'import_and_export' => 'Import and export',
|
'import_and_export' => 'Import and export',
|
||||||
|
Reference in New Issue
Block a user