Repro: php potx-cli.php --files potx-cli.php potx.inc potx.info potx.install potx.module

The first parameter to t() should be a literal string. There should be no variables, concatenation, constants or other non-literal strings t
here.
At t("Embedded $variable") in potx-cli.php on line 115.
Read more at http://drupal.org/node/322732

The first parameter to t() should be a literal string. There should be no variables, concatenation, constants or other non-literal strings t
here.
At t(embedded_function_call(3)) in potx-cli.php on line 123.
Read more at http://drupal.org/node/322732

The first parameter to t() should be a literal string. There should be no variables, concatenation, constants or other non-literal strings t
here.
At t('Concatenated'.'string.'.'You should never do this.') in potx-cli.php on line 126.
Read more at http://drupal.org/node/322732

The first two watchdog() parameters should be literal strings. There should be no variables, concatenation, constants or even a t() call the
re.
At watchdog('help',t('Help called')) in potx-cli.php on line 136.
Read more at http://drupal.org/node/323101

Comments

hass’s picture

Title: Incorrect use of t() » Incorrect use of t() or bug in extractor?
gábor hojtsy’s picture

Category: bug » support
Status: Active » Closed (fixed)

Thanks for verifying that our test cases for potx still work :) Please look at the code where these are and you'll see that these never run but are there as test cases for the potx error reports / handlers.

hass’s picture

Ups, sorry.