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 -N -r1.1.2.1 -r1.1.2.2 --- openacs-4/packages/acs-core-docs/www/i18n-introduction.adp 23 Sep 2015 11:54:33 -0000 1.1.2.1 +++ openacs-4/packages/acs-core-docs/www/i18n-introduction.adp 29 Oct 2015 12:42:23 -0000 1.1.2.2 @@ -78,7 +78,7 @@

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: #forum.title#

  • The verbose: @@ -216,9 +216,9 @@ 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#dotlrn.class_page_home_title#,Simple +2-Column;#dotlrn.class_page_calendar_title#,Simple +1-Column;#dotlrn.class_page_file_storage_title#,Simple 1-Column departments_pretty_name#departments_pretty_name# Index: openacs-4/packages/acs-core-docs/www/i18n-introduction.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/i18n-introduction.html,v diff -u -N -r1.18 -r1.18.2.1 --- openacs-4/packages/acs-core-docs/www/i18n-introduction.html 27 Oct 2014 16:39:19 -0000 1.18 +++ openacs-4/packages/acs-core-docs/www/i18n-introduction.html 29 Oct 2015 12:42:24 -0000 1.18.2.1 @@ -54,7 +54,7 @@

    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# + #forum.title#

  • The verbose: <trn key="package_key.message_key" @@ -197,9 +197,9 @@

    Here are a couple of examples. Say we have the following two 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 1-Column
    departments_pretty_name#departments_pretty_name#

    +

    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 1-Column
    departments_pretty_name#departments_pretty_name#

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

    Command used to retrieve ValueRetrieved Value
    parameter::get -localize -parameter class_instances_pages_csvKurs Startseite,Simple 2-Column;Kalender,Simple 1-Column;Dateien,Simple 1-Column
    parameter::get -localize -parameter departments_pretty_nameAbteilung
    parameter::get -parameter departments_pretty_name#departments_pretty_name#

    +

    Command used to retrieve ValueRetrieved Value
    parameter::get -localize -parameter class_instances_pages_csvKurs Startseite,Simple 2-Column;Kalender,Simple 1-Column;Dateien,Simple 1-Column
    parameter::get -localize -parameter departments_pretty_nameAbteilung
    parameter::get -parameter departments_pretty_name#departments_pretty_name#

    The value in the rightmost column in the table above is the value returned by an invocation of parameter::get. Note that for localization to happen you must use the -localize flag.