Author: mahono
Date: 2010-01-20 09:36:08 +0100 (Wed, 20 Jan 2010)
New Revision: 26921
Modified:
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalAdminPlugin/config/sfSympalAdminPluginConfiguration.class.php
Log:
[1.4][sfSympalPlugin][1.0] Fixing i18n for page actions menu
Modified:
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalAdminPlugin/config/sfSympalAdminPluginConfiguration.class.php
===================================================================
---
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalAdminPlugin/config/sfSympalAdminPluginConfiguration.class.php
2010-01-20 08:29:07 UTC (rev 26920)
+++
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalAdminPlugin/config/sfSympalAdminPluginConfiguration.class.php
2010-01-20 08:36:08 UTC (rev 26921)
@@ -76,7 +76,7 @@
public function loadEditor(sfEvent $event)
{
- $this->configuration->loadHelpers(array('Asset', 'Partial'));
+ $this->configuration->loadHelpers(array('Asset', 'Partial', 'I18N'));
$menu = $event->getSubject();
$content = $event['content'];
@@ -91,18 +91,18 @@
if ($sympalConfiguration->isAdminModule())
{
- $contentEditor->addChild(image_tag('/sf/sf_admin/images/list.png').'
View '.$content->getType()->getLabel(), $content->getRoute());
+ $contentEditor->addChild(image_tag('/sf/sf_admin/images/list.png').'
'.__('View '.$content->getType()->getLabel()), $content->getRoute());
}
- $contentEditor->addChild(image_tag('/sf/sf_admin/images/add.png').' Create
New '.$content->getType()->getLabel(),
'@sympal_content_create_type?type='.$content['Type']['slug']);
- $contentEditor->addChild(image_tag('/sf/sf_admin/images/edit.png').' Edit
'.$content->getType()->getLabel(), $content->getEditRoute());
- $contentEditor->addChild(image_tag('/sf/sf_admin/images/edit.png').' Edit
Content Type', '@sympal_content_types_edit?id='.$content->getType()->getId());
+ $contentEditor->addChild(image_tag('/sf/sf_admin/images/add.png').'
'.__('Create New '.$content->getType()->getLabel()),
'@sympal_content_create_type?type='.$content['Type']['slug']);
+ $contentEditor->addChild(image_tag('/sf/sf_admin/images/edit.png').'
'.__('Edit '.$content->getType()->getLabel()), $content->getEditRoute());
+ $contentEditor->addChild(image_tag('/sf/sf_admin/images/edit.png').'
'.__('Edit Content Type'),
'@sympal_content_types_edit?id='.$content->getType()->getId());
if ($menuItem && $menuItem->exists())
{
- $contentEditor->addChild(image_tag('/sf/sf_admin/images/edit.png').'
Edit Menu Item', '@sympal_content_menu_item?id='.$content->getId());
+ $contentEditor->addChild(image_tag('/sf/sf_admin/images/edit.png').'
'.__('Edit Menu Item'), '@sympal_content_menu_item?id='.$content->getId());
} else {
- $contentEditor->addChild(image_tag('/sf/sf_admin/images/add.png').' Add
to Menu', '@sympal_content_menu_item?id='.$content->getId());
+ $contentEditor->addChild(image_tag('/sf/sf_admin/images/add.png').'
'.__('Add to Menu'), '@sympal_content_menu_item?id='.$content->getId());
}
}
}
\ No newline at end of file
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-svn?hl=en.