Skip to content

Commit 074d04a

Browse files
author
André L F S Bacci
committed
Parameter entitities does not recurse or replaces in literal
1 parent c07e753 commit 074d04a

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

configure.php

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -700,14 +700,20 @@ function xml_configure()
700700

701701
if ( $lang == 'en' )
702702
{
703-
realpain( __DIR__ . "/temp/empty" , mkdir: true );
704-
realpain( __DIR__ . "/temp/empty/language-defs.ent" , touch: true );
705-
realpain( __DIR__ . "/temp/empty/language-snippets.ent" , touch: true );
706-
realpain( __DIR__ . "/temp/empty/extensions.ent" , touch: true );
707-
$conf[] = "<!ENTITY % LANGDIR '$base/empty'>";
703+
realpain( __DIR__ . "/temp/empty" , touch: true );
704+
$trans1 = realpain( __DIR__ . "/temp/empty" );
705+
$trans2 = realpain( __DIR__ . "/temp/empty" );
706+
$trans3 = realpain( __DIR__ . "/temp/empty" );
708707
}
709708
else
710-
$conf[] = "<!ENTITY % LANGDIR '$lang'>";
709+
{
710+
$trans1 = realpain( __DIR__ . "/../$lang/language-defs.ent" );
711+
$trans2 = realpain( __DIR__ . "/../$lang/language-snippets.ent" );
712+
$trans3 = realpain( __DIR__ . "/../$lang/extensions.ent" );
713+
}
714+
$conf[] = "<!ENTITY % translation-defs SYSTEM '$trans1'>";
715+
$conf[] = "<!ENTITY % translation-snippets SYSTEM '$trans2'>";
716+
$conf[] = "<!ENTITY % translation-extensions SYSTEM '$trans3'>";
711717

712718
if ( $ac['CHMENABLED'] == 'yes' )
713719
$conf[] = "<!ENTITY manual.chmonly SYSTEM './chm/manual.chm.xml'>";

manual.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
%configure;
77

88
<!-- Translation layer, if any -->
9-
<!ENTITY % translation-defs SYSTEM "../%LANGDIR;/language-defs.ent">
10-
<!ENTITY % translation-snippets SYSTEM "../%LANGDIR;/language-snippets.ent">
11-
<!ENTITY % translation-extensions SYSTEM "../%LANGDIR;/extensions.ent">
129
%translation-defs;
1310
%translation-snippets;
1411
%translation-extensions;

0 commit comments

Comments
 (0)