Index: openacs-4/packages/acs-core-docs/www/i18n-introduction.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/i18n-introduction.adp,v diff -u -r1.1.2.5 -r1.1.2.6 --- openacs-4/packages/acs-core-docs/www/i18n-introduction.adp 15 Dec 2015 08:04:04 -0000 1.1.2.5 +++ openacs-4/packages/acs-core-docs/www/i18n-introduction.adp 9 Jun 2016 08:44:49 -0000 1.1.2.6 @@ -78,7 +78,8 @@

The short: #package_key.message_key#

The advantage of the short syntax is that it's short. It's as -simple as inserting the value of a variable. Example: #forum.title# +simple as inserting the value of a variable. Example: +<span>#</span>forum.title#

  • The verbose: @@ -209,23 +210,25 @@ use message keys using the short notation above, i.e. #package_key.message_key#.

    In order to avoid clashes with other uses of the hash character, you need to tell the APM that the parameter value needs to be localized when retrieving it. You do that by saying: parameter::get -localize.

    Here are a couple of examples. Say we have the following two -parameters, taken directly from the dotlrn package.

    +parameters, taken directly from the dotlrn package.

    - - +
    Parameter NameParameter Value
    class_instance_pages_csv#dotlrn.class_page_home_title#,Simple -2-Column;#dotlrn.class_page_calendar_title#,Simple -1-Column;#dotlrn.class_page_file_storage_title#,Simple +class_instance_pages_csv +<span>#</span>dotlrn.class_page_home_title#,Simple +2-Column;<span>#</span>dotlrn.class_page_calendar_title#,Simple +1-Column;<span>#</span>dotlrn.class_page_file_storage_title#,Simple 1-Column
    departments_pretty_name#departments_pretty_name#departments_pretty_name +<span>#</span>departments_pretty_name#

    Then, depending on how we retrieve the value, here's what we -get:

    +get:

    @@ -239,7 +242,8 @@ - +
    parameter::get -localize -parameter departments_pretty_nameAbteilung
    parameter::get -parameter departments_pretty_name#departments_pretty_name#parameter::get -parameter departments_pretty_name +<span>#</span>departments_pretty_name#

    The value in the rightmost column in the table above is the