[geeklog-cvs] tools: Added support for the XMLSitemap plugin's language files

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sat Jun 6 16:54:47 EDT 2009


details:   http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/797eb8143c9f
changeset: 38:797eb8143c9f
user:      Dirk Haun <dirk at haun-online.de>
date:      Sat Jun 06 22:50:15 2009 +0200
description:
Added support for the XMLSitemap plugin's language files

diffstat:

 lm/README                 |   2 +-
 lm/include/xmlsitemap.inc |  59 +++++++++++++++++++++++++++++
 lm/lm.php                 |   2 +-
 lm/uplng.sh               |   1 +
 4 files changed, 62 insertions(+), 2 deletions(-)

diffs (95 lines):

diff -r d6cedd3522c2 -r 797eb8143c9f lm/README
--- a/lm/README	Sat May 30 14:35:37 2009 +0200
+++ b/lm/README	Sat Jun 06 22:50:15 2009 +0200
@@ -61,5 +61,5 @@
 1.0   now supports core language files and all 5 default plugins
 1.0.1 fixed handling of <br> tags and fixed accidentally created <brXHTML> tags
 1.0.2 added support for install script language files
-1.0.3 added $LANG_SECTEST
+1.0.3 added $LANG_SECTEST and the XMLSitemap plugin
 
diff -r d6cedd3522c2 -r 797eb8143c9f lm/include/xmlsitemap.inc
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/lm/include/xmlsitemap.inc	Sat Jun 06 22:50:15 2009 +0200
@@ -0,0 +1,59 @@
+<?php
+
+/* Reminder: always indent with 4 spaces (no tabs). */
+// +---------------------------------------------------------------------------+
+// | Geeklog 1.6                                                               |
+// +---------------------------------------------------------------------------+
+// | xmlsitemap.inc                                                            |
+// |                                                                           |
+// | Update a xmlsitemap language file by merging it with english.php          |
+// +---------------------------------------------------------------------------+
+// | Copyright (C) 2009 by the following authors:                              |
+// |                                                                           |
+// | Author:  Dirk Haun         - dirk AT haun-online DOT de                   |
+// +---------------------------------------------------------------------------+
+// |                                                                           |
+// | This program is free software; you can redistribute it and/or             |
+// | modify it under the terms of the GNU General Public License               |
+// | as published by the Free Software Foundation; either version 2            |
+// | of the License, or (at your option) any later version.                    |
+// |                                                                           |
+// | This program is distributed in the hope that it will be useful,           |
+// | but WITHOUT ANY WARRANTY; without even the implied warranty of            |
+// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             |
+// | GNU General Public License for more details.                              |
+// |                                                                           |
+// | You should have received a copy of the GNU General Public License         |
+// | along with this program; if not, write to the Free Software Foundation,   |
+// | Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.           |
+// |                                                                           |
+// +---------------------------------------------------------------------------+
+
+// save the english text strings
+$ENG_XMLSMAP = $LANG_XMLSMAP;
+
+$ENG_configsections['xmlsitemap'] = $LANG_configsections['xmlsitemap'];
+$ENG_confignames['xmlsitemap'] = $LANG_confignames['xmlsitemap'];
+$ENG_configsubgroups['xmlsitemap'] = $LANG_configsubgroups['xmlsitemap'];
+$ENG_fs['xmlsitemap'] = $LANG_fs['xmlsitemap'];
+$ENG_configselects['xmlsitemap'] = $LANG_configselects['xmlsitemap'];
+
+// now load the language file we want to update
+require_once $langfile;
+
+echo "\nglobal \$LANG32;\n";
+
+mergeArrays($ENG_XMLSMAP, $LANG_XMLSMAP, 'LANG_XMLSMAP', false);
+
+echo "\n";
+echo "// Localization of the Admin Configuration UI";
+
+mergeArrays($ENG_configsections['xmlsitemap'], $LANG_configsections['xmlsitemap'], "LANG_configsections['xmlsitemap']", false);
+mergeArrays($ENG_confignames['xmlsitemap'], $LANG_confignames['xmlsitemap'], "LANG_confignames['xmlsitemap']", false);
+mergeArrays($ENG_configsubgroups['xmlsitemap'], $LANG_configsubgroups['xmlsitemap'], "LANG_configsubgroups['xmlsitemap']", false);
+mergeArrays($ENG_fs['xmlsitemap'], $LANG_fs['xmlsitemap'], "LANG_fs['xmlsitemap']", false);
+echo "\n";
+echo "// Note: entries 0, 1, 9, and 12 are the same as in \$LANG_configselects['Core']";
+mergeArrays($ENG_configselects['xmlsitemap'], $LANG_configselects['xmlsitemap'], "LANG_configselects['xmlsitemap']", false);
+
+?>
diff -r d6cedd3522c2 -r 797eb8143c9f lm/lm.php
--- a/lm/lm.php	Sat May 30 14:35:37 2009 +0200
+++ b/lm/lm.php	Sat Jun 06 22:50:15 2009 +0200
@@ -30,7 +30,7 @@
 // |                                                                           |
 // +---------------------------------------------------------------------------+
 
-$VERSION = '1.0.2';
+$VERSION = '1.0.3';
 
 // Prevent PHP from reporting uninitialized variables
 error_reporting( E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR );
diff -r d6cedd3522c2 -r 797eb8143c9f lm/uplng.sh
--- a/lm/uplng.sh	Sat May 30 14:35:37 2009 +0200
+++ b/lm/uplng.sh	Sat Jun 06 22:50:15 2009 +0200
@@ -94,5 +94,6 @@
 doConvert $destpath $cvspath "polls"
 doConvert $destpath $cvspath "spamx"
 doConvert $destpath $cvspath "staticpages"
+doConvert $destpath $cvspath "xmlsitemap"
 doConvert $destpath $cvspath "install"
 



More information about the geeklog-cvs mailing list