T
T
The Dragger2016-06-15 14:02:32
Laravel
The Dragger, 2016-06-15 14:02:32

How to set up static translation correctly?

app.config :

'locale' => 'ru',
    'locales' => ['ru' => 'ru', 'en' => 'en'],
    'loc' => ['ru', 'en'],
    'fallback_locale' => 'ru',

text that I am translating:
{{ trans('messages.ПОДБЕРИТЕ ПОДХОДЯЩИЙ ТУР ДЛЯ ВАС') }}

created a file in resources/lang/en/messages.php and resources/lang/ru/messages.php
I pass my_site.local/en the text is translated all the rules.
I pass my_site.local/ru text should remain as it is, but the site displays messages like this. CHOOSE THE RIGHT TOUR FOR YOU .

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
D', 2016-06-15
@IPD2

Очевидно в файле ru/messages.php нету перевода для ключа "ПОДБЕРИТЕ ПОДХОДЯЩИЙ ТУР ДЛЯ ВАС".
Что там вообще в этом файле?
Зачем создавать ключи русскими буквами с пробелами?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question