Refactor SimpleSAML_XHTML_Template
A template now has a translator-object, SimpleSAML_Locale_Translate. This handles the existing translation system. The translator has a language-object, SimpleSAML_Locale_Language. This handles discovery and switching of locale. SimpleSAML_XHTML_Template has several methods that are wrapped translator-methods: t() isLanguageRTL() getLanguageList() getTranslation() This way it isn't necessary to change much of the existing system.
Showing
- config-templates/config.php 2 additions, 2 deletionsconfig-templates/config.php
- lib/SimpleSAML/Locale/Language.php 230 additions, 0 deletionslib/SimpleSAML/Locale/Language.php
- lib/SimpleSAML/Locale/Translate.php 400 additions, 0 deletionslib/SimpleSAML/Locale/Translate.php
- lib/SimpleSAML/XHTML/Template.php 12 additions, 558 deletionslib/SimpleSAML/XHTML/Template.php
- modules/core/lib/Auth/Process/LanguageAdaptor.php 2 additions, 2 deletionsmodules/core/lib/Auth/Process/LanguageAdaptor.php
- templates/includes/attributes.php 1 addition, 1 deletiontemplates/includes/attributes.php
- templates/includes/header.php 1 addition, 1 deletiontemplates/includes/header.php
Loading
Please register or sign in to comment