[gnomeweb-wp: 6/13] Removing translation stuff from the theme, there will be a plugin for this



commit 9018f13cfa88254b573cfd7bfecee935ee27d1af
Author: Lincoln de Sousa <lincoln comum org>
Date:   Thu Nov 11 23:26:52 2010 -0200

    Removing translation stuff from the theme, there will be a plugin for this
    
    Things related to translation stuff are going to be moved to a new plugin
    called wppo. I don't actually like to maintain the whole site in a single
    repo, so it will be added as a module or something like that.

 wp-content/themes/gnome-grass/database-export.php |   71 ---------------------
 wp-content/themes/gnome-grass/functions.php       |   16 -----
 2 files changed, 0 insertions(+), 87 deletions(-)
---
diff --git a/wp-content/themes/gnome-grass/functions.php b/wp-content/themes/gnome-grass/functions.php
index 01eddd9..df4d086 100644
--- a/wp-content/themes/gnome-grass/functions.php
+++ b/wp-content/themes/gnome-grass/functions.php
@@ -4,8 +4,6 @@
  * @subpackage Default_Theme
  */
 
-require_once ("database-export.php");
-
 add_editor_style("editor_style.css");
 
 add_theme_support('menus');
@@ -87,18 +85,4 @@ add_filter('gallery_style', create_function('$a', 'return preg_replace("%
 
 %s", "", $a);'));
 
-define (THEME_DIR, dirname (__FILE__));
-
-/* This action will be fired when a post/page is updated. It's used to
- * update (regenerate, actually) the pot file with all translatable
- * strings of the gnome.org website. */
-function gs_update_pot_file ($post) {
-  $podir = THEME_DIR . '/po/';
-  $xml_file = "{$podir}.tmp.xml";
-  file_put_contents ($xml_file, gs_generate_po_xml ());
-  exec ("/usr/bin/xml2po -o {$podir}gnome.org.pot $xml_file");
-  unlink ($xml_file);
-}
-add_action ('post_updated', 'gs_update_pot_file');
-
 ?>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]