Changeset 810176
- Timestamp:
- 11/25/2013 03:24:54 PM (12 years ago)
- Location:
- separator-widget/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (1 diff)
-
separator-widget.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
separator-widget/trunk/readme.txt
r803092 r810176 34 34 == Changelog == 35 35 36 = 1.0.1 = 37 * Added internationalization-support 38 * Added Swedish translation 39 36 40 = 1.0 = 37 41 * First release. -
separator-widget/trunk/separator-widget.php
r803088 r810176 3 3 * Plugin Name: Separator Widget 4 4 * Description: A separator widget 5 * Version: 1.0 6 * Author: Daniel Östman5 * Version: 1.0.1 6 * Author: Daniel Östman 7 7 * Author URI: http://www.danielostman.se 8 * Text Domain: separator-widget 8 9 * License: GPL2 9 10 */ … … 30 31 ); 31 32 33 /** 34 * Internationalization, load language files from plugin-folder /languages/ 35 */ 36 function myplugin_i18n() { 37 load_plugin_textdomain( 'separator-widget', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' ); 38 } 39 add_action('plugins_loaded', 'myplugin_i18n'); 40 32 41 33 42 class Halvfem_Separator_Widget extends WP_Widget { … … 39 48 parent::__construct( 40 49 'halvfem_separator_widget', // Base ID 41 __( 'Separator Widget', 'separator-widget' ), // Name50 __( 'Separator', 'separator-widget' ), // Name 42 51 array( 'description' => __( 'A separator', 'separator-widget' ), ) // Args 43 52 );
Note: See TracChangeset
for help on using the changeset viewer.