smigs (smigs) wrote in s2dev,

  • Mood:

Overriding property descriptions and notes

How do I override property descriptions and notes in s2? The documentation says that i18nc, layout and i18n layers can do this, but I can’t find any examples.

This is for internationalisation purposes; for example, in the core layer there is:
property bool view_entry_disabled {
    des = “Disable customized comment pages for your journal”;

and I’d just liked to change this so that ‘customized’ is spelt with an ‘s’ in the British English i18nc layer - the text is displayed in the customisation wizard ui.

Edit: Another question: can I assign the value of one property to another using the '=' operator? e.g something like this (that will actually work, in a layout layer; I can't test this properly, but it doesn't appear to work):
set date_format = lang_fmt_date_long;

I intend to use this as a workaround for providing localisation to layouts that use their own date/time properties, without breaking user customisations.
  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your IP address will be recorded