Interface SGlobalizationSettings

All Known Implementing Classes:
DefaultGlobalizationSettings

public interface SGlobalizationSettings
Provides locale-specific settings for formula function names, number/date formatting, and display strings used in pivot tables and summaries.

Implementations allow Keikai to support localized formula entry and display, e.g., using SOMME instead of SUM in French locale.

Since:
7.0.0
  • Method Details

    • getLocalFunctionName

      String getLocalFunctionName(String standardName)
      Translates a standard (English) function name to the local function name.
      Parameters:
      standardName - the English function name (e.g., "SUM", "VLOOKUP")
      Returns:
      the localized function name, or the standard name if no translation exists
    • getStandardFunctionName

      String getStandardFunctionName(String localName)
      Translates a local function name back to the standard (English) function name.
      Parameters:
      localName - the localized function name
      Returns:
      the standard English function name, or the local name if no translation exists
    • getLocale

      Locale getLocale()
      Returns the locale associated with these settings.
      Returns:
      the locale
    • getDecimalFormatSymbols

      DecimalFormatSymbols getDecimalFormatSymbols()
      Returns the decimal format symbols for this locale, controlling decimal separator, grouping separator, etc.
      Returns:
      the decimal format symbols
    • getDateFormatSymbols

      DateFormatSymbols getDateFormatSymbols()
      Returns the date format symbols for this locale, controlling month names, day names, AM/PM strings, etc.
      Returns:
      the date format symbols
    • getBooleanString

      String getBooleanString(boolean value)
      Returns the localized string representation of a boolean value.
      Parameters:
      value - the boolean value
      Returns:
      "TRUE" or "FALSE" (or localized equivalents)
    • getTotalString

      String getTotalString()
      Returns the localized string for "Total", used in pivot table subtotals.
      Returns:
      the total string
    • getGrandTotalString

      String getGrandTotalString()
      Returns the localized string for "Grand Total", used in pivot table grand totals.
      Returns:
      the grand total string