Exclude api.php files

Dave Reid - May 23, 2009 - 20:18
Project:Translation template extractor
Version:6.x-3.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Dave Reid
Status:closed
Description

I don't think there is any reason to extract strings from API documentation, which has been standardized to use modulename.api.php. Is there a way to exclude these files from the translation templates?

#1

Gábor Hojtsy - May 24, 2009 - 11:12

Requires a patch to the module.

#2

Dave Reid - August 22, 2009 - 20:37
Version:6.x-2.x-dev» 6.x-3.x-dev
Assigned to:Anonymous» Dave Reid
Status:active» needs review

Patch supplied for 6.x-3.x. Tested and works. Also fixes the preg_match to actually use the period character since of a character wildcard.

Sorry there are a few trailing whitespace fixes in the patch. There are a *LOT* of trailing whitespace in the entire module's code. Very annoying with an auto-correcting IDE. :( I'll file a sep. patch for just whitespace.

AttachmentSize
471124-potx-exclude-api-D6-3.patch 1002 bytes

#3

Gábor Hojtsy - August 24, 2009 - 07:37
Status:needs review» fixed

Thanks, committed to both the 6.x and 7.x branch of the module.

#4

System Message - September 7, 2009 - 07:40
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.