[translations] new extractor, should work on Windows

Gabor Hojtsy gabor at hojtsy.hu
Thu Feb 2 19:43:39 UTC 2006


Morten Wulff wrote:
> Thanks! This a big improvement for those of us stuck on windows :-) (My
> .bat file to call extractor was getting a bit messy.)
> 
>> It was never easier to run the extractor. Please try on Windows, I don't
>> have a Windows system here, so I cannot do it myself.
> 
> Testing with PHP 5.1.1 on WinXP, I get the following error when running
> extractor.php in the root of the Drupal directory:
> 
> Fatal error: Call to undefined function write_header() in
> D:\projekter\drupal\drupal-HEAD\extractor.php on line 167
> 
> As far as I can tell, the "if (!function_exists("write_header"))" block
> is never run. The attached diff fixes the problem for me, but it can
> probably be solved a little more elegantly.

I have committed a different and simpler solution. Now you can define a
write_header_custom() function if you would like to overwrite the
default POT header with automatic language specific data.

Goba


More information about the translations mailing list