Author: mahono
Date: 2010-01-20 10:40:07 +0100 (Wed, 20 Jan 2010)
New Revision: 26923
Modified:
plugins/sfSympalPlugin/trunk/i18n/messages.de.xml
plugins/sfSympalPlugin/trunk/lib/model/doctrine/PluginsfSympalContentSlot.class.php
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalEditorPlugin/lib/helper/SympalContentSlotEditorHelper.php
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalRenderingPlugin/lib/slot/sfSympalContentSlotRenderer.class.php
Log:
[1.4][sfSympalPlugin][1.0] Fixes i18n for inline edit mode info and adds some
missing i18n messages
Modified: plugins/sfSympalPlugin/trunk/i18n/messages.de.xml
===================================================================
--- plugins/sfSympalPlugin/trunk/i18n/messages.de.xml 2010-01-20 08:55:55 UTC
(rev 26922)
+++ plugins/sfSympalPlugin/trunk/i18n/messages.de.xml 2010-01-20 09:40:07 UTC
(rev 26923)
@@ -541,7 +541,7 @@
</trans-unit>
<trans-unit id="1740">
<source>Content</source>
- <target>Content</target>
+ <target>Inhalt</target>
</trans-unit>
<trans-unit id="1750">
<source>New Sympal redirects</source>
@@ -802,8 +802,8 @@
<target>Neue Content-Liste</target>
</trans-unit>
<trans-unit id="2540">
- <source>Double click to enable inline edit mode.</source>
- <target>Doppelklicken, um den Inline-Bearbeitungsmodus zu
aktivieren.</target>
+ <source>[Double click to enable inline edit mode.]</source>
+ <target>[Doppelklicken, um den Bearbeitungsmodus zu
aktivieren.]</target>
</trans-unit>
<trans-unit id="2550">
<source>Change Slot Type</source>
@@ -1075,6 +1075,19 @@
<source>Change Content Type</source>
<target>Content-Typ wechseln</target>
</trans-unit>
+ <trans-unit id="3350">
+ <source>Edit slots</source>
+ <target>Slots bearbeiten</target>
+ </trans-unit>
+ <trans-unit id="3360">
+ <source>View</source>
+ <target>Anzeigen</target>
+ </trans-unit>
+ <trans-unit id="3370">
+ <source>close</source>
+ <target>schließen</target>
+ </trans-unit>
+
</body>
</file>
</xliff>
\ No newline at end of file
Modified:
plugins/sfSympalPlugin/trunk/lib/model/doctrine/PluginsfSympalContentSlot.class.php
===================================================================
---
plugins/sfSympalPlugin/trunk/lib/model/doctrine/PluginsfSympalContentSlot.class.php
2010-01-20 08:55:55 UTC (rev 26922)
+++
plugins/sfSympalPlugin/trunk/lib/model/doctrine/PluginsfSympalContentSlot.class.php
2010-01-20 09:40:07 UTC (rev 26923)
@@ -134,10 +134,13 @@
if (sfSympalContext::getInstance()->shouldLoadFrontendEditor() && !$value)
{
- $rawValue = '[Double click to enable inline edit mode]';
- } else {
+ $rawValue = '[Double click to enable inline edit mode.]';
+ }
+ else
+ {
$rawValue = $value;
}
+
return $rawValue;
}
Modified:
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalEditorPlugin/lib/helper/SympalContentSlotEditorHelper.php
===================================================================
---
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalEditorPlugin/lib/helper/SympalContentSlotEditorHelper.php
2010-01-20 08:55:55 UTC (rev 26922)
+++
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalEditorPlugin/lib/helper/SympalContentSlotEditorHelper.php
2010-01-20 09:40:07 UTC (rev 26923)
@@ -12,7 +12,7 @@
$form = $slot->getEditForm();
return '
-<span title="'.__('Double click to enable inline edit mode.').'"
id="sympal_content_slot_'.$slot->getId().'" class="sympal_content_slot">
+<span title="'.__('[Double click to enable inline edit mode.]').'"
id="sympal_content_slot_'.$slot->getId().'" class="sympal_content_slot">
<input type="hidden" class="content_slot_id" value="'.$slot->getId().'" />
<input type="hidden" class="content_id"
value="'.$slot->getContentRenderedFor()->getId().'" />
<span class="editor">'.get_partial('sympal_edit_slot/slot_editor',
array('form' => $form, 'contentSlot' => $slot)).'</span>
Modified:
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalRenderingPlugin/lib/slot/sfSympalContentSlotRenderer.class.php
===================================================================
---
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalRenderingPlugin/lib/slot/sfSympalContentSlotRenderer.class.php
2010-01-20 08:55:55 UTC (rev 26922)
+++
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalRenderingPlugin/lib/slot/sfSympalContentSlotRenderer.class.php
2010-01-20 09:40:07 UTC (rev 26923)
@@ -13,7 +13,13 @@
public function render()
{
- return $this->getRenderedValue();
+ // translate inline edit information
+ if ('[Double click to enable inline edit mode.]' == $value =
$this->getRenderedValue())
+ {
+ $value = __($value);
+ }
+
+ return $value;
}
public function getRawValue()
@@ -29,13 +35,20 @@
if (method_exists($this->_content, $renderFunction))
{
return $this->_content->$renderFunction($this);
- } else if (method_exists($this->_contentSlot, $renderFunction)) {
+ }
+ else if (method_exists($this->_contentSlot, $renderFunction))
+ {
return $this->_contentSlot->$renderFunction($this);
- } else {
+ }
+ else
+ {
sfSympalToolkit::autoloadHelper($renderFunction);
+
return $renderFunction($this->_content, $this->_contentSlot->name);
}
- } else {
+ }
+ else
+ {
return $this->getRawValue();
}
}
--
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.