From 75583383a6c00704837a753741abfc049dcc5a90 Mon Sep 17 00:00:00 2001 From: xue <> Date: Sun, 24 Sep 2006 02:20:54 +0000 Subject: Merge from 3.0 branch till 1443. --- demos/quickstart/protected/pages/Advanced/I18N.page | 2 ++ .../protected/pages/Configurations/UrlMapping.page | 18 +++++++++++++----- 2 files changed, 15 insertions(+), 5 deletions(-) (limited to 'demos/quickstart') diff --git a/demos/quickstart/protected/pages/Advanced/I18N.page b/demos/quickstart/protected/pages/Advanced/I18N.page index 1330091f..9c3d620f 100644 --- a/demos/quickstart/protected/pages/Advanced/I18N.page +++ b/demos/quickstart/protected/pages/Advanced/I18N.page @@ -40,6 +40,7 @@ First you need to include the System.I18N.* namespace to your paths. @@ -48,6 +49,7 @@ First you need to include the System.I18N.* namespace to your paths. where you are going to store your translate message catalogue. The autosave attribute if enabled, saves untranslated messages back into the message catalogue. With cache enabled, translated messages are saved in the application runtime/i18n directory. +The marker value is used to surround any untranslated text.

With the configuration complete, we can now start to localize your application. If you have autosave enabled, after running your application with some localization activity (i.e. translating some text), you will see a directory and a messages.xml created within your source directory.

diff --git a/demos/quickstart/protected/pages/Configurations/UrlMapping.page b/demos/quickstart/protected/pages/Configurations/UrlMapping.page index 22cb866a..dde6854f 100644 --- a/demos/quickstart/protected/pages/Configurations/UrlMapping.page +++ b/demos/quickstart/protected/pages/Configurations/UrlMapping.page @@ -20,13 +20,21 @@ file and before any services.

The mapping format is as follows. - +

-

The PageClass set the name of class that the matched URL will -be requested.

The Pattern and Parameters attribute +

The ServiceParameter and ServiceID + (the default ID is 'page') set the service parameter and service ID respectively. + The service parameter for the TPageService service is the + Page class name, e.g., for an URL "index.php?page=Home", "page" is the service ID and the service + parameter is "Home". Other services may use the service parameter and ID differently. +See Services for further details. +

+ +

+The Pattern and Parameters attribute values are regular expression patterns that determine the mapping criteria. The Pattern property takes a regular expression with parameter names enclosed between a left brace '{' @@ -34,13 +42,13 @@ and a right brace '}'. The pattens for each parameter can be set using Parametersattribute collection. For example, -

The example is equivalent, using regular expression only, to - + \d{4})/(?P\d{2})/(?P\d+) ]]> -- cgit v1.2.3