Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 123 for ULocale (0.17 sec)

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

                        @Override
                        public List<Map<String, String>> load(final String key) throws Exception {
                            final ULocale uLocale = new ULocale(key);
                            final Locale displayLocale = uLocale.toLocale();
                            final List<Map<String, String>> langItems = new ArrayList<>(supportedLanguages.length);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sun Aug 31 08:19:00 UTC 2025
    - 36.6K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. src/test/java/org/codelibs/fess/helper/LabelTypeHelperTest.java

            assertFalse(labelTypeHelper.matchLocale(Locale.ENGLISH, Locale.JAPANESE));
            assertFalse(labelTypeHelper.matchLocale(Locale.SIMPLIFIED_CHINESE, Locale.TRADITIONAL_CHINESE));
    
            assertTrue(labelTypeHelper.matchLocale(null, Locale.ROOT));
            assertTrue(labelTypeHelper.matchLocale(Locale.ENGLISH, Locale.ROOT));
            assertTrue(labelTypeHelper.matchLocale(Locale.ROOT, Locale.ROOT));
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/io/ResourceBundleUtil.java

         *
         * @param locale the locale
         * @return the {@literal locale} if not {@literal null}, otherwise the default locale
         */
        protected static Locale getLocale(final Locale locale) {
            if (locale != null) {
                return locale;
            }
            return LocaleUtil.getDefault();
        }
    
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessUserLocaleProcessProviderTest.java

            // Execute
            OptionalThing<Locale> result = provider.findBusinessLocale(null, mockRequestManager);
    
            // Verify
            assertTrue(result.isPresent());
            Locale locale = result.get();
            assertEquals("no", locale.getLanguage());
            assertEquals("NO", locale.getCountry());
            assertEquals("NY", locale.getVariant());
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 11K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/convert/NumberConversionUtil.java

         *
         * @param locale
         *            Locale
         * @return Separator for decimal numbers
         */
        public static String findDecimalSeparator(final Locale locale) {
            final DecimalFormatSymbols symbol = getDecimalFormatSymbols(locale);
            return Character.toString(symbol.getDecimalSeparator());
        }
    
        private static DecimalFormatSymbols getDecimalFormatSymbols(final Locale locale) {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/text/DecimalFormatUtil.java

         *
         * @param s
         *            A string representing a number
         * @param locale
         *            The locale. Must not be {@literal null}.
         * @return The normalized string
         */
        public static String normalize(final String s, final Locale locale) {
            assertArgumentNotNull("locale", locale);
    
            if (s == null) {
                return null;
            }
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/misc/LocaleUtil.java

         * @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) {
                    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)
Back to top