Return-Path: X-Original-To: apmail-incubator-ooo-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-ooo-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E458999E5 for ; Fri, 18 May 2012 16:15:50 +0000 (UTC) Received: (qmail 36422 invoked by uid 500); 18 May 2012 16:15:50 -0000 Delivered-To: apmail-incubator-ooo-dev-archive@incubator.apache.org Received: (qmail 36342 invoked by uid 500); 18 May 2012 16:15:50 -0000 Mailing-List: contact ooo-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ooo-dev@incubator.apache.org Delivered-To: mailing list ooo-dev@incubator.apache.org Received: (qmail 36274 invoked by uid 99); 18 May 2012 16:15:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 May 2012 16:15:48 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of marcus.mail@wtnet.de designates 213.209.103.7 as permitted sender) Received: from [213.209.103.7] (HELO smtp2.wtnet.de) (213.209.103.7) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 May 2012 16:15:39 +0000 X-WT-Originating-IP: 84.46.106.163 Received: from f9.linux (pop8-672.catv.wtnet.de [84.46.106.163]) (authenticated bits=0) by smtp2.wtnet.de (8.14.4/8.14.4) with ESMTP id q4IGFLMl007751 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO); Fri, 18 May 2012 18:15:21 +0200 Message-ID: <4FB67596.1070802@wtnet.de> Date: Fri, 18 May 2012 18:15:18 +0200 From: "Marcus (OOo)" User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.9.2.20) Gecko/20110804 Thunderbird/3.1.12 MIME-Version: 1.0 To: ooo-dev@incubator.apache.org CC: arielch@apache.org Subject: Re: [WWW] Some issues translating download/index.html References: <20120509174013.GB28051@localhost> <1563C141E67741F2BCD7E3141BBE8D03@googlmail.com> <5C909E0B-EA8C-45AD-98FB-DEC905A49500@comcast.net> <4FAADB4A.5010104@wtnet.de> <20120509215033.GA5204@localhost> <4FAAF432.2080809@wtnet.de> <4FAAF611.7060606@wtnet.de> In-Reply-To: <4FAAF611.7060606@wtnet.de> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Am 05/10/2012 12:56 AM, schrieb Marcus (OOo): > Am 05/10/2012 12:48 AM, schrieb Marcus (OOo): >> Am 05/09/2012 11:50 PM, schrieb Ariel Constenla-Haile: >>> >>> Hi Marcus, >>> >>> On Wed, May 09, 2012 at 11:02:02PM +0200, Marcus (OOo) wrote: >>>>>>> * I had to make a copy of exceptions.css to adapt the >>>>>>> cachedimages/*.png >>>>>>> URLs >>>> >>>> It's easy to change the URLs in the file to absolute pathes. If you >>>> have no others changes done, then you can include the original CSS >>>> file. No need to have an own one. >>> >>> I know, I was trying to do the translation without touching any file in >>> content/download/, so I copied the css file with the modified URLs; then >>> I realized I also needed to turn off language detection and force "es" >>> language download (which implies modifying some files in >>> content/download, unless some one has a better idea - doable in the >>> short time). >> >> Localization was really no point when the DL scripts were created in the >> old project. Also because every NL community was allowed to do their own >> thing. >> >> The URL is assembled with this line of code: >> >> LINK = getLink( VERSION, MIRROR, SCHEMA ); >> >> The getLink() function calls somewhen the getLanguage() function to get >> the ISO code. So, currently no chance to throw in a "es" term. >> >> But from your patch I can see that you have already found a solution. >> I'm no expert but it looks good. But I think it's possible to make it >> more clean and generic for others. >> >> For example, the getLink() function could be extended to accept an ISO >> code to get forced to assemble a download URL for a specific language: >> >> LINK = getLink( VERSION, LANGUAGE, MIRROR, SCHEMA ); >> >> Then you can include the default CSS (then with the absolute pathes) and >> JS files (the big advantage !), localize the "index.html" and just >> exchange "LANGUAGE" with "es". > > I've added this to the Wiki page for improvements. I've finished this work. Now it's working as described above. I would like to commit this but don't want to rubbish your work on the Spanish webpages. So, please tell when we can come together. Thanks Marcus