Trgovina module
This commit is contained in:
parent
5a9f7ced0f
commit
a7d23fcb77
@ -1,2 +1,24 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
function trgovin1ka_1ka_preprocess(&$variables)
|
||||||
|
{
|
||||||
|
if(\Drupal::languageManager()->getCurrentLanguage()->getId() == 'sl') {
|
||||||
|
include (__DIR__ . '/../../../../../../lang/1.php');
|
||||||
|
}else{
|
||||||
|
include (__DIR__ . '/../../../../../../lang/2.php');
|
||||||
|
}
|
||||||
|
|
||||||
|
$variables['lang'] = $lang;
|
||||||
|
$variables['languageId'] = \Drupal::languageManager()->getCurrentLanguage()->getId();
|
||||||
|
$variables['#cache']['max-age'] = 0;
|
||||||
|
|
||||||
|
return $variables;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function trgovin1ka_1ka_preprocess_page(&$vars)
|
||||||
|
{
|
||||||
|
$language = \Drupal::languageManager()->getCurrentLanguage()->getId();
|
||||||
|
|
||||||
|
$vars['language'] = $language;
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user