Page 1 of 1
Add another locales
Posted: Thu Oct 15, 2009 10:58 am
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
Re:Add another locales
Posted: Fri Nov 06, 2009 12:12 am
by WS Grave
Hi Black, use this command for local time:
set locale "cz_CZ"
Re:Add another locales
Posted: Fri Nov 06, 2009 12:46 am
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
Re:Add another locales
Posted: Fri Nov 06, 2009 6:44 am
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" !?
Re:Add another locales
Posted: Fri Nov 06, 2009 9:55 am
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
Re:Add another locales
Posted: Fri Nov 06, 2009 10:04 am
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

Re:Add another locales
Posted: Fri Nov 06, 2009 10:44 am
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 ...