summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2009-09-21 15:46:20 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2009-09-21 15:46:20 +0000
commit94a357ac7fb0c3510a755ae10bcbe0a47d36e6e4 (patch)
tree0adedb1c5e78e86d451dd461c7809854f9aec28d
parentf6f70fb93cb003c65e960302f54bf96972cab2a9 (diff)
#i10000# #i103543# write correct en-US tree files
-rw-r--r--helpcontent2/helpers/update_tree.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/helpcontent2/helpers/update_tree.pl b/helpcontent2/helpers/update_tree.pl
index ae7dddf0d6..71579750ad 100644
--- a/helpcontent2/helpers/update_tree.pl
+++ b/helpcontent2/helpers/update_tree.pl
@@ -71,6 +71,8 @@ if ( ! defined $prj ) {
($tree_src = $scriptname) =~ s/\/update_tree.pl/\/..\/source\/auxiliary/;
($tree_dest = $scriptname) =~ s/\/update_tree.pl/\/..\/$destpath\/misc/;
($source_dir = $scriptname) =~ s/\/update_tree.pl/\/..\/source/;
+ ($source_dir_xhp = $scriptname) =~ s/\/update_tree.pl/\/..\/source/;
+
if ( defined $ENV{TRYSDF} && defined $ENV{LOCALIZESDF} )
{
if( defined $ENV{LOCALIZATION_FOUND} && $ENV{LOCALIZATION_FOUND} eq "YES" )
@@ -93,6 +95,7 @@ if ( ! defined $prj ) {
$tree_src = "$prj\/source\/auxiliary";
$tree_dest = "$prj\/$destpath\/misc";
$source_dir = "$prj\/source";
+ $source_dir_xhp = "$prj\/source";
$treestrings = "$source_dir/text/shared/tree_strings.xhp";
if ( defined $ENV{TRYSDF} && defined $ENV{LOCALIZESDF} )
@@ -238,7 +241,7 @@ sub processtreefiles {
($id = $l) =~ s/^.*id="([^"]*)".*$/$1/gis;
($module = $id) =~ s/^([^\/]*).*$/$1/;
$id =~ s/^.*?\///;
- $file = "$source_dir/$id";
+ $file = "$source_dir_xhp/$id";
if ($lng eq 'en-US') { # english comes from the file
if (open F,$file) {