e107help.org Q&A
0 like 0 dislike

Hello friends
I use e107 on my simple site, and use theme "baba"
Site is setted up in English

www.muzicki-kutak.hr

ISSUE:
Under any of my news there is date, month, year and hour of posting news, but it is in Italian
(example under news headline: lunedì 27 gennaio 2020 - 10:32:38 lucky1967 in:Ozvučenja_ ) - Marked red on the picture below
What PHP I need to edit that this line is in english?
In my theme folder, under theme I use (baba), in language folder I have only English.php (I deleted Italian.php), and in theme.php under language is English.php

What other php's I need to edit, please help
If U need additional info, let me know, I am new in e107


e107 version Version 2.1.5
closed
in Themes by (7 points) 3
closed by

1 Answer

0 like 0 dislike
Best answer

Did you also (backup first) go into theme php (baba) and commented (or deleted) line 26 &27 ?
Likely line 27 is the culprit.. 

setlocale(LC_TIME, 'it_IT');

 Just took a quick look, i am not that good in italian wink and do not use the theme myself. Can not find any other relationship since you mentioned you have no Italian 

 

Please be advised : the theme you mention (Baba) will work for LOW php versions, not responsive. Meant for v1 
It should be converted to bootstrap (responsive) settings... ( https://e107.org/developer-manual#upgrading-v1-x-themes )

by (3.2k points) 7 9 11
selected by
I found it

 

// [multilanguage]
@include_once(e_THEME."baba/languages/".e_LANGUAGE.".php");
@include_once(e_THEME."baba/languages/English.php");
setlocale(LC_TIME, 'it_IT');

 

so do I need to change it_IT to english (if yes what is the shortcut, like en_EN or?
or do I need just to delete this line?

I am from Croatia btw and thanx for the answer

It works :)
 

// [multilanguage]
@include_once(e_THEME."baba/languages/".e_LANGUAGE.".php");
@include_once(e_THEME."baba/languages/English.php");
setlocale(LC_TIME, 'en_EN');


THANX MATE A LOT (Y)

Post is closed, but in language folder main language setlocale should be present so not always needed in theme
Ex : see first lines in a languagepack / .... suppose you use Hungarian lang pack > Hungarian.php

It IS present in ENGLISH as it is default. IN the above case you set it (due to theme) that only time uses English. (this case because age of theme build in Italy, why so? could only be answered by Alf aka designer)
If you want it in your own language adjust accordingly either by language pack (do NOT use setlocale in theme) so your language pack overrides and uses your pre set or indeed hr_HR .

THANX
I tried it, but there is no Croatian letters "čćžšđ"
English is full OK, Thanx again :)
Welcome to e107 Q&A, where you can ask questions and receive answers from other members of the e107 community.
924 questions
1,326 answers
2,309 comments
2,297 users