cloudy

Author Topic: Cloud Height Graphic v2.1  (Read 76916 times)

0 Members and 2 Guests are viewing this topic.

Offline Zalmor

  • Posts: 550
  • Erin, NY
    • Zalmors' corner of the Web
Re: Cloud Height Graphic (released)
« Reply #195 on: May 12, 2009, 04:36:43 PM »
Are you sure? it should be saying ENE not ONO
Nope, I looked a little farther down the cloud-base.php around line 419 under wind rose directions and the language translations.
That is where its coming from.
Michael A

Windows XP Pro SP3, Pentium D 2.80GHz 3GB RAM, Quickcam Pro 4000, and APC

Bashy

  • Guest
Re: Cloud Height Graphic (released)
« Reply #196 on: May 12, 2009, 04:38:11 PM »
So what should i do, anything?

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 21,998
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
    • http://www.realweatherstation.com
Re: Cloud Height Graphic (released)
« Reply #197 on: May 12, 2009, 05:21:25 PM »
Are you sure? it should be saying ENE not ONO

Have you inadvertently selected another language option? That looks like ENE in something other than English.

Bashy

  • Guest
Re: Cloud Height Graphic (released)
« Reply #198 on: May 12, 2009, 05:38:10 PM »
Hi Niko, Not that i know of, I aint touched the script for a while and it was working ok
last time i check, although, the wind direction was different last time i checked, i it was
coming from the South West

Offline weatherbee

  • Posts: 547
  • Sherman, Ct.
    • http://www.shermanctweather.com
Re: Cloud Height Graphic (released)
« Reply #199 on: May 12, 2009, 07:07:10 PM »
Bashy,
I had the same thing.  I changed this section:// Wind rose directions --------------------------------------------------------
   // will use language-??.txt files for translations if part of the Saratoga World Multilingual script templates
   // otherwise if standalone then translate here (i.e. alter it here otherwise no need to)
   if ($translateTo='de') { // German
      $langWindDir = array(
      "N", "NNE", "NE", "ENE",
      "E", "ESE", "SE", "SSE",
      "S", "SSW", "SW", "WSW",
      "W", "WNW", "NW", "NNW");
   } else

I changed to the O to E and it worked.
Sony Pentium 4, 1.6 GHZ,512 MB Ram, Windows XP Pro, SP2

Offline magical46

  • Posts: 447
    • Weybourne Weather
Re: Cloud Height Graphic (released)
« Reply #200 on: May 12, 2009, 07:24:32 PM »
Hi
I'm having the same problem ONO instead of ENE
 Here's a copy of the section from the cloud-base.php file

Quote
// Wind rose directions --------------------------------------------------------
   // will use language-??.txt files for translations if part of the Saratoga script templates
   // otherwise if standalone then translate here (i.e. alter it here otherwise DON'T)
   $langWindDir = array(
   "N", "NNE", "NE", "ENE",
   "E", "ESE", "SE", "SSE",
   "S", "SSW", "SW", "WSW",
   "W", "WNW", "NW", "NNW");

Not sure what to change

Phil

Bashy

  • Guest
Re: Cloud Height Graphic (released)
« Reply #201 on: May 12, 2009, 07:33:54 PM »
I aint using the multilingual version :(

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 21,998
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
    • http://www.realweatherstation.com
Re: Cloud Height Graphic (released)
« Reply #202 on: May 12, 2009, 07:37:38 PM »
OK, open the code you are using and do a find for ONO and see what you get.

Bashy

  • Guest
Re: Cloud Height Graphic (released)
« Reply #203 on: May 12, 2009, 07:40:53 PM »
Hi Niko

I had already done that, well, for the cloud-height script and theres a few for the language
translations lower down, perhaps its somehow picking up from there even though it shouldnt
as i am only using English for both the Saratoga and the cloud height scipts, i think theres
something wrong somewhere?

Code: [Select]

// Wind rose directions --------------------------------------------------------
   // will use language-??.txt files for translations if part of the Saratoga World Multilingual script templates
   // otherwise if standalone then translate here (i.e. alter it here otherwise no need to)
   if ($translateTo='de') { // German
      $langWindDir = array(
      "N", "NNO", "NO", "ONO",
      "O", "OSO", "SO", "SSO",
      "S", "SSW", "SW", "WSW",
      "W", "WNW", "NW", "NNW");
   } else
   if ($translateTo='es') { // Spanish
      $langWindDir = array(
      "N", "NNE", "NE", "ENE",
      "E", "ESE", "SE", "SSE",
      "S", "SSO", "SO", "OSO",
      "O", "ONO", "NO", "NNO");
   } else
   if ($translateTo='fi') { // Finnish
      $langWindDir = array(
      "P", "PKO", "KO", "IKO",
      "I", "IKA", "KA", "EKA",
      "E", "ELO", "LO", "LLO",
      "L", "LLU", "LU", "PLU");
   } else
   if ($translateTo='nn' || $translateTo='no') { // Norwegian
      $langWindDir = array(
      "N", "NNØ", "NØ", "ØNØ",
      "Ø", "ØSØ", "SØ", "SSØ",
      "S", "SSV", "SV", "VSV",
      "V", "VNV", "NV", "NNV");
   } else
   if ($translateTo='sv' || $translateTo='se') { // Swedish
      $langWindDir = array(
      "N", "NNO", "NO", "ONO",
      "O", "OSO", "SO", "SSO",
      "S", "SSV", "SV", "VSV",
      "V", "VNV", "NV", "NNV");
   } else { // English (default)
      $langWindDir = array(
      "N", "NNE", "NE", "ENE",
      "E", "ESE", "SE", "SSE",
      "S", "SSW", "SW", "WSW",
      "W", "WNW", "NW", "NNW");
   }

Could be any of those that are causing it?

Bashy

  • Guest
Re: Cloud Height Graphic (released)
« Reply #204 on: May 12, 2009, 07:45:19 PM »
Ok sussed it, i changed all to the English version and i mean all and its ok now :)
Thanks for the idea Niko... and thanks to weatherbee for the same, i thougth he meant the
Saratoga script not the cloud script  :oops: #-o

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 21,998
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
    • http://www.realweatherstation.com
