How to change language of jscalendar

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

How to change language of jscalendar

clemens.harder
Hi all,

I need to change the language of an input field of type xs:date.
I tried following code, but calendar is still in english. Whats wrong
with it?

<xforms:input ref="geburtsdatum" xxforms:format="format-date(xs:date(.),
'[D01].[M01].[Y]', 'de', (), ())">
       <xforms:label class="fixer-abstand">Geburtsdatum</xforms:label>
 </xforms:input>

Many thanks
Clemens



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: How to change language of jscalendar

Alessandro  Vernet
Administrator
Hi Clemens,

I assume you are talking about the text displayed in the calendar
widget. This text is in English by default, because we generate this:
<script type="text/javascript"
src="/ops/config/theme/jscalendar/lang/calendar-en.js">. If you look
at the content of the theme/jscalendar/lang directory, you will see
there a number of files for other languages.

If you want the widget to use another language, you can modify the
theme, and rewrite calendar-en.js to, say, calendar-it.js (or whatever
language is appropriate in your case).

Alex

On 4/7/06, Clemens Harder <[hidden email]> wrote:

> Hi all,
>
> I need to change the language of an input field of type xs:date.
> I tried following code, but calendar is still in english. Whats wrong
> with it?
>
> <xforms:input ref="geburtsdatum" xxforms:format="format-date(xs:date(.),
> '[D01].[M01].[Y]', 'de', (), ())">
>        <xforms:label class="fixer-abstand">Geburtsdatum</xforms:label>
>  </xforms:input>
>
> Many thanks
> Clemens
>
>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
>

--
Blog (XML, Web apps, Open Source):
http://www.orbeon.com/blog/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: How to change language of jscalendar

Erik Bruchez
Administrator
In reply to this post by clemens.harder
Clemens,

This is handled by Saxon, but you are in luck: the latest nightly
support the "de" language.

-Erik

Clemens Harder wrote:

> Hi all,
>
> I need to change the language of an input field of type xs:date.
> I tried following code, but calendar is still in english. Whats wrong
> with it?
>
> <xforms:input ref="geburtsdatum" xxforms:format="format-date(xs:date(.),
> '[D01].[M01].[Y]', 'de', (), ())">
>       <xforms:label class="fixer-abstand">Geburtsdatum</xforms:label>
> </xforms:input>
>
> Many thanks
> Clemens



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: How to change language of jscalendar

Erik Bruchez
Administrator
Clemens,

I missed that you were talking about the calendar, not the displayed
date. See Alex's response ;-)

-Erik

Erik Bruchez wrote:

> Clemens,
>
> This is handled by Saxon, but you are in luck: the latest nightly
> support the "de" language.
>
> -Erik
>
> Clemens Harder wrote:
>> Hi all,
>>
>> I need to change the language of an input field of type xs:date.
>> I tried following code, but calendar is still in english. Whats wrong
>> with it?
>>
>> <xforms:input ref="geburtsdatum"
>> xxforms:format="format-date(xs:date(.), '[D01].[M01].[Y]', 'de', (),
>> ())">
>>       <xforms:label class="fixer-abstand">Geburtsdatum</xforms:label>
>> </xforms:input>
>>
>> Many thanks
>> Clemens
>



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws