You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltaspike.apache.org by gp...@apache.org on 2012/12/30 14:31:19 UTC

svn commit: r1426936 - /incubator/deltaspike/site/trunk/content/deltaspike/I18n.mdtext

Author: gpetracek
Date: Sun Dec 30 13:31:19 2012
New Revision: 1426936

URL: http://svn.apache.org/viewvc?rev=1426936&view=rev
Log:
cleanup

Modified:
    incubator/deltaspike/site/trunk/content/deltaspike/I18n.mdtext

Modified: incubator/deltaspike/site/trunk/content/deltaspike/I18n.mdtext
URL: http://svn.apache.org/viewvc/incubator/deltaspike/site/trunk/content/deltaspike/I18n.mdtext?rev=1426936&r1=1426935&r2=1426936&view=diff
==============================================================================
--- incubator/deltaspike/site/trunk/content/deltaspike/I18n.mdtext (original)
+++ incubator/deltaspike/site/trunk/content/deltaspike/I18n.mdtext Sun Dec 30 13:31:19 2012
@@ -22,7 +22,8 @@ Notice:    Licensed to the Apache Softwa
 
 The following implementation is the minimal effort to use type-safe messages (which are hardcoded in this case).
 
-    Simple type-safe message
+**Simple type-safe message**
+
     @MessageBundle
     public interface SimpleMessage
     {
@@ -32,7 +33,8 @@ The following implementation is the mini
 
 The following implementation uses the key `welcome_to_deltaspike` to do a lookup in the default message bundle. The default bundle has the same name as the interface (but .properties instead of .java (/.class) as file extension).
 
-    Internationalized type-safe message
+**Internationalized type-safe message**
+
     @MessageBundle
     public interface SimpleMessage
     {
@@ -54,7 +56,8 @@ The following implementation uses the ke
 
 The following implementation uses the key {{welcome_to_deltaspike}} to do a lookup in a custom message bundle known by {{CustomMessageResolver}}.
 
-    Internationalized type-safe message
+**Internationalized type-safe message**
+
     @MessageBundle
     @MessageContextConfig(messageResolver = CustomMessageResolver.class)
     public interface SimpleMessage
@@ -67,7 +70,8 @@ The following implementation uses the ke
 
 The following implementation shows the usage of an internationalized simple type-safe message.
 
-    Internationalized type-safe message with parameter/s
+**Internationalized type-safe message with parameter/s**
+
     @MessageBundle
     @MessageContextConfig(messageInterpolator = CustomMessageInterpolator.class)
     public interface SimpleMessage
@@ -115,7 +119,8 @@ A message-resolver is responsible for cr
 (The supported format e.g. if it's required to escape a key, if inline-text is supported,... depends on the concrete implementation.)
 In case of a message-key, the message-resolver has to transform it to the message-text by looking it up in a message source like a resource-bundle. The JSF module of MyFaces CODI will provide a default implementation which uses the configured application message bundle as message source. However, usually it's required to provide an implementation in every project (because the impl. is aware of the message-source).
 
-    Configuration of a message-resolver|borderStyle=solid
+**Configuration of a message-resolver**
+
     context.config().change().messageResolver(new CustomMessageResolver());
 
     Hint
@@ -128,7 +133,8 @@ The result of a {{MessageResolver}} is t
 
 A {{MessageInterpolator}} replaces the placeholders in a message-text with the arguments of the message. MyFaces CODI supports numbered- and named-arguments. However, it's possible to provide a custom {{MessageInterpolator}}.
 
-    Configuration of a message-interpolator|borderStyle=solid
+**Configuration of a message-interpolator**
+
     context.config().change().messageResolver(new CustomMessageInterpolator());
 
     Hint
@@ -138,10 +144,12 @@ A {{MessageInterpolator}} replaces the p
 
 A locale resolver provides the current locale. The locale is e.g. used to by a {{MessageResolver}} to choose the correct language for the message-text. The JSF module of MyFaces CODI provides a {{LocaleResolver}} which uses the locale of the current view(-root) (if a {{FacesContext}} is available).
 
-    Configuration of a locale-resolver|borderStyle=solid
+**Configuration of a locale-resolver**
+
     context.config().change().localeResolver(new CustomLocaleResolver());
 
-    Configuration of a message-handler|borderStyle=solid
+**Configuration of a message-handler**
+
     context.config().change().addMessageHandler(new CustomMessageHandler());
 
     Info