Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 77 for localize (0.08 seconds)

  1. src/test/java/org/codelibs/core/convert/CalendarConversionUtilTest.java

            final Calendar local = CalendarConversionUtil.localize(calendar);
            assertEquals(TimeZone.getDefault(), local.getTimeZone());
        }
    
        /**
         * Test method for
         * {@link org.codelibs.core.convert.CalendarConversionUtil#localize(Calendar)}
         * .
         */
        @Test
        public void testCreateAndCopySrcNull() {
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat May 10 01:32:17 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/core/convert/CalendarConversionUtil.java

            }
            return null;
        }
    
        /**
         * Converts to a {@link Calendar} with the local {@link TimeZone} and {@link Locale}.
         *
         * @param calendar
         *            {@link Calendar}
         * @return The converted {@link Calendar}
         */
        public static Calendar localize(final Calendar calendar) {
            assertArgumentNotNull("calendar", calendar);
            final Calendar localCalendar = Calendar.getInstance();
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/app/web/api/FessApiAction.java

        }
    
        /**
         * Converts validation messages to a localized string representation for API responses.
         * Uses the request locale if available, otherwise defaults to English.
         *
         * @param validationMessagesLambda lambda function that adds validation messages
         * @return concatenated string of localized validation messages separated by spaces
         */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Aug 07 03:06:29 GMT 2025
    - 4.8K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/exception/InvalidQueryException.java

        private static final long serialVersionUID = 1L;
    
        /** Message code for localized error messages */
        private final transient VaMessenger<FessMessages> messageCode;
    
        /**
         * Creates a new InvalidQueryException with message code, message, and cause.
         *
         * @param messageCode the message code for localized error messages
         * @param message the detailed error message
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 2.3K bytes
    - Click Count (0)
  5. 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();
        }
    
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 5.3K bytes
    - Click Count (0)
  6. 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) {
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 5.6K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/core/text/DecimalFormatSymbolsUtil.java

         * Returns {@link DecimalFormatSymbols}.
         *
         * @param locale
         *            The locale. Must not be {@literal null}.
         * @return {@link DecimalFormatSymbols}
         */
        public static DecimalFormatSymbols getDecimalFormatSymbols(final Locale locale) {
            assertArgumentNotNull("locale", locale);
    
            DecimalFormatSymbols symbols = CACHE.get(locale);
            if (symbols == null) {
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 2K bytes
    - Click Count (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/MediaTypeJvmTest.kt

        }
      }
    
      private fun <T> withLocale(
        locale: Locale,
        block: () -> T,
      ): T {
        val previous = Locale.getDefault()
        try {
          Locale.setDefault(locale)
          return block()
        } finally {
          Locale.setDefault(previous)
        }
      }
    
      @Test fun testIllegalCharsetName() {
        val mediaType = parse("text/plain; charset=\"!@#$%^&*()\"")
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Dec 27 13:39:56 GMT 2024
    - 3K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/opensearch/config/exentity/LabelType.java

            asDocMeta().version(version);
        }
    
        public Locale getLocale() {
            if (locale == null) {
                if (getValue() == null) {
                    return Locale.ROOT;
                }
                locale = ComponentUtil.getFessConfig().getQueryLocaleFromName(getValue());
            }
            return locale;
        }
    
        @Override
        public String toString() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 15 06:53:53 GMT 2025
    - 1.9K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/core/misc/LocaleUtil.java

            case 1:
                return new Locale(parts[0]);
            case 2:
                return new Locale(parts[0], parts[1]);
            case 3:
                return new Locale(parts[0], parts[1], parts[2]);
            default:
                return LocaleUtil.getDefault();
            }
        }
    
        private static Supplier<Locale> defaultLocaleSupplier;
    
        /**
         * Returns the default locale.
         *
         * @return the default locale
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Feb 12 12:10:45 GMT 2026
    - 2.3K bytes
    - Click Count (0)
Back to Top