Weather by You!
Templates and Projects support => Php templates => Topic started by: Toremann on June 16, 2013, 05:11:37 AM
-
Hello Everyone
Have have a brand new site upp running at http://jensskogan.com (http://jensskogan.com) but i have a minor problem, my site is in Norwegian, and i want the record data to be presented like:
"Kl: 20:27 Den 13 juni" not " at 20:27 on 13 juni 2013"
I have edited wt_month_inc and wt_data_inc, it looks correct until i get legal data from cumulus then it change over to from "Kl: 20:27 Den 13 juni" to " at 20:27 on 13 juni 2013"
Could anyone hlep me out whit this problem
Best Regards
Tore
-
Hi Tore,
In file begin, you'll find these lines:
// Date formatted
$to = "to "; // Ex: to 20 may
$pre_time = "at "; // Ex: at 10:45
$pre_date = " on "; // Ex: on 25 may
$only_date = "On "; // Ex: On 25 may
Simply change strings between "...", so:
$to = "KI "; // Ex: to 20 may
Regards,
Jacques
-
Hello Jacques
This is how my setup is:
// Date formatted
$to = utf8_encode("Kl: "); // Ex: to 20 may
$pre_time = utf8_encode("Kl: "); // Ex: at 10:45
$pre_date = utf8_encode(" Den "); // Ex: on 25 may
$only_date = utf8_encode("Den "); // Ex: On 25 may
I have try to change it to:
// Date formatted
$to = "Kl: "; // Ex: to 20 may
$pre_time = "kl: "; // Ex: at 10:45
$pre_date = " , den "; // Ex: on 25 may
$only_date = ", den "; // Ex: On 25 may
but its the same, you will see it at: http://jenskogan.com (http://jenskogan.com)
BTW: forgott to say its only on the "records" tab it get messed up
As you may see the readings are correct in emty months ( before my station got online in may)
But after that its seems to be wrong
Best regards
Tore
-
Hi Tore,
I saw your site and wt_data_inc.php file is ok!
Your problem is with wt_month_inc.php
Compare options on this 2 files, something is different!
Regards,
Jacques
-
Hello again
I have now compared the two files and they are the same
Please se attached files
Maby you can se whats wrong
Regards
Tore
-
Hi Tore,
a new version 1.1 of that file is available in your manage.php page.
(Template Manager Module). See if that solve your problem.
Regards,
Jacques
-
Hello Again
I have updatet the file whit no luck, but i see i get som error in the manage.php page
Could you have a look, no changed pass..
Best regards
Tore
-
Hi Tore,
It is normal that you have some errors in manage.php.
The data files are not processed, so Php see strange characters
(Cumulus webtags) and count them for errors. Then, remove files
that you aren't using you'll see a better management without them
These "false errors" are there from the beginning since I have no time
to look at it... but this summer a major update will solve it.
Regards,
Jacques
-
Hello Jacques
Could upgrading to Cumuls 1.9.4 be a solution to get the tags displayed correctly on the Record tab?
Regards
Tore
-
Hi Tore,
I don't think that the version 1.9.4 could do something good for it!
Double check that your using the good file.. maybe a mix in files?
Regards,
Jacques
-
Hello Jacques
Somthing strange is going on here.
All of a sudden the timstamp have disapereed on today and yesterdays tab
Now it shows: Lavest trykk 1000,3 hPa 14:21
I am almoust shure it was: Lavest trykk 1000,3 hPa at 14:21
And!!! i have not changed anything
Any explanation why?????
Regards
Tore
-
Hi Tore,
Your file wt_months_inc.php display date ok. So, only wt_data_inc.php
need verification, see if you see these lines at file begin:
// Date formatted
$to = "to "; // Ex: to 20 may
$pre_time = "at "; // Ex: at 10:45
$pre_date = " on "; // Ex: on 25 may
$only_date = "On "; // Ex: On 25 may
These are the date formatting lines.
Regards,
Jacques
-
Hello again
I dont know what i have done but then i try to change language on my site i get a looooot of
php error
Like this: Notice: Undefined variable: Tr_monthnames in C:\xampp\htdocs\vaer\wt_data_inc.php on line 492
and so on,, i have try to replase wt_data_inc.php but i still get this error
The only language who dont give this error is Norwegain who is set as default language
I dont know what to do??? :-X
Regards
Tore
-
Hi Tore,
You need to update all your language files to the newest version.
Keep your Template updated, by using your Template Manager Module (manage.php)
(update on data files wt_..._inc.php, need to be remove from web as they are local files)
Best regards,
Jacques
-
Hello Jacques
A little question
The weather forcast on the front of my page show a strange letter for spesial scandinavian ÆØÅ
What file should i edit to get this correct,, i know i need to set in the htmls code for this letters to get this correct, but i am not able to finde the correct file
Regards
Tore
-
Hi Tore,
For forecast text, Cumulus provide them via its own file.
To modify those texts, you have to edit file Strings.ini
that you'll find in your Cumulus folder in your PC (C:\Cumulus)
You will find in this file a lot of texts used by Cumulus:
Forecasts phrases, moon phases, graph titles, etc.
For more info, go to this link: http://wiki.sandaysoft.com/a/Strings.ini
Best regards,
Jacques
-
Hello Jacques
Things seems to work well now, but i have one more problem to solve
The forecast on index.php show the Norwegian caracters correct (ÆØÅ)
but the banner at the Gauges (målere) side show the ÆØÅ wrong
I have tested with different coding UTF-8 and so on, but so far have not been able to solve this problem
If i understand this correct this forecast is generated from string.ini and i have tryed to save this file in UTF-8 and iso-8859-1 but this do not solve my problem.
Any good idea??
Best Regards
Tore
-
Hi Tore,
As I told you earlier, Strings.ini cdontain only a list of translated
strings for Forecast, moon phase and so on!
If we take your menu as example, you have to edit your menu file
and save it to UTF-8, that is probably why your menu display "Målere"
instead of "MÆØÅ lere"
... but since I don't read Norwegian... I couldn't find errors! :-X
Best Regards,
Jacques
-
Howdy again!!
All my menus are showing correct, and is saved in UTF-8
But the thing that is the problem is the "rolling" forecast banner on the gauges side
Then it recives norwegian caracters its show`s its wrong so its seems like its have someting whit JS encoding to do.
I have tryed to set "digitalForecast : false," in gauges.js as suggested on cumulus wiki, but it does not help.
As you may see the forecast is displayed correct on index.php but not on ss_gauges.php, and as far as I can see its is "powered" by strings.ini and strings.ini is saved in UTF-8
( this problems only shows up then the forecast have "norwegian" caracters in it like "vær")
"vær = weather, Norwegian translation"
I have tryed almoust everything, but so far no luck :(
All help would be most appreciated
Have a great day
Best Regards
Tore
-
Hi Tore,
Ok! Your problem is with scrolling text in SS Gauges status bar!!
I think the problem is with the LCDMono typeface font!
This font is an "anglo-only" font. As you see, this font is real special as it
"mimic" a LCD display, but it support only basic below 128 ASCII Characters.
Some accented letters are included in "vanilla plain" ASCII characters
(as #132, #133, #138, etc...) but since they are greater then 127, they aren't
supported, so replaced with plain chars!
Sorry, to have no better answer... maybe you could tell Mark Crosley on
SteelSeries section, in Cumulus forum.
Best Regards,
Jacques
-
Hello Again
I have been in contact whit Mark, but i am still not able to solve my problem
We are getting close but if you have a look at the conversation between me and Mark, maby you get a idea how to solve the remaining problem
See link below
http://sandaysoft.com/forum/viewtopic.php?f=21&t=10299&p=84366#p84366 (http://sandaysoft.com/forum/viewtopic.php?f=21&t=10299&p=84366#p84366)
Regards
Tore
-
Hello Jacques
The case its solved :)
It seem like it is some error in some of the language files, i needed to to edit them to prevent php error.
if i remeber correct it was: German, Greek, Italian, and Slovenian language
Have a great day
Tore