openoffice-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: template troubles in "xx" pseudo NL website
Date Fri, 30 Aug 2013 14:42:31 GMT
On 30 August 2013 15:28, Ariel Constenla-Haile <arielch@apache.org> wrote:
> On Fri, Aug 30, 2013 at 08:26:51AM -0400, Rob Weir wrote:
>> But one question:  what is the strategy on locale detection on the
>> download page for NL pages?  It looks like you are hardcoding it to
>> "es", but preserving the OS detection code?
>>
>> I see:
>>
>> var NL_LANGUAGE = "es";
>>
>> Is that all that is needed?  We can otherwise just reuse the same scripts?
>
> yes, var NL_LANGUAGE = ""; will default to en-US.
>
> The download page, with all that javascript in it, is rather hard to
> translate. Isn't it possible to use a cgi script (server-side vs.
> client-side js)?

If the ASF servers can support server-side processing then it should
be possible to use that for the OS auto-detection as well.

However, if client-side processing is required, maybe the NL text
strings should be extracted into a JSON object, making the javascript
generic.
That would make it much easier to maintain - only a single copy.

Failing that, it should be fairly simple (?) to extract the NL strings
into JS variables and group them at the start of the page.

>
> Regards
> --
> Ariel Constenla-Haile
> La Plata, Argentina

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org


Mime
View raw message