diff options
author | cweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2009-11-04 21:30:55 +0000 |
---|---|---|
committer | cweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2009-11-04 21:30:55 +0000 |
commit | 13635722cdf51c1e76dc5ef86391e03594ea49ff (patch) | |
tree | 4ab7374dd5eee56e05f317e9f13125a7f5e0b834 /data/templates | |
parent | b80df612d5453a44fff473ad9fe8be86a17c6516 (diff) | |
download | semanticscuttle-13635722cdf51c1e76dc5ef86391e03594ea49ff.tar.gz semanticscuttle-13635722cdf51c1e76dc5ef86391e03594ea49ff.tar.bz2 |
make voting labels translatable
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@511 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'data/templates')
-rw-r--r-- | data/templates/bookmarks-vote-horizontal.inc.tpl.php | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/data/templates/bookmarks-vote-horizontal.inc.tpl.php b/data/templates/bookmarks-vote-horizontal.inc.tpl.php index acdfbf7..c4a9f8e 100644 --- a/data/templates/bookmarks-vote-horizontal.inc.tpl.php +++ b/data/templates/bookmarks-vote-horizontal.inc.tpl.php @@ -20,16 +20,19 @@ if (!isset($row['hasVoted'])) { $classes = 'vote-horiz'; } 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 ($row['vote'] != 1) { echo '<a class="vote-for" rel="nofollow" href="' . createVoteURL(true, $row['bId']) . '"' . ' onclick="javascript:vote(' . $row['bId'] . ',1); return false;"' - . '>Vote for</a> '; + . '>' . T_('Vote for') . '</a> '; } 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="' . createVoteURL(false, $row['bId']) . '"' . ' onclick="vote(' . $row['bId'] . ',-1); return false;"' - . '>Vote against</a>'; + . '>' . T_('Vote against') . '</a>'; } else { - echo '<span class="vote-against-inactive">Vote against</span>'; + echo '<span class="vote-against-inactive">' + . T_('Vote against') . '</span>'; } } echo '</div>'; |