Code: Select all
$SITE['monthNames'] = array( // for wxastronomy page .. replace with month names in your language
"styczeñ","luty","marzec","kwiecieñ","maj",
"czerwiec","lipiec","sierpieñ","wrzesieñ","paŸdziernik","listopad","grudzieñ"
);
Moderator: saratogaWX
Code: Select all
$SITE['monthNames'] = array( // for wxastronomy page .. replace with month names in your language
"styczeñ","luty","marzec","kwiecieñ","maj",
"czerwiec","lipiec","sierpieñ","wrzesieñ","paŸdziernik","listopad","grudzieñ"
);
Code: Select all
$SITE['monthNames'] = array( // for wxastronomy page .. replace with month names in your language
"styczeñ","luty","marzec","kwiecieñ","maj",
"czerwiec","lipiec","sierpieñ","wrzesieñ","paŸdziernik","listopad","grudzieñ"
);
Code: Select all
$SITE['monthNames'] = array( "styczeñ","luty","marzec","kwiecieñ","maj",
"czerwiec","lipiec","sierpieñ","wrzesieñ","paŸdziernik","listopad","grudzieñ"
);
and your wxindex.php showingCumulus weather data NOT Current 379702:02:38 > 0:05:15
70-01-01 01:00
for the time of update in PHP is caused by the date format used for your system running Cumulus. It is currently set to have dates as yyyy-mm-dd -- if you change the system to use dd/mm/yyyy format (and in Settings.php have $SITE['WDdateMDY'] = false; ) then the dates would be correctly decoded.Aktualizacja: @ 01-01-1970 00:03
Code: Select all
$SITE['WDdateMDY'] = false;
Code: Select all
dat<?php
Code: Select all
<?php
Code: Select all
vvar langBaroTrend = new Array (
Code: Select all
var langBaroTrend = new Array (
Code: Select all
// -- language settings -- you don't need to customize this area if you are using English -----
var langPauseMsg = 'Updates paused - reload page to start'; // substitute this for ajaxindicator when
// maxupdates has been reached and updating paused.
var langMonths = new Array ( "January","February","March","April","May",
"June","July","August","September","October","November","December");
var langDays = new Array ( "Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun");
var langBaroTrend = new Array (
"Steady", "Rising Slowly", "Rising Rapidly", "Falling Slowly", "Falling Rapidly");
var langUVWords = new Array (
"None", "Low", "Medium", "High",
"Very High", /* be sure to include for space */
"Extreme" );
var langBeaufort = new Array ( /* Beaufort 0 to 12 in array */
"Calm", "Light air", "Light breeze", "Gentle breeze", "Moderate breeze", "Fresh breeze",
"Strong breeze", "Near gale", "Gale", "Strong gale", "Storm",
"Violent storm", "Hurricane"
);
var langWindDir = new Array( /* used for alt and title tags on wind dir arrow and wind direction display */
"N", "NNE", "NE", "ENE",
"E", "ESE", "SE", "SSE",
"S", "SSW", "SW", "WSW",
"W", "WNW", "NW", "NNW");
var langWindCalm = 'Calm';
var langGustNone = 'None';
var langWindFrom = 'Wind from '; /* used on alt/title tags on wind direction arrow*/
var langBaroRising = 'Rising %s '; /* used for trend arrow alt/title tags .. %s marks where value will be placed */
var langBaroFalling = 'Falling %s ';
var langBaroPerHour = '/hour.'; /* will be assembled as rising/falling + value + uom + perhour text */
var langThermoCurrently = 'Currently: '; /* used on alt/title tags for thermometer */
var langThermoMax = 'Max: ';
var langThermoMin = 'Min: ';
var langTempRising = 'Warmer %s '; /* used for trend arrow alt/title tags .. %s marks where value will be placed */
var langTempFalling = 'Colder %s ';
var langTempLastHour = ' than last hour.';
var langTransLookup = new Object; // storage area for key/value for current conditions translation
var langHeatWords = new Array (
'Unknown', 'Extreme Heat Danger', 'Heat Danger', 'Extreme Heat Caution', 'Extremely Hot', 'Uncomfortably Hot',
'Hot', 'Warm', 'Comfortable', 'Cool', 'Cold', 'Uncomfortably Cold', 'Very Cold', 'Extreme Cold' );
// -- end of language settings ----------------------------------------------------------
I replaced but now wind and barometer trend text is in English. However, I have Polish translation in language-pl.js:I suggest you replace the language settings section in your ajaxCUwx.js with the above and rely on the language-pl.js file to do the replacements for Polish for you.
Code: Select all
var langBaroTrend = new Array (
"Stabilnie", "Ro¶nie powoli", "Ro¶nie szybko", "Spada powoli", "Spada szybko");
var langBeaufort = new Array ( /* Beaufort 0 to 12 in array */
"Cisza", "Powiew", "Słaby wiatr", "Łagodny wiatr", "Umiarkowany wiatr", "Do¶ć silny wiatr",
"Silny wiatr", "Bardzo silny wiatr", "Sztorm", "Silny sztorm", "Bardzo silny sztorm",
"Gwałtowny sztorm", "Huragan"
var langHeatWords = new Array ( /* used for Heat Color Word */
'Unknown', 'Ekstremalny upał Niebezpieczeństwo', 'Upał Niebezpieczeństwo', 'Upał Ostrzeżenie', 'Ekstremalnie gor±co', 'Niekomfortowo gor±co',
'Gor±co', 'Ciepło', 'Komfortowo', 'Chłodno', 'Zimno', 'Niekomfortowo zimno', 'Bardzo zimno', 'Ekstremalnie zimno' );
Code: Select all
<head>
<?php if(isset($SITE['ajaxScript'])) { ?>
<!-- ##### start AJAX mods ##### -->
<script type="text/javascript" src="<?php echo $SITE['ajaxScript']; ?>"></script>
<!-- AJAX updates by Ken True - http://saratoga-weather.org/wxtemplates/ -->
<?php } // end if ajaxScript ?>
<?php if (isset($showGizmo) and $showGizmo) { ?>
<script type="text/javascript" src="ajaxgizmo.js"></script>
<?php if (isset($SITE['UV']) and !$SITE['UV']) { // turn gizmo uv display off ?>
<script type="text/javascript"> showUV = false; </script>
<?php } // end of turn gizmo uv display off ?>
<?php } // end of showGizmo ?>
<?php if (file_exists("language-". $SITE['lang'] . ".js") ) { ?>
<script type="text/javascript" src="language-<?php echo $SITE['lang']; ?>.js"></script>
<!-- language for AJAX script included -->
<?php } ?>
Code: Select all
<?php if (file_exists("language-". $SITE['lang'] . ".js") ) { ?>
<script type="text/javascript" src="language-<?php echo $SITE['lang']; ?>.js"></script>
<!-- language for AJAX script included -->
<?php } ?>