Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 163 for localize (0.05 sec)

  1. 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)
  2. 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)
  3. 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)
  4. src/main/webapp/js/admin/plugins/daterangepicker/daterangepicker.js

                if (typeof options.locale.daysOfWeek === 'object')
                    this.locale.daysOfWeek = options.locale.daysOfWeek.slice();
    
                if (typeof options.locale.monthNames === 'object')
                  this.locale.monthNames = options.locale.monthNames.slice();
    
                if (typeof options.locale.firstDay === 'number')
                  this.locale.firstDay = options.locale.firstDay;
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Oct 26 01:49:09 UTC 2024
    - 64.8K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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=\"!@#$%^&*()\"")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 3K bytes
    - Viewed (0)
  8. 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) {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 2K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/core/convert/TimestampConversionUtilTest.java

    import java.util.Date;
    import java.util.Locale;
    import java.util.TimeZone;
    
    import org.codelibs.core.misc.LocaleUtil;
    import org.junit.After;
    import org.junit.Before;
    import org.junit.Test;
    
    /**
     * @author higa
     */
    public class TimestampConversionUtilTest {
    
        @Before
        public void setUp() throws Exception {
            LocaleUtil.setDefault(() -> Locale.JAPANESE);
        }
    
        @After
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  10. 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)
Back to top