Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issue #12476: Quicktranslation tabs not working
- Loading branch information
Showing
7 changed files
with
174 additions
and
185 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 5 additions & 12 deletions
17
application/views/admin/translate/translatefields_view.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,6 @@ | ||
<?php | ||
if (strlen(trim((string)$textfrom)) > 0) | ||
{ | ||
// Display translation fields | ||
echo $translateFields; | ||
} | ||
else | ||
{ | ||
?> | ||
<?php if (strlen(trim((string)$textfrom)) > 0) : ?> | ||
<?=tidy_repair_string($translateFields)?> | ||
<?php else: ?> | ||
<input type='hidden' name='<?php echo $type; ?>_newvalue[<?php echo $i; ?>]' value='<?php echo $textto; ?>' /> | ||
<?php | ||
} | ||
?> | ||
<?php endif;?> | ||
<?php // Display translation fields ?> |
18 changes: 9 additions & 9 deletions
18
application/views/admin/translate/translatefieldsfooter_view.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
<?php echo $translateFieldsFooter; ?> | ||
</div> | ||
<?php if ($all_fields_empty) { ?> | ||
<p><?php eT("Nothing to translate on this page");?></p><br /> | ||
<?php } ?> | ||
<input type='hidden' name='<?php echo $type;?>_size' value='<?php echo $i ?>' /> | ||
<?php if ($associated) { ?> | ||
<input type='hidden' name='<?php echo $type2;?>_size' value='<?php echo $i;?>' /> | ||
<?php } ?> | ||
<?php echo $translateFieldsFooter; ?> | ||
</div> | ||
<?php if ($all_fields_empty): ?> | ||
<p><?php eT("Nothing to translate on this page");?></p><br /> | ||
<?php endif;?> | ||
<input type='hidden' name='<?php echo $type;?>_size' value='<?php echo $i ?>' /> | ||
<?php if ($associated) :?> | ||
<input type='hidden' name='<?php echo $type2;?>_size' value='<?php echo $i;?>' /> | ||
<?php endif;?> | ||
</div> |
Oops, something went wrong.