hholzgra Tue Feb 8 20:07:59 2005 EDT
Modified files:
/phpdoc/en language-defs.ent
/phpdoc/scripts file-entities.php.in
/phpdoc/entities .cvsignore
Log:
make section headings for PECL and addon functions translatable
http://cvs.php.net/diff.php/phpdoc/en/language-defs.ent?r1=1.24&r2=1.25&ty=u
Index: phpdoc/en/language-defs.ent
diff -u phpdoc/en/language-defs.ent:1.24 phpdoc/en/language-defs.ent:1.25
--- phpdoc/en/language-defs.ent:1.24 Mon Jan 24 16:18:51 2005
+++ phpdoc/en/language-defs.ent Tue Feb 8 20:07:59 2005
@@ -1,4 +1,4 @@
-<!-- $Revision: 1.24 $ -->
+<!-- $Revision: 1.25 $ -->
<!-- Part titles used mostly in manual.xml itself -->
<!ENTITY PHPManual "PHP Manual">
@@ -10,6 +10,8 @@
<!ENTITY Features "Features">
<!ENTITY Security "Security">
<!ENTITY FunctionReference "Function Reference">
+<!ENTITY PECLReference "PECL Function Reference">
+<!ENTITY AddOnReference "Addon Extension Function Reference">
<!ENTITY Appendixes "Appendixes">
<!ENTITY PEAR "PEAR: the PHP Extension and Application
Repository">
<!ENTITY FAQ "FAQ: Frequently Asked Questions">
http://cvs.php.net/diff.php/phpdoc/scripts/file-entities.php.in?r1=1.25&r2=1.26&ty=u
Index: phpdoc/scripts/file-entities.php.in
diff -u phpdoc/scripts/file-entities.php.in:1.25
phpdoc/scripts/file-entities.php.in:1.26
--- phpdoc/scripts/file-entities.php.in:1.25 Tue Feb 8 13:24:58 2005
+++ phpdoc/scripts/file-entities.php.in Tue Feb 8 20:07:59 2005
@@ -17,7 +17,7 @@
| Gabor Hojtsy <[EMAIL PROTECTED]> |
+----------------------------------------------------------------------+
- $Id: file-entities.php.in,v 1.25 2005/02/08 18:24:58 hholzgra Exp $
+ $Id: file-entities.php.in,v 1.26 2005/02/09 01:07:59 hholzgra Exp $
*/
/**
@@ -69,6 +69,9 @@
// The translation subdir to use
$trans_dir = "$srcdir/@LANGDIR@";
+// The language encoding to use
+$encoding = "@ENCODING@";
+
// The original directory is in the base directory, and named "en"
$orig_dir = "$srcdir/en";
@@ -123,11 +126,11 @@
closedir($dh);
}
-$fp = fopen("$srcdir/entities/pecl_extensions.xml","w");
+$fp = fopen("$srcdir/entities/pecl-extensions.xml","w");
if(count($pecl_extensions)) {
- fputs($fp, "<?xml version='1.0' encoding='iso-8859-1' ?>
+ fputs($fp, "<?xml version='1.0' encoding='$encoding' ?>
<part id='pecl-funcref'>
- <title>PECL function reference</title><!-- TODO lang entity -->
+ <title>&PECLReference;</title>
");
foreach ($pecl_extensions as $ext) {
fputs($fp, " $ext\n");
@@ -136,7 +139,7 @@
}
fclose($fp);
-$entities[] = entstr("pecl.extensions", "entities/pecl_extensions.xml");
+$entities[] = entstr("pecl.extensions", "entities/pecl-extensions.xml");
// additional documentation embedded in external extension sources
$addon_extensions = array();
@@ -155,11 +158,11 @@
}
$addon_extensions[] = "&reference.$dirent.reference;";
}
-$fp = fopen("$srcdir/entities/addon_extensions.xml","w");
+$fp = fopen("$srcdir/entities/addon-extensions.xml","w");
if(count($addon_extensions)) {
- fputs($fp, "<?xml version='1.0' encoding='iso-8859-1' ?>
+ fputs($fp, "<?xml version='1.0' encoding='$encoding' ?>
<part id='addon-funcref'>
- <title>add-on function reference</title><!-- TODO lang entity -->
+ <title>&AddOnReference;</title>
");
foreach ($addon_extensions as $ext) {
fputs($fp, " $ext\n");
@@ -167,7 +170,7 @@
fputs($fp," </part>\n");
}
fclose($fp);
-$entities[] = entstr("addon.extensions", "addon_extensions.xml");
+$entities[] = entstr("addon.extensions", "entities/addon-extensions.xml");
// Open file for appending and write out all entitities
$fp = fopen("$script_out_dir/entities/file-entities.ent", "w");
http://cvs.php.net/diff.php/phpdoc/entities/.cvsignore?r1=1.5&r2=1.6&ty=u
Index: phpdoc/entities/.cvsignore
diff -u phpdoc/entities/.cvsignore:1.5 phpdoc/entities/.cvsignore:1.6
--- phpdoc/entities/.cvsignore:1.5 Thu Sep 2 18:28:30 2004
+++ phpdoc/entities/.cvsignore Tue Feb 8 20:07:59 2005
@@ -2,3 +2,5 @@
version.ent
missing-entities.ent
phpweb.ent
+pecl-extensions.xml
+addon-extensions.xml