[pLog-svn] r4719 - in plog/branches/lifetype-1.2: class/action/admin locale templates/admin

oscar at devel.lifetype.net oscar at devel.lifetype.net
Mon Feb 12 13:57:05 EST 2007


Author: oscar
Date: 2007-02-12 13:57:05 -0500 (Mon, 12 Feb 2007)
New Revision: 4719

Modified:
   plog/branches/lifetype-1.2/class/action/admin/adminchangegalleryitemsalbumaction.class.php
   plog/branches/lifetype-1.2/class/action/admin/adminchangepostscategoryaction.class.php
   plog/branches/lifetype-1.2/class/action/admin/adminchangepostsstatusaction.class.php
   plog/branches/lifetype-1.2/locale/locale_en_UK.php
   plog/branches/lifetype-1.2/locale/locale_es_ES.php
   plog/branches/lifetype-1.2/templates/admin/editlinks.template
   plog/branches/lifetype-1.2/templates/admin/resources.template
Log:
some fixes for the 'bulk edit' features, specially because there were some strings missing. I've also corrected the style of some of them, as they were incorrectly aligned to the left instead of to the right.


Modified: plog/branches/lifetype-1.2/class/action/admin/adminchangegalleryitemsalbumaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/admin/adminchangegalleryitemsalbumaction.class.php	2007-02-12 18:13:30 UTC (rev 4718)
+++ plog/branches/lifetype-1.2/class/action/admin/adminchangegalleryitemsalbumaction.class.php	2007-02-12 18:57:05 UTC (rev 4719)
@@ -97,20 +97,20 @@
 					$result = $resources->updateResource( $resource );
 					
 					if( !$result ) {
-						$this->_errorMessage .= $this->_locale->pr("error_deleting_resource", $resource->getFileName())."<br/>";
+						$this->_errorMessage .= $this->_locale->pr("error_updating_resource", $resource->getFileName())."<br/>";
 					}
 					else {
 						$this->_totalOk++;
 						if( $this->_totalOk < 2 ) 
-							$this->_successMessage .= $this->_locale->pr("item_updated_ok", $resource->getFileName());
+							$this->_successMessage .= $this->_locale->pr("resource_updated_ok", $resource->getFileName());
 						else
-							$this->_successMessage = $this->_locale->pr("items_updated_ok", $this->_totalOk );
+							$this->_successMessage = $this->_locale->pr("resources_updated_ok", $this->_totalOk );
 						// fire the post event
 						$this->notifyEvent( EVENT_POST_RESOURCE_UPDATE, Array( "article" => &$post ));					
 					}
 				} 
 				else {
-					$this->_errorMessage .= $this->_locale->pr("error_deleting_resource2", $resourceId )."<br/>";
+					$this->_errorMessage .= $this->_locale->pr("error_updating_resource2", $resourceId )."<br/>";
 				}
 			}
         }
@@ -142,14 +142,14 @@
 					else {
 						$this->_totalOk++;
 						if( $this->_totalOk < 2 ) 
-							$this->_successMessage = $this->_locale->pr("item_updated_ok", $album->getName());
+							$this->_successMessage = $this->_locale->pr("album_updated_ok", $album->getName());
 						else
-							$this->_successMessage = $this->_locale->pr("items_updated_ok", $this->_totalOk );
+							$this->_successMessage = $this->_locale->pr("albums_updated_ok", $this->_totalOk );
 						// fire the post event
 						$this->notifyEvent( EVENT_POST_ALBUM_UPDATE, Array( "album" => &$album ));	
 					}
 				} else {
-					$this->_errorMessage .= $this->_locale->pr( "error_deleting_album2", $albumId )."<br/>";
+					$this->_errorMessage .= $this->_locale->pr( "error_updating_album2", $albumId )."<br/>";
             	}
 			}
         }

