Hi Stefan, *,
On Thu, Dec 9, 2010 at 7:46 AM, Stefan Weigel
<stefan.weigel@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+help@libreoffice.org
List archive: http://www.libreoffice.org/lists/website/
*** All posts to this list are publicly archived for eternity ***
Context
- Re: [libreoffice-website] Re: Download page changed? (continued)
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.