Minor syntax issue in tinymce_help() function prevents the extraction of message for localization

GoofyX - May 14, 2007 - 06:57
Project:TinyMCE
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:minor
Assigned:Unassigned
Status:reviewed & tested by the community
Description

Inside the tinymce_help() function, there is a minor syntax that prevents a message from being extracted for translation using the template extractor module (potx). The message inside t() should not be broken into portions and concatenated using the concatenation operator '.'. The patch fixes this minor issue, so that running php potx-cli.php from the command line generates general.pot including the specific message for translation.

I'm not sure if this a potx issue, but the Drupal API for t() (http://api.drupal.org/api/5/function/t) states:

When using t(), try to put entire sentences and strings in one t() call. This makes it easier for translators, as it provides context as to what each word refers to.

Thanks.

AttachmentSize
tinymce-syntax.diff1.3 KB
 
 

Drupal is a registered trademark of Dries Buytaert.