Re: Cloud Height Graphic (released)
« Reply #205 on: May 12, 2009, 07:53:47 PM »
"Oh Yes"  :lol:

Bashy

  • Guest
Re: Cloud Height Graphic (released)
« Reply #206 on: May 12, 2009, 07:58:13 PM »
Still, there must be a wee technical hitch in there for it to have used O for east, it was only
the O that i noticed as well

Offline weatherbee

  • Posts: 547
  • Sherman, Ct.
    • http://www.shermanctweather.com
Re: Cloud Height Graphic (released)
« Reply #207 on: May 12, 2009, 08:23:39 PM »
I changed the German wind rose section in the cloud-base.php.  I use English but it was using the "de" section by default because when I changed all the "O" to "E" in that section it changed on the graphic.
Sony Pentium 4, 1.6 GHZ,512 MB Ram, Windows XP Pro, SP2

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 21,998
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
    • http://www.realweatherstation.com
Re: Cloud Height Graphic (released)
« Reply #208 on: May 12, 2009, 08:40:08 PM »
Still, there must be a wee technical hitch in there for it to have used O for east, it was only
the O that i noticed as well

Yes, there is, all the "=" in eg if ($translateTo='de') should be "=="

The effect of that error is that the first "if" has no condition so it defaults to true and the script uses the German directions, O for E is the only difference to English.
« Last Edit: May 12, 2009, 09:04:22 PM by niko »

Offline weatherbee

  • Posts: 547
  • Sherman, Ct.
    • http://www.shermanctweather.com
Re: Cloud Height Graphic (released)
« Reply #209 on: May 12, 2009, 09:11:08 PM »
Niko,
Good Catch.  All the languages need the double "==" for it to work right.  I changed the section to this:
// Wind rose directions --------------------------------------------------------
   // will use language-??.txt files for translations if part of the Saratoga World Multilingual script templates
   // otherwise if standalone then translate here (i.e. alter it here otherwise no need to)
   if ($translateTo=='de') { // German
      $langWindDir = array(
      "N", "NNO", "NO", "ONO",
      "O", "OSO", "SO", "SSO",
      "S", "SSW", "SW", "WSW",
      "W", "WNW", "NW", "NNW");
   } else
   if ($translateTo=='es') { // Spanish
      $langWindDir = array(
      "N", "NNE", "NE", "ENE",
      "E", "ESE", "SE", "SSE",
      "S", "SSO", "SO", "OSO",
      "O", "ONO", "NO", "NNO");
   } else
   if ($translateTo=='fi') { // Finnish
      $langWindDir = array(
      "P", "PKO", "KO", "IKO",
      "I", "IKA", "KA", "EKA",
      "E", "ELO", "LO", "LLO",
      "L", "LLU", "LU", "PLU");
   } else
   if ($translateTo=='nn' || $translateTo=='no') { // Norwegian
      $langWindDir = array(
      "N", "NNØ", "NØ", "ØNØ",
      "Ø", "ØSØ", "SØ", "SSØ",
      "S", "SSV", "SV", "VSV",
      "V", "VNV", "NV", "NNV");
   } else
   if ($translateTo=='sv' || $translateTo=='se') { // Swedish
      $langWindDir = array(
      "N", "NNO", "NO", "ONO",
      "O", "OSO", "SO", "SSO",
      "S", "SSV", "SV", "VSV",
      "V", "VNV", "NV", "NNV");
   } else { // English (default)
      $langWindDir = array(
      "N", "NNE", "NE", "ENE",
      "E", "ESE", "SE", "SSE",
      "S", "SSW", "SW", "WSW",
      "W", "WNW", "NW", "NNW");
   }
« Last Edit: May 12, 2009, 09:20:05 PM by weatherbee »
Sony Pentium 4, 1.6 GHZ,512 MB Ram, Windows XP Pro, SP2

 

cumulus