Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dev: Refactor the 'translate' admin controller in the LimeSurvey Yii …
…port (GCI2011 By Georgi Kostadinov) git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_yii@11800 b72ed6b6-b9f8-46b5-92b4-906544132732
- Loading branch information
Pieter Jan Speelmans
committed
Dec 29, 2011
1 parent
e618998
commit 9887e8d
Showing
11 changed files
with
1,046 additions
and
1,123 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
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
23 changes: 10 additions & 13 deletions
23
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,16 +1,13 @@ | ||
<?php if (strlen(trim((string)$textfrom)) > 0) | ||
<?php | ||
if (strlen(trim((string)$textfrom)) > 0) | ||
{ | ||
// Display translation fields | ||
echo translate::displayTranslateFields($surveyid, $gid, $qid, $type, | ||
$amTypeOptions, $baselangdesc, $tolangdesc, $textfrom, $textto, $i, $rowfrom, $evenRow); | ||
if ($associated && strlen(trim((string)$textfrom2)) > 0) | ||
{ | ||
$evenRow = !($evenRow); | ||
echo translate::displayTranslateFields($surveyid, $gid, $qid, $type2, | ||
$amTypeOptions2, $baselangdesc, $tolangdesc, $textfrom2, $textto2, $i, $rowfrom2, $evenRow); | ||
} | ||
// Display translation fields | ||
echo $translateFields; | ||
} | ||
else | ||
{ ?> | ||
<input type='hidden' name='<?php echo $type;?>_newvalue[<?php echo $i;?>]' value='<?php echo $textto;?>' /> | ||
<?php } ?> | ||
{ | ||
?> | ||
<input type='hidden' name='<?php echo $type; ?>_newvalue[<?php echo $i; ?>]' value='<?php echo $textto; ?>' /> | ||
<?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
Oops, something went wrong.