[drupal-devel] Internationalization, Usability and changes in the coding conventions

Gabor Hojtsy gabor at hojtsy.hu
Sat Feb 19 18:30:01 UTC 2005


>>I have created an issue and patch on this but I thought it should be
>>addresses directly as many will be branching their code for v4.6 and
>>this should be part of that.
>>
>>--- common_1.inc    2005-02-19 17:33:21.451910400 +0100
>>+++ common_2.inc    2005-02-19 17:34:40.876116800 +0100
>>@@ -427,8 +427,8 @@ function object2array($object) {
>>  * Always consider whether to use drupal_access_denied() instead to
>>return a
>>  * proper (and customizable) 403 error.
>>  */
>>-function message_access() {
>>-  return t('You are not authorized to access this page.');
>>+function message_access($message = 'You are not authorized to access
>>this page.') {
>>+  return t($message);
>>}

Why do you have message_access() now, where you originally intended to 
have t()? Using t() is simpler!

Goba



More information about the drupal-devel mailing list