Omeka Logo
latest
  • What’s new in Omeka
  • Tutorials
  • Reference
    • Global (Theming) Functions
    • Hooks
    • Filters
    • models
    • views/helpers
    • controllers
    • Packages
      • Acl
      • Application
      • Auth
      • Captcha
      • Controller
      • Db
      • File\Derivative
      • Filter
      • Form
      • Global Functions
        • Db-related functions
        • Locale-related functions
        • Log-related functions
        • Plugin-related functions
        • Search-related functions
        • Text-related functions
        • User-related functions
        • Utility-related functions
        • View-related functions
      • Http
      • Install
      • Job
      • Navigation
      • Output
      • Plugin
      • Record
      • Session
      • Storage
      • Test
      • Validate
      • View
    • libraries/Omeka
    • Omeka REST API
  • Helping With Documentation
  • Registering a new module or theme with omeka.org
Omeka
  • Docs »
  • Reference »
  • Global (Theming) Functions »
  • Global Functions »
  • Locale-related functions
  • Edit on GitHub

Locale-related functions¶

Up to Global Functions

  • __ (double underscore) — Translate a string.
  • add_translation_source — Add an translation source directory.
  • format_date — Format a date for output according to the current locale.
  • get_html_lang — Get the HTML “lang” attribute for the current locale.
  • plural — Transform arguments in an array suitable for __.
Next Previous

© Copyright 2012-2021, Omeka Revision 6a14de17.

Built with Sphinx using a theme provided by Read the Docs.
Read the Docs v: latest
Versions
latest
stable
stable-2.2
stable-2.1
stable-2.0
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.