e42bbf637bd0382fa7721f4677388e34089bdc71
[atutor.git] / docs / mods / _core / languages / translate.php
1 <?php
2 /****************************************************************/
3 /* ATutor                                                                                                               */
4 /****************************************************************/
5 /* Copyright (c) 2002-2010                                      */
6 /* Inclusive Design Institute                                   */
7 /* http://atutor.ca                                                                                             */
8 /*                                                              */
9 /* This program is free software. You can redistribute it and/or*/
10 /* modify it under the terms of the GNU General Public License  */
11 /* as published by the Free Software Foundation.                                */
12 /****************************************************************/
13
14 $_REQUEST['u'] = 'admin';
15
16 $_user_location = 'admin';
17
18 $variables = array('_template', '_msgs');
19 // Get the language codes for the languages on the current system
20
21 define('AT_INCLUDE_PATH', '../../../include/');
22 ?>
23
24 <script language="javascript" type="text/javascript">
25 function openWindow(page) {
26         newWindow = window.open(page, "progWin", "width=400,height=200,toolbar=no,location=no");
27         newWindow.focus();
28 }
29 </script>
30
31 <br /><form name="form1" method="post" action="mods/_core/languages/import_lang.php" enctype="multipart/form-data" onsubmit="openWindow('tools/prog.php');">
32 <input type="hidden" name="import" value="1" />
33 <table cellspacing="1" cellpadding="0" border="0" class="bodyline" width="80%" summary="" align="center">
34 <tr>
35         <td class="cyan" colspan="2"><?php echo _AT('import_a_new_lang'); ?></td>
36 </tr>
37 <tr>
38         <td colspan="2"><small><?php echo _AT('import_lang_howto'); ?></small></td>
39 </tr>
40 <tr>
41         <td align="center" colspan="2"><br /><strong><?php echo _AT('import_a_new_lang'); ?></strong>: <input type="file" name="file" class="formfield" /> | <input type="submit" name="submit" value="<?php echo _AT('import'); ?>" class="button" /><br /><br /></td>
42 </tr>
43 </table>
44 </form>