You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

This work in in progress. So, expect further changes.

General

Even when the website for Apache OpenOffice looks like that everything is in a single place, the website is separated in a constant part (mainly the text in HTML and MD files) and an asset part (for graphics, CSS, JavaScript).

When it should be translated, then both parts have to be considered.

The website is separated into 3 sections:

Header

From the top with the Apache OpenOffice logo down to the colored navigation line.

Body

From the vertical navigation links and the news text down to the horizontal line

From the horizontal line down to the Apache logo and disclaimer links and text.

Template

There is a template to look at: https://www.openoffice.org/xx/ Here you can see which areas can be translated.

Text is managed dynamically

Parts of the header and the complete footer is not designed for translation, so it stays as it is.

Preferred parts are - of course the main page (index.html), download and why. But also the other pages can be translated.

In order to work with data that can be changed dynamically (e.g., when new releases happen), some parts are only working when HTML and JavaScript parts are translated together.

Example for dynamic

The content of the drop-down-boxes on https://www.openoffice.org/xx/download/ is coming from https://www.openoffice.org/xx/download/msg_prop_l10n_xx.js 

Every text has 2 parts: A variable and it's actual value.

Example for variable / value

The text string "Apache OpenOffice Download" on the webpage Download is coming from the file .../xx/download/msg_prop_l10n_xx.js:

Variable "l10n.dl_headline_text" and value "Apache OpenOffice Download". There are some control characters like  sum (=) and the semicolon (;). Please make sure not to delete or change them. Otherwise, unforeseen problems can happen.


However, not every text can be managed with JavaScript. Especially when JavaScript is no option, it is still hard-coded in the HTML files.

What to do when translating the ... ?

Header

tbd

Main page

The strings in the following files need to be translated:

https://www.openoffice.org/xx/index.html

Download

tbd

Why

tbd

  • No labels