|
| 1 | +<?php |
| 2 | +include("lang/setlang.php"); |
| 3 | +define('PACKAGE', 'index'); |
| 4 | + |
| 5 | +// gettext setting |
| 6 | +bindtextdomain(PACKAGE, 'lang'); // or $your_path/lang, ex: /var/www/test/lang |
| 7 | +textdomain(PACKAGE); |
| 8 | +?> |
1 | 9 | <html>
|
2 | 10 | <head>
|
3 |
| - <title>Crash dump parser</title> |
| 11 | + <title><?php echo _('Crash dump parser'); ?></title> |
4 | 12 | <script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
|
5 | 13 | <script>
|
6 | 14 | $(document).ready(function(){
|
|
9 | 17 | </script>
|
10 | 18 | </head>
|
11 | 19 | <body>
|
12 |
| -<p>Please choose a method to send the crash dump.</p> |
| 20 | +<p><?php echo _('Please choose a method to send the crash dump.'); ?></p> |
13 | 21 | <hr>
|
14 | 22 | <form action="result.php" method="post" enctype="multipart/form-data">
|
15 |
| - <input type="radio" name="method" value="buffer" checked> Paste crash dump |
| 23 | + <input type="radio" name="method" value="buffer" checked> <?php echo _('Paste crash dump'); ?> |
16 | 24 | <br>
|
17 |
| - <pre>----------------------REPORT THE DATA BELOW THIS LINE----------------------- |
18 |
| -===BEGIN CRASH DUMP=== |
| 25 | + <pre>----------------------<?php echo _('REPORT THE DATA BELOW THIS LINE'); ?>----------------------- |
| 26 | +===<?php echo _('BEGIN CRASH DUMP'); ?>=== |
19 | 27 | <textarea name="buffer" cols="100" rows="30"></textarea>
|
20 |
| -===END CRASH DUMP=== |
| 28 | +===<?php echo _('END CRASH DUMP'); ?>=== |
21 | 29 | </pre>
|
22 | 30 | <hr>
|
23 |
| - <input type="radio" name="method" value="file"> {EXPERIMENTAL} Upload crash dump file<br> |
| 31 | + <input type="radio" name="method" value="file"> <?php echo _('{EXPERIMENTAL} Upload crash dump file'); ?><br> |
24 | 32 | <input type="file" name="file"><br>
|
25 | 33 | <hr>
|
26 |
| - <input type="radio" name="method" value="github"> {EXPERIMENTAL} GitHub link <br> |
| 34 | + <input type="radio" name="method" value="github"> <?php echo _('{EXPERIMENTAL} GitHub link'); ?> <br> |
27 | 35 | <hr>
|
28 | 36 | <input type="submit">
|
29 |
| - <input type="checkbox" name="api"> output as JSON |
| 37 | + <input type="checkbox" name="api"> <?php echo _('output as JSON'); ?> |
30 | 38 | </form>
|
31 | 39 | </body>
|
32 | 40 | </html>
|
|
0 commit comments