[cal10n-dev] branch, master, updated. v0.7-4-gdadab94

added by portage for gitosis-gentoo git-noreply at pixie.qos.ch
Wed Sep 30 13:28:16 CEST 2009


The branch, master has been updated
       via  dadab94765a9b1d1ff7d26857d1526ce1399b12b (commit)
      from  3bf3a51c435bcb81c08f7a28fe97aecdac34b378 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.qos.ch/gitweb/?p=cal10n.git;a=commit;h=dadab94765a9b1d1ff7d26857d1526ce1399b12b
http://github.com/ceki/cal10n/commit/dadab94765a9b1d1ff7d26857d1526ce1399b12b

commit dadab94765a9b1d1ff7d26857d1526ce1399b12b
Author: Ceki Gulcu <ceki at qos.ch>
Date:   Wed Sep 30 13:26:58 2009 +0200

    - added doc on parameter substitution. This fixes http://jira.qos.ch/browse/CAL-7

diff --git a/cal10n-site/src/site/pages/manual.html b/cal10n-site/src/site/pages/manual.html
index 3591d03..7ddf115 100644
--- a/cal10n-site/src/site/pages/manual.html
+++ b/cal10n-site/src/site/pages/manual.html
@@ -144,11 +144,20 @@ IMessageConveyor mc = new MessageConveyor(Locale.FRANCE);
 
 // use it to retrieve internationalized messages
 String red = mc.getMessage(Colors.RED);
-String blue = mc.getMessage(Colors.BLUE);  </pre>
+String blue = mc.getMessage(Colors.BLUE);  
+String green = mc.getMessage(Colors.GREEN, <b>"pommes"</b>);  // note the second argument
+</pre>
 
   <p>CAL10N leverages the existing resource bundle infrastructure you
-  have been accustomed to, but adds compiler verification on top.</p>
-
+  have been accustomed to, but adds compiler verification on top. The
+  default <a
+  href="apidocs/ch/qos/cal10n/IMessageConveyor.html">IMessageConveyor</a>
+  implementation, namely <a
+  href="apidocs/ch/qos/cal10n/MessageConveyor.html">MessageConveyor</a>,
+  uses the standard Java convention for parameter substitution as
+  defined by the <a
+  href="http://java.sun.com/j2se/1.5.0/docs/api/java/text/MessageFormat.html">java.text.MessageFormat</a>
+  class.</p>
 
   <p>An astute reader will comment that even if the messages keys are
   now verified by the compiler, it is still possible to have

-----------------------------------------------------------------------

Summary of changes:
 cal10n-site/src/site/pages/manual.html |   15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
Compiler assisted localization library


More information about the cal10n-dev mailing list