Changeset 536870
- Timestamp:
- 04/26/2012 05:13:12 PM (14 years ago)
- Location:
- my-coderwall-badges/trunk
- Files:
-
- 3 added
- 3 edited
-
cw_badges.php (modified) (5 diffs)
-
cwbclass.php (modified) (1 diff)
-
i18n (added)
-
i18n/my-coderwall-badges-de_DE.mo (added)
-
i18n/my-coderwall-badges-de_DE.po (added)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
my-coderwall-badges/trunk/cw_badges.php
r517915 r536870 17 17 require_once('cwbclass.php'); 18 18 define('CWB_URLPATH', WP_PLUGIN_URL . '/' . plugin_basename(dirname(__FILE__))); 19 load_plugin_textdomain('my-coderwall-badges', false, 'my-coderwall-badges/i18n'); 19 20 global $cwb; 20 21 $cwb = new CWB(); … … 23 24 24 25 function cwb_init_admin() { 25 $ad_opt_page = add_menu_page( 'My CW Badges', 'My CW Badges',26 $ad_opt_page = add_menu_page(__('My CW Badges', 'my-coderwall-badges'), __('My CW Badges', 'my-coderwall-badges'), 26 27 'manage_options', 'cwbadges-plugin', 'cwb_options',CWB_URLPATH .'/css/coderwallicon.png'); 27 28 add_action('admin_print_styles-'.$ad_opt_page, wp_enqueue_style('cwb-css', CWB_URLPATH .'/css/style.css', false, false, 'all')); … … 32 33 $cwb_css_file = WP_PLUGIN_DIR . '/coderwall-badges/css/style.css'; 33 34 34 wp_register_style('cwb-css', $cwb_css_url);35 wp_enqueue_style('cwb-css', $cwb_css_file, false, false, 'all');35 wp_register_style('cwb-css', $cwb_css_url); 36 wp_enqueue_style('cwb-css', $cwb_css_file, false, false, 'all'); 36 37 } 37 38 38 39 function cwb_plugins_loaded(){ 39 register_sidebar_widget('Coderwall', 'widget_coderwall');40 wp_register_sidebar_widget('coderwall', 'Coderwall', 'widget_coderwall'); 40 41 } 41 42 … … 52 53 53 54 <div class="wrap"> 54 <p><div id="icon-users" class="icon32"></div><h2> My Coderwall Badges</h2></p>55 <p><div id="icon-users" class="icon32"></div><h2><?php _e('My Coderwall Badges', 'my-coderwall-badges'); ?></h2></p> 55 56 <div> 56 57 <div style="display: inline-block; float: left"> 57 <?php echo 'name: <h3>'.$cwb->get_name().'</h3>'; ?>58 <?php echo 'location: <h3>'.$cwb->get_location().'</h3>'; ?>58 <?php echo __('Name', 'my-coderwall-badges').': <h3>'.$cwb->get_name().'</h3>'; ?> 59 <?php echo __('Location', 'my-coderwall-badges').': <h3>'.$cwb->get_location().'</h3>'; ?> 59 60 </div> 60 61 <div style="display: inline-block; margin-left: 150px; margin-bottom: 125px;"> 61 62 <form name="cwb_form" method="post" action="<?php str_replace( '%7E', '~', $_SERVER['REQUEST_URI']); ?>"> 62 <label for="cwusername"> coderwall username: </label>63 <input id="cwusername" maxlength="45" size="25" name="cwusername" value="<?php echo $cwb->get_username(); ?>" />64 63 <label for="cwusername"><?php _e('Coderwall username', 'my-coderwall-badges'); ?>: </label> 64 <input id="cwusername" maxlength="45" size="25" name="cwusername" value="<?php echo $cwb->get_username(); ?>" /> 65 65 66 <input class="button-primary" type="submit" name="Save" value='<?php _e("Save"); ?>' /> 66 67 </form> … … 79 80 80 81 echo $before_widget . $before_title; 81 _e('My Coderwall Badges' );82 _e('My Coderwall Badges', 'my-coderwall-badges'); 82 83 echo $after_title; 83 84 echo $cwb->get_badges(); -
my-coderwall-badges/trunk/cwbclass.php
r517915 r536870 51 51 $this->badges = $badges_string; 52 52 } else { 53 $this->badges = 'No achievement earned yet!';53 $this->badges = __('No achievement earned yet!', 'my-coderwall-badges'); 54 54 } 55 55 } else { 56 $this->badges = 'Username not found!';56 $this->badges = __('Username not found!', 'my-coderwall-badges'); 57 57 } 58 58 } -
my-coderwall-badges/trunk/readme.txt
r517915 r536870 4 4 Requires at least: 3.0 5 5 Tested up to: 3.3.1 6 Stable tag: 0. 36 Stable tag: 0.4 7 7 8 8 gets your badges from coderwall website and let you show them on your blog. … … 38 38 == Changelog == 39 39 40 = 0.4 = 41 * German translation 42 40 43 = 0.3 = 41 44 * Added a simple widget.
Note: See TracChangeset
for help on using the changeset viewer.