Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for setLanguage (0.45 sec)

  1. src/test/java/org/codelibs/fess/helper/SearchHelperTest.java

        }
    
        // Test getLanguages method
        public void test_getLanguages_fromParams() {
            SearchRequestParams params = createMockSearchRequestParams();
            ((MockSearchRequestParams) params).setLanguages(new String[] { "en", "ja" });
    
            try {
                String[] languages = searchHelper.getLanguages(getMockRequest(), params);
    
                assertNotNull(languages);
                if (languages.length > 0) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 18.9K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/helper/LabelTypeHelper.java

            if (targetLocale.equals(requestLocale) || targetLocale.equals(Locale.ROOT)) {
                return true;
            }
            if (requestLocale == null || !requestLocale.getLanguage().equals(targetLocale.getLanguage())
                    || targetLocale.getCountry().length() > 0 && !requestLocale.getCountry().equals(targetLocale.getCountry())) {
                return false;
            }
            return true;
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 14.8K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/helper/SearchLogHelper.java

                }
                final Object languages = req.getAttribute(Constants.REQUEST_LANGUAGES);
                if (languages != null) {
                    searchLog.setLanguages(StringUtils.join((String[]) languages, ","));
                } else {
                    searchLog.setLanguages(StringUtil.EMPTY);
                }
    
                @SuppressWarnings("unchecked")
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 26.3K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/helper/LanguageHelper.java

            if (logger.isDebugEnabled()) {
                logger.debug("detected lang:{}({}) from {}", result, result.getRawScore(), target);
            }
            return getSupportedLanguage(result.getLanguage());
        }
    
        /**
         * Returns the text to be used for language detection.
         *
         * @param text The original text.
         * @return The text for language detection.
         */
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessUserLocaleProcessProviderTest.java

            // Verify
            assertTrue(result.isPresent());
            Locale locale = result.get();
            assertEquals("no", locale.getLanguage());
            assertEquals("NO", locale.getCountry());
            assertEquals("NY", locale.getVariant());
        }
    
        // Test findBusinessLocale with case sensitivity
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 11K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/helper/SystemHelper.java

                return null;
            }
            String target = null;
            final Locale locale = ComponentUtil.getRequestManager().getUserLocale();
            if (locale != null) {
                final String lang = locale.getLanguage();
                if (ComponentUtil.getFessConfig().isOnlineHelpSupportedLang(lang)) {
                    target = lang.toUpperCase(Locale.ROOT);
                }
            }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sun Aug 31 08:19:00 UTC 2025
    - 36.6K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/taglib/FessFunctions.java

                    if (req.getAttribute(LastaWebKey.USER_LOCALE_KEY) instanceof Locale locale) {
                        return locale;
                    }
                    return Locale.ENGLISH;
                }).orElse(Locale.ENGLISH).getLanguage() + "\">";
            }
            return "</html>";
        }
    
        /**
         * Checks if a label with the specified key exists in the current request's label map.
         *
         * @param value the label key to check
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 25.3K bytes
    - Viewed (1)
  8. src/main/java/org/codelibs/fess/mylasta/direction/FessProp.java

                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)) {
                    if (StringUtil.isNotBlank(country)) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 86.5K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/helper/ViewHelper.java

         * @return the localized page path
         */
        public String getPagePath(final String page) {
            final Locale locale = ComponentUtil.getRequestManager().getUserLocale();
            final String lang = locale.getLanguage();
            final String country = locale.getCountry();
    
            final String pathLC = getLocalizedPagePath(page, lang, country);
            final String pLC = pageCacheMap.get(pathLC);
            if (pLC != null) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 52.4K bytes
    - Viewed (0)
Back to top