diff options
author | wei <> | 2006-02-18 23:41:16 +0000 |
---|---|---|
committer | wei <> | 2006-02-18 23:41:16 +0000 |
commit | 270282e3a26b21184a2051995cb5b9a2755b823d (patch) | |
tree | 761d82ad761996f329d63acc770fc5a0bce9d5a2 /demos/quickstart/protected/pages/Advanced | |
parent | f1cc3c880b564362e7f00b18326e116884879231 (diff) |
Update some javascript code.
Diffstat (limited to 'demos/quickstart/protected/pages/Advanced')
-rw-r--r-- | demos/quickstart/protected/pages/Advanced/I18N.page | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/demos/quickstart/protected/pages/Advanced/I18N.page b/demos/quickstart/protected/pages/Advanced/I18N.page index 1bb5a9a0..db97c25c 100644 --- a/demos/quickstart/protected/pages/Advanced/I18N.page +++ b/demos/quickstart/protected/pages/Advanced/I18N.page @@ -134,6 +134,9 @@ $message = localize("There are {num_users} users online.", array('num_users'=>$n <p>Where the second parameter in <tt>localize</tt> takes an associative array with the key as the substitution to find in the text and replaced it with the associated value.
The <tt>localize</tt> function does not solve the problem of localizing languages that have plural forms, the solution is to use <a href="#choice-format">TChoiceFormat</a>.</p>
+<p>The following sample demonstrates the basics of localization in Prado.</p>
+<com:RunBar PagePath="Advanced.Samples.I18N.Home" />
+
<h1>I18N Components</h1>
<a name="ttranslate"></a>
<h2>TTranslate</h2>
@@ -225,4 +228,5 @@ is "One Apple". If the <tt>Value</tt> was "2", then it will show "Two Apples".</ <p>Any non-empty combinations of the delimiters of square and round brackets are acceptable.
The string chosen for display depends on the <tt>Value</tt> property. The <tt>Value</tt> is evaluated for each set until the <tt>Value</tt> is found to belong to a particular set.</p>
+
</com:TContent>
\ No newline at end of file |