Commit c12b901a authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix for php langpack creation from files without 'htdocs' in context string

parent c15148c9
...@@ -26,11 +26,11 @@ foreach my $po (@$strings) { ...@@ -26,11 +26,11 @@ foreach my $po (@$strings) {
$content =~ s{\\n}{\n}g; $content =~ s{\\n}{\n}g;
my $reference = $po->reference(); my $reference = $po->reference();
next if ( ! defined $reference ); next if ( ! defined $reference );
if ($reference =~ m{^htdocs/(\S*lang/)\S+\.utf8(/\S+)\.html$}) { if ($reference =~ m{^(\S*lang/)\S+\.utf8(/\S+)\.html$}) {
my $filename = $1 . $lang . $2 . '.html'; my $filename = $1 . $lang . $2 . '.html';
$htmlfiles{$filename} = $po->dequote($content); $htmlfiles{$filename} = $po->dequote($content);
} }
elsif ($reference =~ m{^htdocs/(\S*lang/)\S+\.utf8(/\S+)\.php\s+(\S+)$}) { elsif ($reference =~ m{^(\S*lang/)\S+\.utf8(/\S+)\.php\s+(\S+)$}) {
my $key = $3; my $key = $3;
my $filename = $1 . $lang . $2 . '.php'; my $filename = $1 . $lang . $2 . '.php';
$phpfiles{$filename}->{$key} = $content; $phpfiles{$filename}->{$key} = $content;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment