File tree Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -700,14 +700,20 @@ function xml_configure()
700
700
701
701
if ( $ lang == 'en ' )
702
702
{
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 " );
708
707
}
709
708
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'> " ;
711
717
712
718
if ( $ ac ['CHMENABLED ' ] == 'yes ' )
713
719
$ conf [] = "<!ENTITY manual.chmonly SYSTEM './chm/manual.chm.xml'> " ;
Original file line number Diff line number Diff line change 6
6
%configure;
7
7
8
8
<!-- 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" >
12
9
%translation-defs;
13
10
%translation-snippets;
14
11
%translation-extensions;
You can’t perform that action at this time.
0 commit comments