0byt3m1n1
Path:
/
data
/
applications
/
aps
/
tikiwiki
/
14.1-0
/
standard
/
htdocs
/
lib
/
prefs
/
[
Home
]
File: language.php
<?php // (c) Copyright 2002-2015 by authors of the Tiki Wiki CMS Groupware Project // // All Rights Reserved. See copyright.txt for details and a complete list of authors. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. // $Id: language.php 53803 2015-02-06 00:42:50Z jyhem $ function prefs_language_list($partial = false) { $map = array(); if (! $partial) { $languages = TikiLib::lib('tiki')->list_languages(false, null, true); foreach ( $languages as $lang ) { $map[ $lang['value'] ] = $lang['name']; } } return array( 'language' => array( 'name' => tra('Default language'), 'description' => tra('Site language used when no other language is specified by the user.'), 'filter' => 'lang', 'help' => 'I18n', 'type' => 'list', 'options' => $map, 'default' => 'en', 'tags' => array('basic'), ), 'language_inclusion_threshold' => array( 'name' => tra('Language inclusion threshold'), 'description' => tra('When the number of languages is restricted on the site, and is below this number, all languages will be added to the preferred language list, even if unspecified by the user. However, priority will be given to the specified languages.'), 'help' => 'Internationalization', 'type' => 'text', 'filter' => 'digits', 'size' => 2, 'dependencies' => array( 'available_languages', ), 'default' => 3, ), ); }