Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 138 for locales (0.06 sec)

  1. src/main/java/org/codelibs/fess/helper/SearchHelper.java

                final Set<String> langSet = new HashSet<>();
                final Enumeration<Locale> locales = request.getLocales();
                if (locales != null) {
                    while (locales.hasMoreElements()) {
                        final Locale locale = locales.nextElement();
                        final String normalizeLang = systemHelper.normalizeLang(locale.toString());
                        if (normalizeLang != null) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 35.8K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessListedClassificationProviderTest.java

            // Test with various locale configurations
            Locale[] testLocales = { Locale.US, Locale.UK, Locale.CANADA, Locale.FRANCE, Locale.CHINA, Locale.KOREA, new Locale("es", "ES"),
                    new Locale("pt", "BR") };
    
            for (Locale locale : testLocales) {
                OptionalThing<String> result = provider.determineAlias(locale);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/mylasta/direction/FessProp.java

                return normalizeQueryLanguages(requestLangs);
            }
    
            if (locales == null) {
                return StringUtil.EMPTY_STRINGS;
            }
    
            return normalizeQueryLanguages(Collections.list(locales).stream().map(locale -> {
                final String language = locale.getLanguage();
                final String country = locale.getCountry();
                if (StringUtil.isNotBlank(language)) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 86.5K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/helper/LabelTypeHelper.java

            /**
             * Returns the locale.
             *
             * @return The locale.
             */
            public Locale getLocale() {
                return locale;
            }
    
            /**
             * Sets the locale.
             *
             * @param locale The locale.
             */
            public void setLocale(final Locale locale) {
                this.locale = locale;
            }
        }
    
        /**
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 14.8K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/helper/SystemHelper.java

            try {
                final String localeStr = locale.toString();
                return langItemsCache.get(localeStr);
            } catch (final ExecutionException e) {
                final List<Map<String, String>> langItems = new ArrayList<>(supportedLanguages.length);
                final String msg = ComponentUtil.getMessageManager().getMessage(locale, "labels.allLanguages");
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sun Aug 31 08:19:00 UTC 2025
    - 36.6K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/misc/LocaleUtil.java

         */
        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) {
                    locale = new Locale(localeStr);
                } else {
                    final String language = localeStr.substring(0, index);
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/mylasta/direction/FessPropTest.java

                }
            };
    
            assertEquals(Locale.ROOT, fessConfig.getQueryLocaleFromName(null));
            assertEquals(Locale.ROOT, fessConfig.getQueryLocaleFromName(""));
            assertEquals(Locale.ROOT, fessConfig.getQueryLocaleFromName("ja"));
            assertEquals(Locale.JAPANESE, fessConfig.getQueryLocaleFromName("test_ja"));
            assertEquals(Locale.CHINESE, fessConfig.getQueryLocaleFromName("test_zh"));
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 13K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/convert/TimeConversionUtil.java

         *
         * @param locale
         *            Locale. Must not be {@literal null}.
         * @return the pattern string for {@link DateFormat#MEDIUM} style
         */
        public static String getMediumPattern(final Locale locale) {
            assertArgumentNotNull("locale", locale);
            return ((SimpleDateFormat) getTimeInstance(MEDIUM, locale)).toPattern();
        }
    
        /**
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 20.3K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/convert/TimestampConversionUtil.java

         *
         * @param locale
         *            Locale. Must not be {@literal null}.
         * @return the pattern string for {@link DateFormat#MEDIUM} style
         */
        public static String getMediumPattern(final Locale locale) {
            assertArgumentNotNull("locale", locale);
            return ((SimpleDateFormat) getDateTimeInstance(MEDIUM, MEDIUM, locale)).toPattern();
        }
    
        /**
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 20.6K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/convert/DateConversionUtil.java

         *
         * @param locale the locale (must not be {@literal null})
         * @return the pattern string for {@link DateFormat#MEDIUM} style
         */
        public static String getMediumPattern(final Locale locale) {
            assertArgumentNotNull("locale", locale);
            return ((SimpleDateFormat) getDateInstance(MEDIUM, locale)).toPattern();
        }
    
        /**
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 19.6K bytes
    - Viewed (0)
Back to top