Date: prev next · Thread: first prev next last
2010 Archives by date, by thread · List index

Hi Stefan, *,

On Thu, Dec 9, 2010 at 7:46 AM, Stefan Weigel
<> 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:

The result is turned into HTML by this:

The javascript that creates the filtered output is here:
(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
i.e. using  ss.i18n._t('MyEntity.MyNamespace','My default natural
language value');
in the script or just _t(...) in the template.


Unsubscribe instructions: E-mail to
List archive:
*** All posts to this list are publicly archived for eternity ***


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.