Tobago Demo

Menu

Locale

Tobago supports internationalization and localization.
  • Unicode is used internally.
  • Content in different languages can be provided by resource bundles.
  • Like content, images and scripts can be localized.
Some content of the demo is not translated!

The localization of JSF works with Java resource bundles. These bundles needs to be definded in the faces-config.xml under the section <resource-bundle>.

The image url will be evaluated by the Java Bean LocaleController.

Tobago comes with a resource bundle org.apache.myfaces.tobago.context.TobagoResourceBundle mapped to tobagoResourceBundle. This bundle contails translated text fragments used by Tobago e. g. for label of components. It's easy to expand this bundle to support more languages.

The next table shows the keys and the translation with the locale of the current session. The locale can be changed with the selector above.

KeyValue
sheet.setPageClick here, to change the displayed page
sheet.emptyNo rows available
sheet.prevPrevious Page
severity.errorError
alert.closeClose
sheet.nextNext Page
sheet.pageXPage {0}
severity.fatalFatal
help.titleHelp
sheet.selectAllSelect all
sheet.rowXRow {0}
sheet.rowXofZRow {0} of {2}
date.weekWeek
sheet.descendingDescending
sheet.rowXtoYofZRows {0} to {1} of {2}
severity.infoInformation
date.todayToday
sheet.selectRowSelect row
sheet.toPagePage {0}
sheet.pageXtoYPage {0}
sheet.setRowClick here, to change the first displayed row
date.nowNow
date.cancelCancel
sheet.lastLast Page
file.maxSizeMessageThe selected file exceeds the maximum allowed size of {0} bytes.
sheet.firstFirst Page
sheet.rowXtoYRows {0} to {1}
page.noscriptThis site requires JavaScript, but JavaScript is currently not activated in your browser. To enable JavaScript you may consult your browsers the documentation.
date.clearClear
severity.warnWarning
bar.toggleNavigationToggle navigation
sheet.ascendingAscending
sheet.sortingClick to sort this column
toast.closeClose
sheet.pageXtoYofZPage {0} of {1}
sheet.pageXofZPage {0} of {1}
object.noframeYour user agent does not support frames or is currently configured not to display frames. However, you may visit the related document manually:
Tobago comes with a message bundle for Tobago specific (info/warn/error) messages.
KeyValue
org.apache.myfaces.tobago.FileItemValidator.CONTENT_TYPE_detailThe given file is not content type of ''{0}''.
org.apache.myfaces.tobago.FileItemValidator.CONTENT_TYPEContent type error
org.apache.myfaces.tobago.FileItemValidator.SIZE_LIMITFile too large
org.apache.myfaces.tobago.UISheet.SORTINGSorting not possible!
org.apache.myfaces.tobago.UISelectOne.REQUIREDSelection required
org.apache.myfaces.tobago.FileItemValidator.SIZE_LIMIT_detailThe uploaded file exceeded the maximum size of {0} bytes.
org.apache.myfaces.tobago.UISheet.SORTING_COLCan't sort the column ''{0}''!
© 2005-2024 Apache Software Foundation, Licensed under the Apache License, Version 2.0.