Modified: plog/branches/lifetype-1.2/class/action/admin/adminchangepostscategoryaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/admin/adminchangepostscategoryaction.class.php	2007-02-12 18:13:30 UTC (rev 4718)
+++ plog/branches/lifetype-1.2/class/action/admin/adminchangepostscategoryaction.class.php	2007-02-12 18:57:05 UTC (rev 4719)
@@ -56,20 +56,20 @@
 					$result = $articles->updateArticle( $post );
 					
 					if( !$result ) {
-						$errorMessage .= $this->_locale->pr("error_update_article", $post->getTopic())."<br/>";
+						$errorMessage .= $this->_locale->pr("error_updating_post", $post->getTopic())."<br/>";
 					}
 					else {
 						$totalOk++;
 						if( $totalOk < 2 ) 
-							$successMessage .= $this->_locale->pr("article_updated_ok", $post->getTopic())."<br/>";
+							$successMessage .= $this->_locale->pr("post_updated_ok", $post->getTopic())."<br/>";
 						else
-							$successMessage = $this->_locale->pr("articles_updated_ok", $totalOk );
+							$successMessage = $this->_locale->pr("posts_updated_ok", $totalOk );
 						// fire the post event
 						$this->notifyEvent( EVENT_POST_POST_UPDATE, Array( "article" => &$post ));					
 					}
 				}
 				else {
-					$errorMessage .= $this->_locale->pr( "error_updating_article2", $postId )."<br/>";
+					$errorMessage .= $this->_locale->pr( "error_updating_posts2", $postId )."<br/>";
 				}
             }
 			

Modified: plog/branches/lifetype-1.2/class/action/admin/adminchangepostsstatusaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/admin/adminchangepostsstatusaction.class.php	2007-02-12 18:13:30 UTC (rev 4718)
+++ plog/branches/lifetype-1.2/class/action/admin/adminchangepostsstatusaction.class.php	2007-02-12 18:57:05 UTC (rev 4719)
@@ -57,20 +57,20 @@
 					$result = $articles->updateArticle( $post );
 					
 					if( !$result ) {
-						$errorMessage .= $this->_locale->pr("error_update_article", $post->getTopic())."<br/>";
+						$errorMessage .= $this->_locale->pr("error_updating_post", $post->getTopic())."<br/>";
 					}
 					else {
 						$totalOk++;
 						if( $totalOk < 2 ) 
-							$successMessage .= $this->_locale->pr("article_updated_ok", $post->getTopic())."<br/>";
+							$successMessage .= $this->_locale->pr("post_updated_ok", $post->getTopic())."<br/>";
 						else
-							$successMessage = $this->_locale->pr("articles_updated_ok", $totalOk );
+							$successMessage = $this->_locale->pr("posts_updated_ok", $totalOk );
 						// fire the post event
 						$this->notifyEvent( EVENT_POST_POST_UPDATE, Array( "article" => &$post ));					
 					}
 				}
 				else {
-					$errorMessage .= $this->_locale->pr( "error_updating_article2", $postId )."<br/>";
+					$errorMessage .= $this->_locale->pr( "error_updating_post2", $postId )."<br/>";
 				}
             }
 			

Modified: plog/branches/lifetype-1.2/locale/locale_en_UK.php
===================================================================
--- plog/branches/lifetype-1.2/locale/locale_en_UK.php	2007-02-12 18:13:30 UTC (rev 4718)
+++ plog/branches/lifetype-1.2/locale/locale_en_UK.php	2007-02-12 18:57:05 UTC (rev 4719)
@@ -1251,4 +1251,13 @@
 $messages['form_authenticated'] = 'Authenticated';
 
 $messages['help_forbidden_blognames'] = 'List of strings separated by a blank space that are not allowed to be used as blog names. It is possible to use regular expressions instead of plain strings. [ Default = (empty) ]';
