Author Topic: Decimal Point or Comma  (Read 6324 times)

wurzelmac

  • Storm
  • *****
  • Posts: 1439
    • ITIROLPR2
    • Wetterstation Prägraten am Großvenediger
  • Station Details: Davis Vantage PRO2 Plus (24h fan aspirated, wireless) with UV/Solar | Weather Envoy Data Logger | Mac mini 2023 M2 8/256 | 1x Canon EOS 1100D | macOS Sonoma 15.0.1 | WC v330b300
Decimal Point or Comma
« on: January 31, 2013, 12:09:52 PM »
I would like to see a global setting to give all tags used on a website use either . (point) or , (comma) for decimals.
The current readings on my website do show mixed :o, the records tables do show points ???, and the Today-window in WeatherCat do show commas. :)
Update: ALL readings in WeatherCat itself do show commas (what I like very much!).
Cheers,
Reinhard
Reinhard


Randall75

  • Storm
  • *****
  • Posts: 1332
  • CWOP-CW6734 WeatherUnderground-KOHNEWAR6
    • CW6734
    • KOHNEWAR6
    • Randy's Weather On The Hill
  • Station Details: Davis Vantage Pro 2 Plus.iMac i5 OS High Sierra 10.13.6 8GB Ram, WeatherCat 3,Logitech 9000 Pro Web Cam
Re: Decimal Point or Comma
« Reply #1 on: January 31, 2013, 01:50:12 PM »
Hi Reinhard
 That's weird I checked mine here and they are all decimal point
 [cheers1]
This is one for the boss Stu

wurzelmac

  • Storm
  • *****
  • Posts: 1439
    • ITIROLPR2
    • Wetterstation Prägraten am Großvenediger
  • Station Details: Davis Vantage PRO2 Plus (24h fan aspirated, wireless) with UV/Solar | Weather Envoy Data Logger | Mac mini 2023 M2 8/256 | 1x Canon EOS 1100D | macOS Sonoma 15.0.1 | WC v330b300
Re: Decimal Point or Comma
« Reply #2 on: January 31, 2013, 02:52:50 PM »
Hi Randall,
thanks for checking on your side!

I figured out that "simple" tags (like CT$, CG$, ...) and all Statistic tags (STRECORDS$, ...) are rendered correct with a comma (,) on my website. But when an individual tag is used (STAT$ITEM:TYPE:PERIOD$), the decimals are rendered as point (.). In German speaking Countries we do use the comma for decimals, so I would like to see the individual tags rendered into comma, too.

Maybe there is a way to this goal.  :D

Thanks in advance,
Reinhard

Reinhard


elagache

  • Global Moderator
  • Storm
  • *****
  • Posts: 6664
    • DW3835
    • KCAORIND10
    • Canebas Weather
  • Station Details: Davis Vantage Pro-2, Mac mini (2018), macOS 10.14.3, WeatherCat 3
Isn't OS-X supposed to handle this? (Re: Decimal Point or Comma)
« Reply #3 on: January 31, 2013, 09:49:32 PM »
Hi Reinhard and WeatherCat fans,

I would like to see a global setting to give all tags used on a website use either . (point) or , (comma) for decimals.

Isn't this simply a problem of getting the tags consistent with the OS-X language preferences?  I thought if you used Xcode, it was supposed to take care of this for you.

Perhaps Stu has some webtag strings being generated "da' old fashioned way."  If so, Stu should be able to make some modest internal changes that would make all the strings consistent your OS-X language preferences.

I would hope it wouldn't be any more complex than that to get everything consistent.

Cheers, Edouard  [cheers1]

wurzelmac

  • Storm
  • *****
  • Posts: 1439
    • ITIROLPR2
    • Wetterstation Prägraten am Großvenediger
  • Station Details: Davis Vantage PRO2 Plus (24h fan aspirated, wireless) with UV/Solar | Weather Envoy Data Logger | Mac mini 2023 M2 8/256 | 1x Canon EOS 1100D | macOS Sonoma 15.0.1 | WC v330b300
Re: Isn't OS-X supposed to handle this? (Re: Decimal Point or Comma)
« Reply #4 on: February 01, 2013, 04:11:49 PM »
Quote
Isn't this simply a problem of getting the tags consistent with the OS-X language preferences?
I thought it is! But all I can do is to set the OSX language prefs to show a point for decimals. With this one I get a consistent look on my website. But as said earlier, I want to have commas, and it seems like the individual tags are not interested in what the OSX prefs are set to. They do display a point.  :'(

Cheers,
Reinhard [cheers1]
Reinhard


elagache

  • Global Moderator
  • Storm
  • *****
  • Posts: 6664
    • DW3835
    • KCAORIND10
    • Canebas Weather
  • Station Details: Davis Vantage Pro-2, Mac mini (2018), macOS 10.14.3, WeatherCat 3
It's a bug. (Re: OS-X supposed to handle this?)
« Reply #5 on: February 01, 2013, 09:46:37 PM »
Hi Reinhard and WeatherCat fans,

I thought it is! But all I can do is to set the OSX language prefs to show a point for decimals.

Looks like Stu has some strings for the web-tags being generated by some older code that doesn't use the Xcode facilities for internationalization.  So it is a bug in WeatherCat.  However, it should be reasonably easy for Stu to fix.  When Stu gets around to doing that, then the web-tags would match your OS-X preferences precisely.

It appears all this internationalization stuff is somewhat new.  Apple didn't incorporate any of that into AppleScript.  That's one of reasons my AppleScripts are kind of in limbo.  They were getting really overgrown with code for what they are doing.  Oh well, hope to get back to all that after da' trusty wagon is finally fixed.

Cheers, Edouard  [cheers1]

WCDev

  • WeatherCat Developer
  • Administrator
  • Storm
  • *****
  • Posts: 2965
    • CW9739
    • IIBSTO2
    • Trixology
  • Station Details: Main Station: Vantage Pro-2, 24hr fars, solar, extra temp stations, no U.V. WeatherLinkLive.
Re: Decimal Point or Comma
« Reply #6 on: February 02, 2013, 01:53:16 PM »
Deff. a bug - fixed in 1.1.4  :)

http://athena.trixology.com/index.php?topic=643.0

Thanks for the report  [tup]

wurzelmac

  • Storm
  • *****
  • Posts: 1439
    • ITIROLPR2
    • Wetterstation Prägraten am Großvenediger
  • Station Details: Davis Vantage PRO2 Plus (24h fan aspirated, wireless) with UV/Solar | Weather Envoy Data Logger | Mac mini 2023 M2 8/256 | 1x Canon EOS 1100D | macOS Sonoma 15.0.1 | WC v330b300
Re: Decimal Point or Comma
« Reply #7 on: February 02, 2013, 04:29:28 PM »
Fixed!

Thanks a lot!
Reinhard
Reinhard