|
2 | 2 |
|
3 | 3 | $info=array();
|
4 | 4 | if($form && $_REQUEST['a']!='add') {
|
5 |
| - $title = 'Update custom form section'; |
| 5 | + $title = __('Update custom form section'); |
6 | 6 | $action = 'update';
|
7 | 7 | $url = "?id=".urlencode($_REQUEST['id']);
|
8 |
| - $submit_text='Save Changes'; |
| 8 | + $submit_text=__('Save Changes'); |
9 | 9 | $info = $form->ht;
|
10 | 10 | $newcount=2;
|
11 | 11 | } else {
|
12 |
| - $title = 'Add new custom form section'; |
| 12 | + $title = __('Add new custom form section'); |
13 | 13 | $action = 'add';
|
14 | 14 | $url = '?a=add';
|
15 |
| - $submit_text='Add Form'; |
| 15 | + $submit_text=__('Add Form'); |
16 | 16 | $newcount=4;
|
17 | 17 | }
|
18 | 18 | $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
|
|
23 | 23 | <input type="hidden" name="do" value="<?php echo $action; ?>">
|
24 | 24 | <input type="hidden" name="a" value="<?php echo $action; ?>">
|
25 | 25 | <input type="hidden" name="id" value="<?php echo $info['id']; ?>">
|
26 |
| - <h2>Custom Form</h2> |
| 26 | + <h2><?php echo __('Custom Form'); ?></h2> |
27 | 27 | <table class="form_table" width="940" border="0" cellspacing="0" cellpadding="2">
|
28 | 28 | <thead>
|
29 | 29 | <tr>
|
30 | 30 | <th colspan="2">
|
31 | 31 | <h4><?php echo $title; ?></h4>
|
32 |
| - <em>Custom forms are used to allow custom data to be |
33 |
| - associated with tickets</em> |
| 32 | + <em><?php echo __( |
| 33 | + 'Custom forms are used to allow custom data to be associated with tickets' |
| 34 | + ); ?></em> |
34 | 35 | </th>
|
35 | 36 | </tr>
|
36 | 37 | </thead>
|
37 | 38 | <tbody style="vertical-align:top">
|
38 | 39 | <tr>
|
39 |
| - <td width="180" class="required">Title:</td> |
| 40 | + <td width="180" class="required"><?php echo __('Title'); ?>:</td> |
40 | 41 | <td><input type="text" name="title" size="40" value="<?php
|
41 | 42 | echo $info['title']; ?>"/>
|
42 | 43 | <i class="help-tip icon-question-sign" href="#form_title"></i>
|
|
45 | 46 | </td>
|
46 | 47 | </tr>
|
47 | 48 | <tr>
|
48 |
| - <td width="180">Instructions:</td> |
| 49 | + <td width="180"><?php echo __('Instructions'); ?>:</td> |
49 | 50 | <td><textarea name="instructions" rows="3" cols="40"><?php
|
50 | 51 | echo $info['instructions']; ?></textarea>
|
51 | 52 | <i class="help-tip icon-question-sign" href="#form_instructions"></i>
|
|
58 | 59 | <thead>
|
59 | 60 | <tr>
|
60 | 61 | <th colspan="7">
|
61 |
| - <em><strong>User Information Fields</strong> more information here</em> |
| 62 | + <em><strong><?php echo __('User Information Fields'); ?></strong> |
| 63 | + <?php echo sprintf(__('(These fields are requested for new tickets |
| 64 | + via the %s form)', |
| 65 | + UserForm::objects()->one()->get('title'))); ?></em> |
62 | 66 | </th>
|
63 | 67 | </tr>
|
64 | 68 | <tr>
|
65 | 69 | <th></th>
|
66 |
| - <th>Label</th> |
67 |
| - <th>Type</th> |
68 |
| - <th>Internal</th> |
69 |
| - <th>Required</th> |
70 |
| - <th>Variable</th> |
71 |
| - <th>Delete</th> |
| 70 | + <th><?php echo __('Label'); ?></th> |
| 71 | + <th><?php echo __('Type'); ?></th> |
| 72 | + <th><?php echo __('Internal'); ?></th> |
| 73 | + <th><?php echo __('Required'); ?></th> |
| 74 | + <th><?php echo __('Variable'); ?></th> |
| 75 | + <th><?php echo __('Delete'); ?></th> |
72 | 76 | </tr>
|
73 | 77 | </thead>
|
74 | 78 | <tbody>
|
|
94 | 98 | <thead>
|
95 | 99 | <tr>
|
96 | 100 | <th colspan="7">
|
97 |
| - <em><strong>Form Fields</strong> fields available for ticket information</em> |
| 101 | + <em><strong><?php echo __('Form Fields'); ?></strong> |
| 102 | + <?php echo __('fields available where this form is used'); ?></em> |
98 | 103 | </th>
|
99 | 104 | </tr>
|
100 | 105 | <tr>
|
101 |
| - <th nowrap>Sort |
| 106 | + <th nowrap><?php echo __('Sort'); ?> |
102 | 107 | <i class="help-tip icon-question-sign" href="#field_sort"></i></th>
|
103 |
| - <th nowrap>Label |
| 108 | + <th nowrap><?php echo __('Label'); ?> |
104 | 109 | <i class="help-tip icon-question-sign" href="#field_label"></i></th>
|
105 |
| - <th nowrap>Type |
| 110 | + <th nowrap><?php echo __('Type'); ?> |
106 | 111 | <i class="help-tip icon-question-sign" href="#field_type"></i></th>
|
107 |
| - <th nowrap>Internal |
| 112 | + <th nowrap><?php echo __('Internal'); ?> |
108 | 113 | <i class="help-tip icon-question-sign" href="#field_internal"></i></th>
|
109 |
| - <th nowrap>Required |
| 114 | + <th nowrap><?php echo __('Required'); ?> |
110 | 115 | <i class="help-tip icon-question-sign" href="#field_required"></i></th>
|
111 |
| - <th nowrap>Variable |
| 116 | + <th nowrap><?php echo __('Variable'); ?> |
112 | 117 | <i class="help-tip icon-question-sign" href="#field_variable"></i></th>
|
113 |
| - <th nowrap>Delete |
| 118 | + <th nowrap><?php echo __('Delete'); ?> |
114 | 119 | <i class="help-tip icon-question-sign" href="#field_delete"></i></th>
|
115 | 120 | </tr>
|
116 | 121 | </thead>
|
|
153 | 158 | $('#field-config .body').load($(this).attr('href').substr(1));
|
154 | 159 | $('#field-config').show();
|
155 | 160 | return false;
|
156 |
| - "><i class="icon-edit"></i> Config</a> |
| 161 | + "><i class="icon-edit"></i> <?php echo __('Config'); ?></a> |
157 | 162 | <?php } ?>
|
158 | 163 | <div class="error" style="white-space:normal"><?php
|
159 | 164 | if ($ferrors['type']) echo $ferrors['type'];
|
|
221 | 226 | <tbody>
|
222 | 227 | <tr>
|
223 | 228 | <th colspan="7">
|
224 |
| - <em><strong>Internal Notes:</strong> be liberal, they're internal</em> |
| 229 | + <em><strong><?php echo __('Internal Notes'); ?>:</strong> |
| 230 | + <?php echo __("be liberal, they're internal"); ?></em> |
225 | 231 | </th>
|
226 | 232 | </tr>
|
227 | 233 | <tr>
|
|
239 | 245 | </p>
|
240 | 246 |
|
241 | 247 | <div style="display:none;" class="draggable dialog" id="delete-confirm">
|
242 |
| - <h3><i class="icon-trash"></i> Remove Existing Data?</h3> |
| 248 | + <h3><i class="icon-trash"></i> <?php echo __('Remove Existing Data?'); ?></h3> |
243 | 249 | <a class="close" href=""><i class="icon-remove-circle"></i></a>
|
244 | 250 | <hr/>
|
245 | 251 | <p>
|
246 | 252 | <strong>You are about to delete <span id="deleted-count"></span> fields.</strong>
|
247 |
| - Would you also like to remove data currently entered for this field? |
248 |
| - <em>If you opt not to remove the data now, you will have the option |
249 |
| - to delete the the data when editing it</em> |
| 253 | + <?php echo __('Would you also like to remove data currently entered for this field? <em> If you opt not to remove the data now, you will have the option to delete the the data when editing it.</em>'); ?> |
250 | 254 | </p><p style="color:red">
|
251 |
| - Deleted data CANNOT be recovered. |
| 255 | + <?php echo __('Deleted data CANNOT be recovered.'); ?> |
252 | 256 | </p>
|
253 | 257 | <hr>
|
254 | 258 | <div id="deleted-fields"></div>
|
|
281 | 285 | .append($('<input/>').attr({type:'checkbox',name:'delete-data-'
|
282 | 286 | + $(e).data('fieldId')})
|
283 | 287 | ).append($('<strong>').html(
|
284 |
| - 'Remove all data entered for <u>' + $(e).data('fieldLabel') + '</u>' |
| 288 | + '<?php echo __('Remove all data entered for <u> %s </u>?'); |
| 289 | + ?>'.replace('%s', $(e).data('fieldLabel')) |
285 | 290 | ))
|
286 | 291 | );
|
287 | 292 | });
|
|
0 commit comments