Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
ed3d0be2
Commit
ed3d0be2
authored
Sep 20, 2016
by
Phil Höfer
Browse files
neuer Spendenaufruf
parent
3e7264ae
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/MetaGerSearch.php
View file @
ed3d0be2
...
...
@@ -6,6 +6,7 @@ use App;
use
App\Http\Controllers\Controller
;
use
App\MetaGer
;
use
Illuminate\Http\Request
;
use
LaravelLocalization
;
class
MetaGerSearch
extends
Controller
{
...
...
@@ -111,6 +112,10 @@ class MetaGerSearch extends Controller
$mquicktips
[]
=
[
'title'
=>
$ad
[
'title'
],
'descr'
=>
$ad
[
'descr'
],
'URL'
=>
$ad
[
'URL'
]];
}
# Und en Spendenaufruf:
$mquicktips
[]
=
[
'title'
=>
trans
(
'quicktip.spende.title'
),
'descr'
=>
trans
(
'quicktip.spende.descr'
),
'URL'
=>
LaravelLocalization
::
getLocalizedURL
(
LaravelLocalization
::
getCurrentLocale
(),
"spendenaufruf"
)];
return
view
(
'quicktip'
)
->
with
(
'spruch'
,
$spruch
)
->
with
(
'mqs'
,
$mquicktips
);
...
...
resources/lang/de/quicktip.php
View file @
ed3d0be2
<?php
return
[
'title'
=>
'MetaGer Quicktips'
,
'title'
=>
'MetaGer Quicktips'
,
'spende'
=>
[
'title'
=>
'MetaGer sagt Danke!'
,
'descr'
=>
'Ihre Unterstützung hilft uns, MetaGer zu betreiben.'
,
],
];
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment