Changeset 2248 for FCKeditor.Java/trunk

Show
Ignore:
Timestamp:
2008-07-21 15:14:11 (5 months ago)
Author:
mosipov
Message:

ASSIGNED - #2361: Provide interface for locale resolution

Location:
FCKeditor.Java/trunk
Files:
6 added
4 modified
1 copied

Legend:

Unmodified
Added
Removed
  • FCKeditor.Java/trunk/java-core/src/main/java/net/fckeditor/localization/impl/JstlResolver.java

    r2234 r2248  
    2929 
    3030/** 
     31 * This implementation maps directly to the JSTL locale mechanism. This is 
     32 * recommended for thos who FMT tags for example. 
    3133 *  
    3234 * @version $Id$ 
    33  * 
     35 *  
    3436 */ 
    3537public class JstlResolver implements LocaleResolver { 
    3638 
     39        /* 
     40         * (non-Javadoc) 
     41         * @see net.fckeditor.localization.LocaleResolver#resolveLocale(javax.servlet.http.HttpServletRequest) 
     42         */ 
    3743        public Locale resolveLocale(HttpServletRequest request) { 
    38                  
     44 
    3945                return (Locale) Config.get(request.getSession(), Config.FMT_LOCALE); 
    4046        } 
  • FCKeditor.Java/trunk/java-core/src/main/java/net/fckeditor/localization/LocaleResolver.java

    r2234 r2248  
    2626 
    2727/** 
     28 * An interface which provides the ability to resolve the current user's locale 
     29 * independently from any framework or direct implementation. 
    2830 *  
    2931 * @version $Id$ 
    30  * 
     32 *  
    3133 */ 
    3234public interface LocaleResolver { 
    33          
     35 
    3436        /** 
    3537         *  
    3638         * @param request 
    37          * @return 
     39         *            The current request instance 
     40         * @return The locale of the user or <code>null</code> if the locale 
     41         *         cannot be resolved 
    3842         */ 
    3943        public Locale resolveLocale(HttpServletRequest request); 
  • FCKeditor.Java/trunk/src/site/apt/installation.apt

    r2213 r2248  
    3333** Using Maven 2 
    3434 
    35    If you have already declared the depedency reference as described in the 
     35   If you have already declared the dependency reference as described in the 
    3636   {{{download.html}download guide}}, Maven has already installed everything for 
    3737   you. Declare the chosen SFL4J binding and corresponding backend (may be optional) 
     
    4949  files for a Java environment. Use the following <<<Ant>>> target on the FCKeditor 
    5050  2.6.2 zip file (1,26 MiB) to create a cleaner and smaller distribution zip file 
    51   (996 KiB). After the minification you can unzip the smaller distribution zip 
     51  (996 KiB). After the reduction you can unzip the smaller distribution zip 
    5252  file into your webapp. 
    5353 
  • FCKeditor.Java/trunk/src/site/apt/int_overview.apt

    r2213 r2248  
    2424Overview 
    2525 
    26   The Java integration pack consists of two main components: 
     26  The Java integration can be integrated in several systems and frameworks: 
    2727 
    2828  * <<JSP tag library>>: Easy integration of the FCKeditor in your JSPs. 
     
    3030  * <<Connector>>: A servlet to manage resources like images, documents, and other 
    3131    files. 
     32     
     33  * <<Velocity/FreeMarker>>: This library is suitable to be integrated into a 
     34    template engine. 
    3235 
    3336  [] 
    3437 
    35   Please read the integration parts carefully! Both the tag library and the connector 
    36   have been completely restructured. 
     38  Please read the integration parts carefully if you intend to deploy the FCKeditor 
     39  in a particular system! 
  • FCKeditor.Java/trunk/src/site/site.xml

    r2212 r2248  
    2626                </menu> 
    2727                <menu name="Integration"> 
    28                         <item name="Overview" href="/overview.html" /> 
     28                        <item name="Overview" href="/int_overview.html" /> 
    2929                        <item name="Tag library" 
    3030                                href="/taglibrary.html" 
     
    3232                        <item name="Connector" href="/connector.html" /> 
    3333                        <item name="Velocity/FreeMarker" href="/velocity_freemarker.html"/> 
     34                </menu> 
     35                <menu name="Extending the Library"> 
     36                        <item name="Overview" href="ext_overview.html"/> 
     37                        <item name="UserAction" /> 
     38                        <item name="UserPathBuilder" /> 
     39                        <item name="I18n" href="/i18n.html" /> 
    3440                </menu> 
    3541                <menu name="Reference">