[pLog-svn] r3783 - in plugins/trunk/sociable: . locale

pwestbro at devel.lifetype.net pwestbro at devel.lifetype.net
Mon Jul 24 05:01:39 GMT 2006


Author: pwestbro
Date: 2006-07-24 05:01:37 +0000 (Mon, 24 Jul 2006)
New Revision: 3783

Modified:
   plugins/trunk/sociable/README.txt
   plugins/trunk/sociable/locale/locale_en_UK.php
   plugins/trunk/sociable/pluginsociable.class.php
Log:
Moved some strings to locale files


Modified: plugins/trunk/sociable/README.txt
===================================================================
--- plugins/trunk/sociable/README.txt	2006-07-24 02:46:34 UTC (rev 3782)
+++ plugins/trunk/sociable/README.txt	2006-07-24 05:01:37 UTC (rev 3783)
@@ -20,4 +20,3 @@
 {$sociable->show($)} 
 
 [TODO]:
-1) Move string into local files, to make the plugin easier to localize.
\ No newline at end of file

Modified: plugins/trunk/sociable/locale/locale_en_UK.php
===================================================================
--- plugins/trunk/sociable/locale/locale_en_UK.php	2006-07-24 02:46:34 UTC (rev 3782)
+++ plugins/trunk/sociable/locale/locale_en_UK.php	2006-07-24 05:01:37 UTC (rev 3783)
@@ -10,4 +10,5 @@
 
 $messages["label_configuration"] = "Configuration";
 $messages["label_enable"] = "Enable";
+$messages["tagline"] = "Share and Enjoy:";
 ?>
\ No newline at end of file

Modified: plugins/trunk/sociable/pluginsociable.class.php
===================================================================
--- plugins/trunk/sociable/pluginsociable.class.php	2006-07-24 02:46:34 UTC (rev 3782)
+++ plugins/trunk/sociable/pluginsociable.class.php	2006-07-24 05:01:37 UTC (rev 3783)
@@ -101,13 +101,14 @@
                 $rg = $this->blogInfo->getBlogRequestGenerator();
                 $post = $articles->getBlogArticle($postId);
 	            $blogSettings = $this->blogInfo->getSettings();
+   			    $locale =& $this->blogInfo->getLocale();
 
                 $blogname = urlencode($this->blogInfo->getBlog());
                 $permalink = urlencode($rg->postPermalink($post));
                 $title = urlencode($post->getTopic());
                 
                 $str .= '<div class="sociable"><span class="sociable_tagline">';
-//                $str .= get_option("sociable_tagline");
+                $str .= '<strong>' . $locale->tr("tagline")  . '</strong>';
                 $str .= '<span>These icons link to social bookmarking sites where readers can share and discover new web pages.</span></span><ul>' . "\n";
 
 		        foreach($sociable_builtin_known_sites as $sitename=>$site)
@@ -142,6 +143,7 @@
 		      
 	           $blogSettings = $this->blogInfo->getSettings();
                $rg = $this->blogInfo->getBlogRequestGenerator();
+			   $locale =& $this->blogInfo->getLocale();
 
 
 		      foreach($sociable_builtin_known_sites as $sitename=>$site)
@@ -158,7 +160,7 @@
                   {
                       $str .= 'checked="checked"';
                   }
-                  $str .= 'value="1" /> Enable '.  $sitename;
+                  $str .= 'value="1" /> '. $locale->tr("label_enable") . ' '.  $sitename;
                   $str .= '  </div>';
                   $str .= '  </div>';
 		      }



More information about the pLog-svn mailing list