Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for getLocale (0.06 sec)

  1. src/test/java/org/codelibs/core/misc/LocaleUtilTest.java

        /**
         * @throws Exception
         */
        public void testGetLocale() throws Exception {
            assertEquals("1", LocaleUtil.getDefault(), LocaleUtil.getLocale(null));
            assertEquals("2", Locale.JAPANESE, LocaleUtil.getLocale("ja"));
            assertEquals("3", Locale.JAPAN, LocaleUtil.getLocale("ja_JP"));
        }
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/app/web/api/FessApiAction.java

            final FessMessages messages = new FessMessages();
            validationMessagesLambda.message(messages);
            return messageManager.toMessageList(request.getLocale() == null ? Locale.ENGLISH : request.getLocale(), messages).stream()
                    .collect(Collectors.joining(" "));
        }
    
        protected boolean isAccessAllowed() {
            return false;
        }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/io/ResourceBundleUtil.java

         */
        public static final ResourceBundle getBundle(final String name, final Locale locale) {
            assertArgumentNotEmpty("name", name);
    
            try {
                return ResourceBundle.getBundle(name, getLocale(locale));
            } catch (final MissingResourceException ignore) {
                return null;
            }
        }
    
        /**
         * バンドルを返します。 見つからない場合は、<code>null</code>を返します。
         *
         * @param name
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 6K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/es/config/exentity/LabelType.java

        }
    
        public Long getVersionNo() {
            return asDocMeta().version();
        }
    
        public void setVersionNo(final Long version) {
            asDocMeta().version(version);
        }
    
        public Locale getLocale() {
            if (locale == null) {
                if (getValue() == null) {
                    return Locale.ROOT;
                }
                locale = ComponentUtil.getFessConfig().getQueryLocaleFromName(getValue());
            }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/misc/LocaleUtil.java

     */
    public abstract class LocaleUtil {
    
        /**
         * {@link Locale}を返します。
         *
         * @param localeStr
         *            ロケールを表す文字列
         * @return {@link Locale}
         */
        public static Locale getLocale(final String localeStr) {
            // TODO replace with Fess
            Locale locale = LocaleUtil.getDefault();
            if (localeStr != null) {
                final int index = localeStr.indexOf('_');
                if (index < 0) {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/util/QueryStringBuilderTest.java

                }
    
                @Override
                public Object getAttribute(String name) {
                    return null;
                }
    
                @Override
                public Locale getLocale() {
                    return null;
                }
    
                @Override
                public SearchRequestType getType() {
                    return null;
                }
    
                @Override
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 7K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/base/SearchForm.java

        @Override
        public Object getAttribute(final String name) {
            return LaRequestUtil.getOptionalRequest().map(req -> req.getAttribute(name)).orElse(null);
        }
    
        @Override
        public Locale getLocale() {
            return ComponentUtil.getRequestManager().getUserLocale();
        }
    
        @Override
        public SearchRequestType getType() {
            return SearchRequestType.SEARCH;
        }
    
        @Override
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/web/admin/searchlist/ListForm.java

        @Override
        public Object getAttribute(final String name) {
            return LaRequestUtil.getOptionalRequest().map(req -> req.getAttribute(name)).orElse(null);
        }
    
        @Override
        public Locale getLocale() {
            return ComponentUtil.getRequestManager().getUserLocale();
        }
    
        @Override
        public SearchRequestType getType() {
            return SearchRequestType.ADMIN_SEARCH;
        }
    
        @Override
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/entity/SearchRequestParams.java

        public abstract int getPageSize();
    
        public abstract int getOffset();
    
        public abstract String[] getExtraQueries();
    
        public abstract Object getAttribute(String name);
    
        public abstract Locale getLocale();
    
        public abstract SearchRequestType getType();
    
        public abstract String getSimilarDocHash();
    
        public String getTrackTotalHits() {
            return null;
        }
    
        public Float getMinScore() {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/query/QueryCommand.java

            }
            return false;
        }
    
        protected OptionalThing<String[]> getQueryLanguages() {
            return LaRequestUtil.getOptionalRequest().map(request -> ComponentUtil.getFessConfig().getQueryLanguages(request.getLocales(),
                    (String[]) request.getAttribute(Constants.REQUEST_LANGUAGES)));
        }
    
        protected DefaultQueryBuilder buildDefaultQueryBuilder(final FessConfig fessConfig, final QueryContext context,
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 6.5K bytes
    - Viewed (0)
Back to top