token.module could return for the token site-name a value that is different from the value used by system.module.
This is because token.module uses the following code to get the value of the Drupal variable site_name:

variable_get('site_name', t('Drupal'))

while system.module uses the following code:

variable_get('site_name', 'Drupal')

This means that for web sites which don't have the variable explicitly set system.module will always return 'Drupal', while token.module returns the localized version of the string.

CommentFileSizeAuthor
#1 300448_site_name_not_localized.patch1003 bytesgreggles

Comments

greggles’s picture

Status: Active » Needs review
StatusFileSize
new1003 bytes

Good point...let's see if anyone else has an opinion on this.

avpaderno’s picture

Title: Token could return a different value than the one used by sytem.module » Token could return a different value than the one used by system.module
Status: Needs review » Closed (works as designed)

As nobody else reported anything about this, I guess this could be marked as by design.