Skip to content

Omeka S module that provides a view helper for allowing users to change the locale

License

Notifications You must be signed in to change notification settings

biblibre/omeka-s-module-LocaleSwitch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Locale Switch

Locale Switch is an Omeka S module that provides a view helper for allowing users to change the locale. The chosen locale is then stored inside user's session.

Usage

Enable the module then add this into your theme:

<?php
    echo $this->localeSwitch([
        'en' => $this->translate('English'),
        'fr' => $this->translate('French'),
        /* ... */
    ]);
?>

You can customize the HTML output of the view helper by overriding locale-switch/helper/locale-switch.phtml