[gnomeweb-wp] proper translation support for 404 page



commit 283ea994dee620e25e1ed6e1c35133bb386b08f5
Author: Vinicius Depizzol <vdepizzol gmail com>
Date:   Sun Aug 29 23:39:27 2010 -0300

    proper translation support for 404 page

 wp-content/themes/gnome-grass/404.php    |   18 ++++++++++++++++--
 wp-content/themes/gnome-grass/footer.php |    2 +-
 wp-content/themes/gnome-grass/header.php |    2 +-
 3 files changed, 18 insertions(+), 4 deletions(-)
---
diff --git a/wp-content/themes/gnome-grass/404.php b/wp-content/themes/gnome-grass/404.php
index 76cf1bc..ca2cc88 100644
--- a/wp-content/themes/gnome-grass/404.php
+++ b/wp-content/themes/gnome-grass/404.php
@@ -20,12 +20,26 @@ require_once("header.php"); ?>
                         <hr />
                         
                         <div class="grid_5 alpha">
-                            <p><?php _e( 'For now, you may want to go to the home page to start from beginning or try your luck in the search form bellow.', 'grass'); ?></p>
+                            <p><?php
+                            
+                            printf(
+                                __( 'For now, you may want to go to the <a href="%1$s">home page</a> to start from beginning or try your luck in the search form bellow.', 'grass'),
+                                get_bloginfo('url')
+                            );
+                            
+                            ?></p>
                             <?php get_search_form(); ?>
                         </div>
                         
                         <div class="grid_5 omega">
-                            <p>If you think there is a bug in some link around GNOME website, please, we ask you to <a href="https://bugzilla.gnome.org/enter_bug.cgi?product=website&component=www.gnome.org";>report a bug</a>. Thank you.</p>
+                            <p><?php
+                            
+                            printf(
+                                __('If you think there is a bug in some link around GNOME website, please, we ask you to <a href="%1$s">report a bug</a>. Thank you.', 'grass'),
+                                'https://bugzilla.gnome.org/enter_bug.cgi?product=website&component=www.gnome.org'
+                            );
+                            
+                            ?></p>
                         </div>
                 </div>
                 
diff --git a/wp-content/themes/gnome-grass/footer.php b/wp-content/themes/gnome-grass/footer.php
index 6294c85..5c0d23b 100644
--- a/wp-content/themes/gnome-grass/footer.php
+++ b/wp-content/themes/gnome-grass/footer.php
@@ -68,4 +68,4 @@
     </div>
     <?php
     wp_footer();
-    ?>
+    ?>   
diff --git a/wp-content/themes/gnome-grass/header.php b/wp-content/themes/gnome-grass/header.php
index 19cdcd9..cb80d2d 100644
--- a/wp-content/themes/gnome-grass/header.php
+++ b/wp-content/themes/gnome-grass/header.php
@@ -28,7 +28,7 @@
     <!-- header -->
     <div id="header" class="container_12">
         <div id="logo" class="grid_3">
-            <h1><a title="<?php _e( 'Go to home page', 'grass' ); ?>" href="<?php bloginfo('url'); ?>/"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/gnome-logo.png" alt="<?php echo _e('GNOME: The Free Software Desktop Project', 'grass');?>" /></a></h1>
+            <h1><a title="<?php _e( 'Go to home page', 'grass' ); ?>" href="<?php bloginfo('url'); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/gnome-logo.png" alt="<?php echo _e('GNOME: The Free Software Desktop Project', 'grass');?>" /></a></h1>
         </div>
         <div id="top_bar" class="grid_9">
             <div class="left">



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