| 54 |
row_id.value = id; |
row_id.value = id; |
| 55 |
row.className = 'transhighlight'; |
row.className = 'transhighlight'; |
| 56 |
} |
} |
| 57 |
|
|
| 58 |
|
function togglefuzzy(img, checkbox) { |
| 59 |
|
if(checkbox.value == 'false') { |
| 60 |
|
checkbox.value = 'true'; |
| 61 |
|
img.src = 'images/publish_x.png'; |
| 62 |
|
} else if(checkbox.value == 'true') { |
| 63 |
|
checkbox.value = 'false'; |
| 64 |
|
img.src = 'images/tick.png'; |
| 65 |
|
} |
| 66 |
|
alert(checkbox.value); |
| 67 |
|
} |
| 68 |
</script> |
</script> |
| 69 |
<style> |
<style> |
| 70 |
table.adminlist th {text-align:left} |
table.adminlist th {text-align:left} |
| 82 |
<table class="adminlist"> |
<table class="adminlist"> |
| 83 |
<tr> |
<tr> |
| 84 |
<th style="width:50px"> |
<th style="width:50px"> |
| 85 |
<?php echo T_('Fuzzy') ?> |
<?php echo T_('Verified') ?> |
| 86 |
</th> |
</th> |
| 87 |
<th style="width:40%;text-align:center;"> |
<th style="width:40%;text-align:center;"> |
| 88 |
<?php echo T_('Original') ?> |
<?php echo T_('Original') ?> |
| 90 |
<th style="width:40%;text-align:center;"> |
<th style="width:40%;text-align:center;"> |
| 91 |
<?php echo T_('Translation') ?> |
<?php echo T_('Translation') ?> |
| 92 |
</th> |
</th> |
| 93 |
<th style="width:70px"> |
<th style="width:70px;text-align:right;"> |
| 94 |
<?php echo T_('Ref') ?> |
<?php echo T_('Ref') ?> |
| 95 |
</th> |
</th> |
| 96 |
</tr> |
</tr> |
| 112 |
$is_plural = strlen($message->msgid_plural) > 1 ? 1 : 0; |
$is_plural = strlen($message->msgid_plural) > 1 ? 1 : 0; |
| 113 |
?> |
?> |
| 114 |
|
|
| 115 |
<tr class="<?php echo "row$a"; ?>" id="row_<?php echo $id ?>" onclick="translate(this, <?php echo $id ?>, <?php echo $is_plural ?>, <?php echo $nplurals ?>)"> |
<tr class="<?php echo "row$a"; ?>" id="row_<?php echo $id ?>"> |
| 116 |
<td style="width:50px"> |
<td style="width:50px" onclick="translate(this.parentNode, <?php echo $id ?>, <?php echo $is_plural ?>, <?php echo $nplurals ?>)"> |
| 117 |
<input type="checkbox" name="fuzzy_<?php echo $id ?>" value="<?php echo $message->is_fuzzy; ?>" <?php echo $message->is_fuzzy ? 'checked="checked" ' : ''; ?>/> |
<img style="cursor:pointer;" onclick="return togglefuzzy(this, document.forms[0].fuzzy_<?php echo $id ?>)" src="images/<?php echo ( $message->is_fuzzy ) ? 'publish_x.png' : 'tick.png';?>" width="12" height="12" border="0" alt="<?php echo ( $message->is_fuzzy ) ? T_('Verify Translation') : T_('Translation OK');?>" /> |
| 118 |
|
<input type="hidden" name="fuzzy_<?php echo $id ?>" value="<?php echo ( $message->is_fuzzy ) ? 'true' : 'false';?>"/> |
| 119 |
</td> |
</td> |
| 120 |
<td style="width:40%"> |
<td style="width:40%" onclick="translate(this.parentNode, <?php echo $id ?>, <?php echo $is_plural ?>, <?php echo $nplurals ?>)"> |
| 121 |
<textarea style="display:none" readonly="readonly" id="msgid_<?php echo $id ?>" name="msgid_<?php echo $id ?>"><?php echo $message->msgid ?></textarea> |
<textarea style="display:none" readonly="readonly" id="msgid_<?php echo $id ?>" name="msgid_<?php echo $id ?>"><?php echo $message->msgid ?></textarea> |
| 122 |
<?php if ($is_plural): ?> |
<?php if ($is_plural): ?> |
| 123 |
<textarea style="display:none" readonly="readonly" id="msgid_plural_<?php echo $id ?>" name="msgid_plural_<?php echo $id ?>"><?php echo $message->msgid_plural ?></textarea> |
<textarea style="display:none" readonly="readonly" id="msgid_plural_<?php echo $id ?>" name="msgid_plural_<?php echo $id ?>"><?php echo $message->msgid_plural ?></textarea> |
| 124 |
<?php endif; ?> |
<?php endif; ?> |
| 125 |
<?php echo $message->msgid; ?> |
<?php echo $message->msgid; ?> |
| 126 |
</td> |
</td> |
| 127 |
<td style="width:40%"> |
<td style="width:40%" onclick="translate(this.parentNode, <?php echo $id ?>, <?php echo $is_plural ?>, <?php echo $nplurals ?>)"> |
| 128 |
<?php if ($is_plural): ?> |
<?php if ($is_plural): ?> |
| 129 |
<?php for ($b=0; $b < $nplurals; $b++):?> |
<?php for ($b=0; $b < $nplurals; $b++):?> |
| 130 |
<textarea style="display:none" readonly="readonly" id="msgstr_<?php echo $b ?>_<?php echo $id ?>" name="msgstr_<?php echo $b ?>_<?php echo $id ?>"><?php echo $message->msgstr[$b] ?></textarea> |
<textarea style="display:none" readonly="readonly" id="msgstr_<?php echo $b ?>_<?php echo $id ?>" name="msgstr_<?php echo $b ?>_<?php echo $id ?>"><?php echo $message->msgstr[$b] ?></textarea> |
| 134 |
<?php endif; ?> |
<?php endif; ?> |
| 135 |
<span id="msgstr_<?php echo $id ?>_span"><?php echo $is_plural ? $message->msgstr[0] : $message->msgstr;?></span> |
<span id="msgstr_<?php echo $id ?>_span"><?php echo $is_plural ? $message->msgstr[0] : $message->msgstr;?></span> |
| 136 |
</td> |
</td> |
| 137 |
<td style="width:50px;text-align:right"> |
<td style="width:50px;text-align:right" onclick="translate(this.parentNode, <?php echo $id ?>, <?php echo $is_plural ?>, <?php echo $nplurals ?>)"> |
| 138 |
<?php if ($tip) echo $tip; ?> |
<?php if ($tip) echo $tip; ?> |
| 139 |
</td> |
</td> |
| 140 |
</tr> |
</tr> |