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()
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'> " ;
Original file line number Diff line number Diff line change 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;
You can’t perform that action at this time.
0 commit comments