Answer the question
In order to leave comments, you need to log in
Drupal 7 - Translation files?
Hello.
How to make a website multilingual. You need to be able to insert variables into the Page editor that will accept the text of the selected language.
I would like it to be something like:
1) I create 2 files, for example: english.lng and russia.lng
english.lng:
title: English title
content: super english content
title: Русский заголовок
content: русский контент
Answer the question
In order to leave comments, you need to log in
Understood a little.
Added user variables:
function t_variables_variable_info($options)
{
$variable['euro_rate'] = array(
'title' => 'Курс евро',
'description' => 'Стоимость одного евро в гривнах, например, 11.50',
'type' => 'number',
'access' => 'administer menus',
'translatable' => true,
'default' => 13.95,
);
$variable['usd_rate'] = array(
'title' => 'Курс доллара',
'description' => 'Стоимость одного доллара в гривнах, например, 8.50',
'type' => 'number',
'access' => 'administer menus',
'default' => 9.98,
);
return $variable;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question