| [ Index ] | PHP Cross Reference of Mambo 4.6.5 |
|
| [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @package Mambo 4 * @subpackage Languages 5 * @author Mambo Foundation Inc see README.php 6 * @copyright (C) 2000 - 2009 Mambo Foundation Inc. 7 * See COPYRIGHT.php for copyright notices and details. 8 * @license GNU/GPL Version 2, see LICENSE.php 9 * 10 * Redistributions of files must retain the above copyright notice. 11 * 12 * Mambo is free software; you can redistribute it and/or 13 * modify it under the terms of the GNU General Public License 14 * as published by the Free Software Foundation; version 2 of the License. 15 */ 16 17 defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); ?> 18 <script type="text/javascript"> 19 function submitbutton(pressbutton) { 20 var form = document.adminForm; 21 if (pressbutton == 'cancel') { 22 submitform( pressbutton ); 23 return; 24 } 25 26 // do field validation 27 if (form.name.value == "") { 28 alert( "<?php echo T_('You must provide a Language Name.') ?>" ); 29 } else if (form.id.value == "") { 30 alert( "<?php echo T_('You must provide a Language Identifier.') ?>" ); 31 } else if (form.locale.value == "") { 32 alert( "<?php echo T_('You must provide a locale.') ?>" ); 33 } else if (form.encoding.value == "") { 34 alert( "<?php echo T_('You must provide a character encoding.') ?>" ); 35 } else if (form.dateformat.value == "") { 36 alert( "<?php echo T_('You must provide a date format.') ?>" ); 37 } else { 38 submitform( pressbutton ); 39 } 40 } 41 </script> 42 <?php 43 $tabs = new mosTabs(1); 44 mosCommonHTML::loadOverlib(); 45 mosCommonHTML::loadCalendar(); 46 ?> 47 <table class="adminheading"> 48 <tr> 49 <th class="langmanager"> 50 <?php echo T_('New Language') ?> 51 </th> 52 <td style="white-space: nowrap;text-align:right"> 53 <?php echo mosCurrentDate();?> 54 </td> 55 </tr> 56 </table> 57 <?php $tabs->startPane('language-pane'); $tabs->startTab(T_('Details'), 'details');?> 58 <table class="adminform"> 59 <tr> 60 <td style="width:200px"><?php echo T_('Language Identifier') ?></td> 61 <td> 62 <input type="text" name="id" maxlength="100" class="inputbox" disabled="disabled" style="width:180px" value="<?php echo $language['id'] ?>" /> 63 <?php echo mosToolTip( T_('The identifier for this language. This is used for naming the language xml file and translations directory.') ); ?> 64 </td> 65 </tr> 66 <tr> 67 <td style="width:200px"><?php echo T_('Language Name') ?></td> 68 <td> 69 <input type="text" name="name" maxlength="100" class="inputbox" style="width:180px" value="<?php echo $language['name'] ?>" /> 70 <?php echo mosToolTip( T_('The official name for this language') ); ?> 71 </td> 72 </tr> 73 <tr> 74 <td><?php echo T_('Locale') ?></td> 75 <td> 76 <input type="text" name="locale" maxlength="100" class="inputbox" style="width:180px" value="<?php echo $language['locale'] ?>" /> 77 <?php echo mosToolTip( T_('The locale list for this language. \nLocale names must be comma separated.') ); ?> 78 </td> 79 </tr> 80 <tr> 81 <td><?php echo T_('Encoding') ?></td> 82 <td> 83 <input type="text" name="encoding" maxlength="100" class="inputbox" style="width:180px" value="<?php echo $language['encoding'] ?>" /> 84 <?php echo mosToolTip( T_('The character encoding for this language. Ex. utf-8') ); ?> 85 </td> 86 </tr> 87 <tr> 88 <td><?php echo T_('Direction') ?></td> 89 <td> 90 <select name="direction" class="inputbox" style="width:185px"> 91 <option value="ltr"><?php echo T_('Left-to-Right') ?></option> 92 <option value="rtl"><?php echo T_('Right-to-Left') ?></option> 93 </select> 94 <?php echo mosToolTip( T_('Text direction.') ); ?> 95 </td> 96 </tr> 97 <tr> 98 <td><?php echo T_('Date Format') ?></td> 99 <td> 100 <input type="text" name="dateformat" maxlength="100" class="inputbox" style="width:180px" value="<?php echo $language['dateformat'] ?>" /> 101 <?php echo mosToolTip( T_('Date format for strftime().') ); ?> 102 </td> 103 </tr> 104 <tr> 105 <td><?php echo T_('Plural forms') ?></td> 106 <td> 107 <input type="text" name="plural-forms" maxlength="100" class="inputbox" style="width:180px" value="<?php echo $language['plural-forms'] ?>" /></label> 108 <?php echo mosToolTip( T_('Plural forms for gettext.') ); ?> 109 </td> 110 </tr> 111 </table> 112 <?php $tabs->endTab(); 113 114 115 $tabs->endPane(); ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed May 23 00:05:01 2012 | Cross-referenced by PHPXref 0.7 |
| Mambo API: Mambo is Free software released under the GNU/General Public License, Version 2 |