Skip to content
Browse files

Rename text domain

  • Loading branch information...
1 parent 265feaf commit 49e33f7b58dbd75b7283ba4bcdd676eacb0f363b @toscho committed Dec 25, 2011
Showing with 16 additions and 9 deletions.
  1. +1 −1 class.Unfiltered_Text_Widget.php
  2. +1 −1 footer.php
  3. +14 −7 functions.php
View
2 class.Unfiltered_Text_Widget.php
@@ -16,7 +16,7 @@ public function __construct()
parent::__construct(
'unfiltered_text'
, __( 'Unfiltered Text', 'fefe' )
- , array( 'description' => __( 'Pure Markup', 'fefe' ) )
+ , array( 'description' => __( 'Pure Markup', 'theme_ftt' ) )
, array( 'width' => 300, 'height' => 150 )
);
}
View
2 footer.php
@@ -3,7 +3,7 @@
* @package Fefe Tribute Theme
*/
?><div align=right><?php
-! dynamic_sidebar( 'fefe-footer' ) and print 'Proudly made with PHP, MySQL and WordPress';
+! dynamic_sidebar( 'foot' ) and print 'Proudly made with PHP, MySQL and WordPress';
?></div>
<?php
wp_footer();
View
21 functions.php
@@ -38,11 +38,17 @@ function ftt_strip_first_p( $content )
*/
function ftt_searchform()
{
- $query = esc_attr( apply_filters( 'the_search_query', get_search_query( false ) ) );
+ $query = esc_attr(
+ apply_filters(
+ 'the_search_query'
+ , get_search_query( FALSE )
+ )
+ );
$url = home_url( '/' );
// The original has no label.
- $label = __( 'Suchbegriff:', 'fefe' );
- return "<form method=GET action='$url'><label>$label <input name=s value='$query'><input type=submit></label></form>";
+ $label = __( 'Suchbegriff: ', 'theme_ftt' );
+ return "<form method=GET action='$url'><label>$label<input name=s
+ value='$query'><input type=submit></label></form>";
}
@@ -53,11 +59,12 @@ function ftt_searchform()
*/
function ftt_widgets_setup()
{
+ $desc = __( 'Nutze hierzu das Widget Unfiltered Text', 'theme_ftt' );
register_sidebar(
array (
- 'name' => __( 'Header-Untertitel', 'fefe' )
+ 'name' => __( 'Header-Untertitel', 'theme_ftt' )
, 'id' => 'head'
- , 'description' => __( 'Nutze hierzu das Widget Unfiltered Text', 'fefe' )
+ , 'description' => $desc
, 'before_widget' => ''
, 'after_widget' => ''
, 'before_title' => ''
@@ -66,10 +73,10 @@ function ftt_widgets_setup()
);
register_sidebar(
array (
- 'name' => __( 'Fußzeile', 'fefe' )
+ 'name' => __( 'Fußzeile', 'theme_ftt' )
// You cannot name it just 'footer' or WordPress breaks in widgets.php.
, 'id' => 'foot'
- , 'description' => __( 'Nutze hierzu das Widget Unfiltered Text', 'fefe' )
+ , 'description' => $desc
, 'before_widget' => ''
, 'after_widget' => ''
, 'before_title' => ''

0 comments on commit 49e33f7

Please sign in to comment.
Something went wrong with that request. Please try again.