add_translation_source

Translation-related functions

Summary

add_translation_source(string $dir)

Add an translation source directory.

The directory’s contents should be .mo files following the naming scheme ofOmeka’s application/languages directory. If a .mo for the current localeexists, the translations will be loaded.

Parameters:
  • $dir (string) – Directory from which to load translations.

Usage

Examples

See Also

Project Versions

Table Of Contents

Previous topic

__ (double underscore)

Next topic

get_html_lang

This Page