]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
make voting labels translatable
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>
Wed, 4 Nov 2009 21:30:55 +0000 (21:30 +0000)
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>
Wed, 4 Nov 2009 21:30:55 +0000 (21:30 +0000)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@511 b3834d28-1941-0410-a4f8-b48e95affb8f

data/templates/bookmarks-vote-horizontal.inc.tpl.php

index acdfbf7e508f38acf95f5ef051fff7ea4277e824..c4a9f8ead1a21d595503426dc3c996c1c1200f39 100644 (file)
@@ -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>';