Hi Stefan, *,

On Thu, Dec 9, 2010 at 7:46 AM, Stefan Weigel
<stefan.wei...@bildungskreis.org> wrote:
> Am 07.12.2010 07:31, schrieb Stefan Weigel:
>
> Sorry, I can´t translate this particular page, because I do not see
> how its content is managed.

Well - it is automatically generated, thus it doesn't make sense to
duplicate it in the editor window... In the current form it is just
appended to the content from the editor window

> I do not see the published content or
> any code that produces the content in edit mode. And I do not see
> the published contentor any code that produces the content in HTML
> view of the editor, either.

The code that generates the actual list is here:
https://github.com/tdf/cms-code/blob/master/mysite/code/DownloadPage.php

The result is turned into HTML by this:
https://github.com/tdf/cms-themes/blob/master/tdf/templates/Layout/DownloadPage.ss

The javascript that creates the filtered output is here:
https://github.com/tdf/cms-code/blob/master/mysite/javascript/download.js
(but that one is visible from the site as well)

I'm not sure what is the best way to translate it yet. Either by using
hidden paragraphs or divs with the strings and fetch them from there,
or if it is wanted to display strings from different languages from
within the string by calling a different function of the controller
and add it on-the-fly.
Or with the silverstripe way of translating strings (i.e. using the
equivalent of po files in the cms itself
http://api.silverstripe.org/2.4/sapphire/misc/i18n.html#class_details
i.e. using  ss.i18n._t('MyEntity.MyNamespace','My default natural
language value');
in the script or just _t(...) in the template.

ciao
Christian

-- 
Unsubscribe instructions: E-mail to website+h...@libreoffice.org
List archive: http://www.libreoffice.org/lists/website/
*** All posts to this list are publicly archived for eternity ***

Reply via email to