goba Tue Nov 26 14:52:49 2002 EDT Modified files: /phpdoc manual.xml.in Log: Adding fallback to English entities in case they are not translated. XML entity handling treats the first entity definition active (this is how DTD cutomization works for example), so if an entity is defined in a translation, the translated entity is used, otherwise the English entity is used. No need to add defs/snippets in all the languages anymore to maintain the translation's build success state. As long as some snippet is not translated, the English one will show up... Index: phpdoc/manual.xml.in diff -u phpdoc/manual.xml.in:1.138 phpdoc/manual.xml.in:1.139 --- phpdoc/manual.xml.in:1.138 Sun Oct 20 23:33:33 2002 +++ phpdoc/manual.xml.in Tue Nov 26 14:52:48 2002 @@ -2,11 +2,19 @@ <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "@srcdir@/dtds/dbxml-4.1.2/docbookx.dtd" [ +<!-- Add translated specific definitions and snippets --> <!ENTITY % language-defs SYSTEM "@srcdir@/@LANGDIR@/language-defs.ent"> <!ENTITY % language-snippets SYSTEM "@srcdir@/@LANGDIR@/language-snippets.ent"> %language-defs; %language-snippets; + +<!-- Fallback to English definitions and snippets (in case of missing translation) --> +<!ENTITY % language-defs.default SYSTEM "@srcdir@/en/language-defs.ent"> +<!ENTITY % language-snippets.default SYSTEM "@srcdir@/en/language-snippets.ent"> + +%language-defs.default; +%language-snippets.default; <!-- All global entities for the XML files --> <!ENTITY % global.entities SYSTEM "@srcdir@/entities/global.ent">
-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php