Index: render.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/render/render.module,v
retrieving revision 1.1.2.4
diff -u -p -r1.1.2.4 render.module
--- render.module	19 Jan 2008 03:45:42 -0000	1.1.2.4
+++ render.module	9 Aug 2008 16:34:22 -0000
@@ -458,16 +458,29 @@ function render_rule($edit) {
   );
   $form['basics']['selectorhelp']['contents'] = array(
     '#type' => 'markup',
-    '#value' => t('<p>The supported CSS selectors are <code>#</code>, <code>&gt;</code> and <code>.</code>. Whitespace is used to select descendants. Please use whitespace only for this, so instead of <code>#foo &gt; p</code> use <code>#foo&gt;p</code>. You may use multiple selectors by seperating them with a comma ("<code>,</code>").</p>
-    <p>Example presets based on Garland default elements:</p>
-    <ul>
-    <li><a href="" onclick="document.getElementById(\'edit-selector\').value = \'#header h1 span\';return false;">site title</a></li>
-    <li><a href="" onclick="document.getElementById(\'edit-selector\').value = \'#tabs-wrapper h2\';return false;">page title</a></li>
-    <li><a href="" onclick="document.getElementById(\'edit-selector\').value = \' .node h2\';return false;">node titles</a></li>
-    <li><a href="" onclick="document.getElementById(\'edit-selector\').value = \' .block h2\';return false;">block titles</a></li>
-    <li><a href="" onclick="document.getElementById(\'edit-selector\').value = \' .comment h3\';return false;">comment titles</a></li>
-    <p>Selectors may be dependent on your theme. Examine html source to find appropriate classes and ids being output by your current theme.</p>'),
+    '#value' => '<p>'. t('The supported CSS selectors are !selector1, !selector2 and !selector3. Whitespace is used to select descendants. Whitespace should only be used for this, so instead of !whitespace1 use !whitespace2. Multiple selectors may be used by seperating them with a comma ("!separator").', array(
+      '!selector1' => '<code>#</code>',
+      '!selector2' => '<code>&gt;</code>',
+      '!selector3' => '<code>.</code>',
+      '!whitespace1' => '<code>#foo &gt; p</code>',
+      '!whitespace2' => '<code>#foo&gt;p</code>',
+      '!separator' => '<code>,</code>',
+    )) .'</p>',
   );
+  $form['basics']['selectorhelp']['contents']['#value'] .= '<p>'. t('Selectors are dependent on your theme. Examine the HTML source to find appropriate classes and ids being output by your current theme. The following are example selectors based on the default Garland theme:') .'</p>';
+  $form['basics']['selectorhelp']['contents']['#value'] .= '<ul>'. t('!site-title-prefix Site title !suffix
+    !page-title-prefix Page title !suffix
+    !node-titles-prefix Node titles !suffix
+    !block-titles-prefix Block titles !suffix
+    !comment-titles-prefix Comment titles !suffix', array(
+    '!site-title-prefix' => '<li><a href="" onclick="document.getElementById(\'edit-selector\').value = \'#header h1 span\';return false;">',
+    '!page-title-prefix' => '<li><a href="" onclick="document.getElementById(\'edit-selector\').value = \'#tabs-wrapper h2\';return false;">',
+    '!node-titles-prefix' => '<li><a href="" onclick="document.getElementById(\'edit-selector\').value = \' .node h2\';return false;">',
+    '!block-titles-prefix' => '<li><a href="" onclick="document.getElementById(\'edit-selector\').value = \' .block h2\';return false;">',
+    '!comment-titles-prefix' => '<li><a href="" onclick="document.getElementById(\'edit-selector\').value = \' .comment h3\';return false;">',
+    '!suffix' => '</a></li>',
+  )) .'</ul>';
+
   $form['basics']['weight'] = array(
     '#type' => 'weight',
     '#title' => t('Weight'),
