Skip to content

Issues with t() in Entity Plus #157

@argiepiano

Description

@argiepiano

After using the Potx module to extract translatable strings, I found the following issues:

  • The first parameter to t() should be a literal string. There should be no variables, concatenation, constants or other non-literal strings there. At t($language->name) in modules/callbacks.inc on line 448
  • The first two watchdog() parameters should be literal strings. There should be no variables, concatenation, constants or even a t() call there. At watchdog($entity_type,'Missing property callback %callback.',array('%callback'=>$callback),WATCHDOG_ERROR) in modules/field.info.inc on line 34
  • The first parameter to t() should be a literal string. There should be no variables, concatenation, constants or other non-literal strings there. At t('Note: This is a multi-valued relationship, which is currently not supported. '.'Only the first related entity will be shown.') in views/handlers/entity_plus_views_handler_relationship.inc on line 32

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions