[drupal-docs] Coding style for admin help: admin/help#modulename

Kieran Lal kieran at civicspacelabs.org
Tue May 31 17:00:18 UTC 2005


On May 30, 2005, at 1:29 PM, puregin wrote:
>    It would be appreciated if the Drupal development community  
> could come to some consensus so that the documentation team can  
> easily create a large number of patches in a reasonably automated way.

It looks like we aren't going to get any feedback.

Here is the t() function which requires us to use arrays and the url  
function to assist in translations.
http://drupaldocs.org/api/head/function/t

For example,

t('Blah blah blah <a href = "/admin/settings/toaster" title = "toast  
your bread"> toast your bread</a>')

is the format we were planning to use.  But we have to use this  
format, which will be hard to script.

t('Blah blah blah <a href = "%1" title ="toast your bread"> toast  
your bread', array('%url' => url('user/register'))

Cheers,
Kieran



More information about the drupal-docs mailing list