+
+$messages['posts_updated_ok'] = '%s posts updated successfully';
+$messages['error_updating_post2'] = 'There was an error updating the article with idenfitier %s';
+$messages['resources_updated_ok'] = '% resources updated successfully';
+$messages['error_updating_resource2'] = 'There was an error updating the resource with identifier %s';
+$messages['albums_updated_ok'] = '%s albums updated successfully';
+$messages['error_updating_album2'] = 'There was an error updating album with identifier %s';
+$messages['links_updated_ok'] = '%s links updated successfully';
+$messages['error_updating_link2'] = 'There was an error updating the link with identifier %s';
 ?>

Modified: plog/branches/lifetype-1.2/locale/locale_es_ES.php
===================================================================
--- plog/branches/lifetype-1.2/locale/locale_es_ES.php	2007-02-12 18:13:30 UTC (rev 4718)
+++ plog/branches/lifetype-1.2/locale/locale_es_ES.php	2007-02-12 18:57:05 UTC (rev 4719)
@@ -1246,4 +1246,13 @@
 $messages['help_forbidden_blognames'] = 'Lista de cadenas separadas por un espacio en blanco que no se pueden usar como nombres de bitácora. Es posible usar una expresión regular en lugar de una simple cadena. [ Valor por defecto = (vacío) ]';
 
 $messages['bookmark_it_to_lifetype'] = 'Añadir como favorito en LifeType!';
+
+$messages['posts_updated_ok'] = '%s artículos fueron actualizados correctamente';
+$messages['error_updating_post2'] = 'Hubo un error actualizando el artículo cuyo identificador es %s';
+$messages['resources_updated_ok'] = '% ficheros fueron actualizados correctamente';
+$messages['error_updating_resource2'] = 'Hubo un error actualizando el fichero cuyo identificador es %s';
+$messages['albums_updated_ok'] = '%s álbums fueron actualizados correctamente';
+$messages['error_updating_album2'] = 'Hubo un error actualizando el álbum cuyo identificador es %s';
+$messages['links_updated_ok'] = '%s enlaces fueron actualizados correctamente';
+$messages['error_updating_link2'] = 'Hubo un error actualizando el enlace cuyo identificador es %s';
 ?>
\ No newline at end of file

Modified: plog/branches/lifetype-1.2/templates/admin/editlinks.template
===================================================================
--- plog/branches/lifetype-1.2/templates/admin/editlinks.template	2007-02-12 18:13:30 UTC (rev 4718)
+++ plog/branches/lifetype-1.2/templates/admin/editlinks.template	2007-02-12 18:57:05 UTC (rev 4719)
@@ -114,7 +114,7 @@
   {check_perms perm="update_link"}
    <input type="submit" name="Delete selected" value="{$locale->tr("delete")}"/>
   {/check_perms}
-  <div id="massiveChangeOption" style="display: none; text-align: left;">
+  <div id="massiveChangeOption" style="display: none;">
     <fieldset>
       <legend>{$locale->tr("massive_change_option")}</legend>
 	  <label for="linkCategoryId">{$locale->tr("category")}</label>

Modified: plog/branches/lifetype-1.2/templates/admin/resources.template
===================================================================
--- plog/branches/lifetype-1.2/templates/admin/resources.template	2007-02-12 18:13:30 UTC (rev 4718)
+++ plog/branches/lifetype-1.2/templates/admin/resources.template	2007-02-12 18:57:05 UTC (rev 4719)
@@ -140,7 +140,7 @@
   {if $quota > 0 }, {$locale->tr("quota")}: <strong>{$quota|round}</strong>{/if}
   <input type="submit" name="delete" value="{$locale->tr("delete")}" class="submit" />
   <input type="hidden" name="op" value="deleteResourceItems" />
-  <div id="massiveChangeOption" style="display: none; text-align: left;">
+  <div id="massiveChangeOption" style="display: none;">
     <fieldset>
       <legend>{$locale->tr("massive_change_option")}</legend>            
 	  <label for="galleryAlbumId">{$locale->tr("album")}</label>



More information about the pLog-svn mailing list