make voting labels translatable
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@511 b3834d28-1941-0410-a4f8-b48e95affb8f
This commit is contained in:
parent
b80df612d5
commit
13635722cd
1 changed files with 9 additions and 5 deletions
|
@ -20,16 +20,19 @@ if (!isset($row['hasVoted'])) {
|
||||||
$classes = 'vote-horiz';
|
$classes = 'vote-horiz';
|
||||||
}
|
}
|
||||||
echo '<div class="' . $classes . '" id="bmv-' . $row['bId'] . '">';
|
echo '<div class="' . $classes . '" id="bmv-' . $row['bId'] . '">';
|
||||||
echo 'Voting <span class="voting">' . $row['bVoting'] . '</span> ';
|
echo sprintf(
|
||||||
|
T_('Voting <span class="voting">%d</span>'), $row['bVoting']
|
||||||
|
) . ' ';
|
||||||
|
|
||||||
if (isset($row['hasVoted'])) {
|
if (isset($row['hasVoted'])) {
|
||||||
if ($row['vote'] != 1) {
|
if ($row['vote'] != 1) {
|
||||||
echo '<a class="vote-for" rel="nofollow" href="'
|
echo '<a class="vote-for" rel="nofollow" href="'
|
||||||
. createVoteURL(true, $row['bId']) . '"'
|
. createVoteURL(true, $row['bId']) . '"'
|
||||||
. ' onclick="javascript:vote(' . $row['bId'] . ',1); return false;"'
|
. ' onclick="javascript:vote(' . $row['bId'] . ',1); return false;"'
|
||||||
. '>Vote for</a> ';
|
. '>' . T_('Vote for') . '</a> ';
|
||||||
} else {
|
} else {
|
||||||
echo '<span class="vote-for-inactive">Vote for</span> ';
|
echo '<span class="vote-for-inactive">'
|
||||||
|
. T_('Vote for') . '</span> ';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -37,9 +40,10 @@ if (isset($row['hasVoted'])) {
|
||||||
echo '<a class="vote-against" rel="nofollow" href="'
|
echo '<a class="vote-against" rel="nofollow" href="'
|
||||||
. createVoteURL(false, $row['bId']) . '"'
|
. createVoteURL(false, $row['bId']) . '"'
|
||||||
. ' onclick="vote(' . $row['bId'] . ',-1); return false;"'
|
. ' onclick="vote(' . $row['bId'] . ',-1); return false;"'
|
||||||
. '>Vote against</a>';
|
. '>' . T_('Vote against') . '</a>';
|
||||||
} else {
|
} else {
|
||||||
echo '<span class="vote-against-inactive">Vote against</span>';
|
echo '<span class="vote-against-inactive">'
|
||||||
|
. T_('Vote against') . '</span>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
|
Loading…
Reference in a new issue