przykładowy plik z którego chce skorzystać
<?php function node_help($section) { switch ($section) { case 'admin/help#node': $output = '<p>'. t('All content in a website is stored and treated as <b>nodes</b>. Therefore nodes are any postings such as blogs, stories, polls and forums.
The node module manages these content types and is one of the strengths of Drupal
over other content management systems.') .'</p>'; $output .= '<p>'. t('Treating all content as nodes allows the flexibility of creating new types of co
ntent. It also allows you to painlessly apply new features or changes to all cont
ent. Comments are not stored as nodes but are always associated with a node.') .'</p>'; $output .= t('<p>You can</p> <ul> <li>search for content at <a href="%search">search</a>.</li> <li>administer nodes at <a href="%admin-settings-content-types">administer >> settings >> content types</a>.</li> </ul> ', array('%search' => url('search'), '%admin-settings-content-types' => url('admin/settings/content-types'))); $output .= '<p>'. t('For more information please read the configuration and customization handbook <a href="%node">Node page</a>.', array('%node' => 'http://drupal.org/handbook/modules/node/')) .'</p>'; return $output; case 'admin/modules#description': return t('Allows content to be submitted to the site and displayed on pages.'); case 'admin/node/configure': case 'admin/node/configure/settings': return t('<p>Settings for the core of Drupal. Almost everything is a node so these setting
s will affect most of the site.</p>'); case 'admin/node': return t('<p>Below is a list of all of the posts on your site. Other forms of content are
listed elsewhere (e.g. <a href="%comments">comments</a>).</p><p>Clicking a title views the post, while clicking an author's name views their user information.</p>', array('%comments' => url('admin/comment'))); case 'admin/node/search': return t('<p>Enter a simple pattern to search for a post. This can include the wildcard ch
aracter *.<br />For example, a search for "br*" might return "bread bakers", "our daily bread" and "brenda".</p>'); } return t('The revisions let you track differences between multiple versions of a post.'); } if (arg(0) == 'node' && arg(1) == 'add' && $type = arg(2)) { return variable_get($type .'_help', ''); } } ?>
więcej przykładowych plików tu> cvs.drupal.org|drupal|modules
konkretnie chodzi mi o funkcje "t()"... tzn
np.
Kod
t('The forum %term has been deleted.', array('%term' => theme('placeholder', $form_values['name']))
Kod
t('forum container')
doszedłem do takiego rozwiązania ...ale to jest syf
<?php //to tylko przykład pobieram je lokalnie $subject = file_get_contents("http://cvs.drupal.org/viewcvs/*checkout*/drupal/drupal/modules/forum.module"); ?>