Add another locales

Definitions of graphs you want to share with us

Moderator: Mattk

Post Reply
black23
Junior Boarder
Junior Boarder
Posts: 21
Joined: Wed Apr 16, 2008 9:16 am
Location: Czech Republic

Add another locales

Post by black23 »

Hi all,
I played around GnuPlot paramhers. I want to use my national locales cs_CZ. But this locale file aren't in Meteohub. Is here somebody who add support for locales ? Metehub contains default: german, english and italian locales ... I thing.


Thanks


Mike
User avatar
WS Grave
Expert Boarder
Expert Boarder
Posts: 103
Joined: Fri Oct 30, 2009 3:42 pm
Location: Grave - the Netherlands
Contact:

Re:Add another locales

Post by WS Grave »

Hi Black, use this command for local time:

set locale "cz_CZ"
black23
Junior Boarder
Junior Boarder
Posts: 21
Joined: Wed Apr 16, 2008 9:16 am
Location: Czech Republic

Re:Add another locales

Post by black23 »

Hi,
I tested this settings but:
set locale "cz_CZ"
^
"/tmp/meteob7GMKO", line 35: Locale not available


This locale isn't present in distribution. I tried to copy file buy still no luck.


Mike
User avatar
WS Grave
Expert Boarder
Expert Boarder
Posts: 103
Joined: Fri Oct 30, 2009 3:42 pm
Location: Grave - the Netherlands
Contact:

Re:Add another locales

Post by WS Grave »

Just to be shure we're talking about the same thing:
you mean local support for time/date in graphs!?

If so:
I use this line in the Format Cmd:
set locale "nl_NL"|set key below

What it does is make time/date Dutch and it puts the legend below the graph.

I did a search and found:
"Language code for czech language is cs, not cz which is code for Czech Republic, correct code is therefore "cs_CZ"

This means you should probably use "cs_CZ" !?
black23
Junior Boarder
Junior Boarder
Posts: 21
Joined: Wed Apr 16, 2008 9:16 am
Location: Czech Republic

Re:Add another locales

Post by black23 »

Hi,
Yes we talk about same thing. You're right correct code is cs_CZ. But if I triead this code result is same - error.
I looked local files in my NSLU2 and found just: eglish, german, spain, dutch and italian locales. I download cs_CZ locales from internet and copied into NSLU2 but same error.
Can You test cs_CZ locale on Your system ?

Thanks


Mike
User avatar
WS Grave
Expert Boarder
Expert Boarder
Posts: 103
Joined: Fri Oct 30, 2009 3:42 pm
Location: Grave - the Netherlands
Contact:

Re:Add another locales

Post by WS Grave »

Mike, it works ok for me.
See image (dates).
I used this code:
set locale "cs_CZ"|set key below|set style increment user Image
black23
Junior Boarder
Junior Boarder
Posts: 21
Joined: Wed Apr 16, 2008 9:16 am
Location: Czech Republic

Re:Add another locales

Post by black23 »

Hi,
thanks for test.

On my NSLU2 still same error: No locale file.

Which system You use ? NSLU2 ? Sheeva ?

On Your graph I see that system don't contains Czech font (with specil characters as č,š,ě etc.). But this is not relavant in this time. I need some way to add CZ locales file into NSLU2, maybe cz font for gnuplot too.

On gnuplot help I found some info abou locales but its for full linux distribution ... on NSLU2 this is not similar.

I'm not linux guru ... maybe its easy ...
Post Reply