Warnings during processing contemplate.module

umonkey - April 12, 2007 - 12:53
Project:Translation template extractor
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:by design
Description

Here is the result of an attempt to process contemplate.module:

main:contemplate hex$ php ../potx/potx-cli.php
Processing contemplate.module...
Invalid marker content in contemplate.module:24
* t('<p>Please note that by creating a template for this content type, you are taking full control of its output and you will need to manually add all of the fields that you would like to see in the output. Click <em>reset</em> to remove template control for this content type.</p>'.theme('more_help_link',url('admin/help/contemplate')))

Processing contemplate.install...
Processing contemplate.info...

Warning: join(): Bad arguments. in /usr/hosts/intranet.molinos.ru/htdocs/sites/all/modules/potx/potx.inc on line 197

Call Stack:
    0.0015     108516   1. {main}() /usr/hosts/intranet.molinos.ru/htdocs/sites/all/modules/potx/potx-cli.php:0
    1.0007     438824   2. _potx_write_files() /usr/hosts/intranet.molinos.ru/htdocs/sites/all/modules/potx/potx-cli.php:73
    1.0018     442476   3. join() /usr/hosts/intranet.molinos.ru/htdocs/sites/all/modules/potx/potx.inc:197


Done.

#1

Gábor Hojtsy - April 15, 2007 - 21:30
Status:active» by design

Well, the error message is clear, isn't it. That t() has invalid content. Namely it is called with a dynamic string (the output of theme('more_help_link', ...) is part of what is about to get translated. t() should only get called with literal strings.

 
 

Drupal is a registered trademark of Dries Buytaert.