Skip to content

Commit

Permalink
Switched textdomain from 'unwakeable_domain' to 'unwakeable'
Browse files Browse the repository at this point in the history
  • Loading branch information
tlongren committed Mar 1, 2011
1 parent a1b10f8 commit f4f9981
Show file tree
Hide file tree
Showing 27 changed files with 214 additions and 214 deletions.
6 changes: 3 additions & 3 deletions app/classes/archive.php
Expand Up @@ -15,9 +15,9 @@ function create_archive() {

if ( empty($archives_id) ) {
$archives_page = array();
$archives_page['post_content'] = __('Do not edit this page', 'unwakeable_domain');
$archives_page['post_excerpt'] = __('Do not edit this page', 'unwakeable_domain');
$archives_page['post_title'] = __('Archives', 'unwakeable_domain');
$archives_page['post_content'] = __('Do not edit this page', 'unwakeable');
$archives_page['post_excerpt'] = __('Do not edit this page', 'unwakeable');
$archives_page['post_title'] = __('Archives', 'unwakeable');
$archives_page['post_name'] = 'archivepage';
$archives_page['post_status'] = 'publish';
$archives_page['post_type'] = 'page';
Expand Down
10 changes: 5 additions & 5 deletions app/classes/header.php
Expand Up @@ -75,18 +75,18 @@ function display_options() {

?>
<li>
<h3><?php _e('Header', 'unwakeable_domain'); ?></h3>
<h3><?php _e('Header', 'unwakeable'); ?></h3>

<p class="description">
<?php
/*
printf( __('The current header size is <strong>%1$s px by %2$s px</strong>.', 'unwakeable_domain'),
printf( __('The current header size is <strong>%1$s px by %2$s px</strong>.', 'unwakeable'),
HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT
);
if ( extension_loaded('gd') and function_exists('gd_info') ) {
printf( __(' Use %s to customize the header.', 'unwakeable_domain'),
'<a href="themes.php?page=custom-header">' . __('Custom Image Header', 'unwakeable_domain') . '</a>'
printf( __(' Use %s to customize the header.', 'unwakeable'),
'<a href="themes.php?page=custom-header">' . __('Custom Image Header', 'unwakeable') . '</a>'
);
}
*/
Expand All @@ -97,7 +97,7 @@ function display_options() {
<tbody>
<tr>
<th scope="row">
<label for="k2-blog-tab"><?php _e('Rename the \'Blog\' tab:', 'unwakeable_domain'); ?></label>
<label for="k2-blog-tab"><?php _e('Rename the \'Blog\' tab:', 'unwakeable'); ?></label>
</th>
<td>
<input id="k2-blog-tab" name="k2[blogornoblog]" type="text" value="<?php form_option('unwakeable_blogornoblog'); ?>" />
Expand Down
16 changes: 8 additions & 8 deletions app/classes/k2.php
Expand Up @@ -16,7 +16,7 @@ class K2 {
*/
function init() {
// Loads localisation from K2's languages directory
load_theme_textdomain('unwakeable_domain', TEMPLATEPATH . '/languages');
load_theme_textdomain('unwakeable', TEMPLATEPATH . '/languages');

// Load required classes and includes
require_once(TEMPLATEPATH . '/app/includes/wp-compat.php');
Expand Down Expand Up @@ -79,7 +79,7 @@ function install() {

// Added 1.0-RC8
add_option('unwakeable_animations', '1', 'JavaScript Animation effects.');
add_option('unwakeable_entrymeta1', __('Published on %date% in %categories%. %comments% %tags%', 'unwakeable_domain'), 'Customized metadata format before entry content.');
add_option('unwakeable_entrymeta1', __('Published on %date% in %categories%. %comments% %tags%', 'unwakeable'), 'Customized metadata format before entry content.');
add_option('unwakeable_entrymeta2', '', 'Customized metadata format after entry content.');

$defaultjs = "// Lightbox v2.03.3 - Adds new images to lightbox\nif (typeof myLightbox != 'undefined' && myLightbox instanceof Lightbox && myLightbox.updateImageList) {\n\tmyLightbox.updateImageList();\n}\n";
Expand Down Expand Up @@ -182,15 +182,15 @@ function admin_init() {
* Adds K2 Options to Appearance menu, adds actions for head and scripts
*/
function add_options_menu() {
$page = add_theme_page(__('Unwakeable Options','unwakeable_domain'), __('Unwakeable Options','unwakeable_domain'), 'edit_themes', 'k2-options', array('K2', 'admin'));
$page = add_theme_page(__('Unwakeable Options','unwakeable'), __('Unwakeable Options','unwakeable'), 'edit_themes', 'k2-options', array('K2', 'admin'));

add_action( "admin_head-$page", array('K2', 'admin_head') );
add_action( "admin_print_scripts-$page", array('K2', 'admin_print_scripts') );

if ( function_exists('add_contextual_help') ) {
add_contextual_help($page,
'<a href="http://groups.google.com/group/k2-support/">' . __('K2 Support Group', 'unwakeable_domain') . '</a><br />' .
'<a href="http://code.google.com/p/kaytwo/issues/list">' . __('K2 Bug Tracker', 'unwakeable_domain') . '</a><br />'
'<a href="http://groups.google.com/group/k2-support/">' . __('K2 Support Group', 'unwakeable') . '</a><br />' .
'<a href="http://code.google.com/p/kaytwo/issues/list">' . __('K2 Bug Tracker', 'unwakeable') . '</a><br />'
);
}
}
Expand All @@ -211,7 +211,7 @@ function admin_head() {
?>
<script type="text/javascript" charset="utf-8">
//<![CDATA[
var defaults_prompt = "<?php _e('Do you want to restore K2 to default settings? This will remove all your K2 settings.', 'unwakeable_domain'); ?>";
var defaults_prompt = "<?php _e('Do you want to restore K2 to default settings? This will remove all your K2 settings.', 'unwakeable'); ?>";
//]]>
</script>
<link type="text/css" rel="stylesheet" href="<?php get_template_directory_uri(); ?>/css/options.css" />
Expand Down Expand Up @@ -487,13 +487,13 @@ function init_scripts() {
jQuery(document).ready(function(){
<?php /* LiveSearch */ if ( '1' == get_option('unwakeable_livesearch') ): ?>
K2.LiveSearch = new LiveSearch(
"<?php esc_attr_e('Type and Wait to Search','unwakeable_domain'); ?>"
"<?php esc_attr_e('Type and Wait to Search','unwakeable'); ?>"
);
<?php endif; ?>

<?php /* Rolling Archives */ if ( '1' == get_option('unwakeable_rollingarchives') ): ?>
K2.RollingArchives = new RollingArchives(
"<?php esc_attr_e('Page %1$d of %2$d', 'unwakeable_domain'); ?>"
"<?php esc_attr_e('Page %1$d of %2$d', 'unwakeable'); ?>"
);

jQuery('body').addClass('rollingarchives');
Expand Down
26 changes: 13 additions & 13 deletions app/classes/styles.php
Expand Up @@ -162,32 +162,32 @@ function display_options() {

$path_options = array(
'%k2%' => 'unwakeable',
'%child%' => __('Child Theme', 'unwakeable_domain'),
'%child%' => __('Child Theme', 'unwakeable'),
'%content%' => 'wp-content'
);
?>
<li>
<h3><?php _e('Styles', 'unwakeable_domain'); ?></h3>
<h3><?php _e('Styles', 'unwakeable'); ?></h3>

<?php if ( ! is_dir($styles_dir) ): ?>
<div class="error">
<?php printf( __('The directory: <strong>%s</strong>, needed to store custom styles is missing. For you to be able to use custom styles, you need to add this directory.', 'unwakeable_domain'), $styles_dir ); ?>
<?php printf( __('The directory: <strong>%s</strong>, needed to store custom styles is missing. For you to be able to use custom styles, you need to add this directory.', 'unwakeable'), $styles_dir ); ?>
</div>
<?php endif; ?>

<p class="description">
<?php _e('No need to edit core files, K2 is highly customizable.', 'unwakeable_domain'); ?>
<a href="http://code.google.com/p/kaytwo/wiki/K2CSSandCustomCSS"><?php _e('Read&nbsp;more.', 'unwakeable_domain'); ?></a>
<?php _e('No need to edit core files, K2 is highly customizable.', 'unwakeable'); ?>
<a href="http://code.google.com/p/kaytwo/wiki/K2CSSandCustomCSS"><?php _e('Read&nbsp;more.', 'unwakeable'); ?></a>
</p>

<table class="form-table">
<tbody>
<tr>
<th scope="row">
<label for="k2-styles-dir"><?php _e('Styles Directory:', 'unwakeable_domain'); ?></label>
<label for="k2-styles-dir"><?php _e('Styles Directory:', 'unwakeable'); ?></label>
</th>
<td>
<label for="k2-styles-root" class="hidden"><?php _e('Styles Root Directory:', 'unwakeable_domain'); ?></label>
<label for="k2-styles-root" class="hidden"><?php _e('Styles Root Directory:', 'unwakeable'); ?></label>
<select id="k2-styles-root" name="k2[stylesroot]" style="width:auto;text-align:right;">
<?php foreach ($path_options as $value => $label): ?>
<option value="<?php echo $value; ?>" <?php selected( $value, $styles_path[0] ); ?>><?php echo $label; ?></option>
Expand All @@ -205,18 +205,18 @@ function display_options() {
<th class="manage-column column-cb check-column" scope="col">
<input type="checkbox" />
</th>
<th class="manage-column column-title"><?php _e('Style', 'unwakeable_domain'); ?></th>
<th class="manage-column column-author"><?php _e('Author', 'unwakeable_domain'); ?></th>
<th class="manage-column column-version"><?php _e('Version', 'unwakeable_domain'); ?></th>
<th class="manage-column column-tags"><?php _e('Tags', 'unwakeable_domain'); ?></th>
<th class="manage-column column-title"><?php _e('Style', 'unwakeable'); ?></th>
<th class="manage-column column-author"><?php _e('Author', 'unwakeable'); ?></th>
<th class="manage-column column-version"><?php _e('Version', 'unwakeable'); ?></th>
<th class="manage-column column-tags"><?php _e('Tags', 'unwakeable'); ?></th>
</tr>
</thead>

<tbody>
<?php if ( empty($style_files) ): ?>
<tr>
<td colspan="5">
<?php printf( __('There are no css files found in: <strong>%s</strong>.', 'unwakeable_domain'), $styles_dir); ?>
<?php printf( __('There are no css files found in: <strong>%s</strong>.', 'unwakeable'), $styles_dir); ?>
</td>
</tr>
<?php else: foreach( $style_files as $style ): ?>
Expand Down Expand Up @@ -362,7 +362,7 @@ function update_style_info() {
if ( !empty($data) and ($data['stylename'] != '') and ($data['stylelink'] != '') and ($data['author'] != '') ) {
// No custom style info
if ( $data['footer'] == '' ) {
$data['footer'] = __('Styled with <a href="%stylelink%" title="%style% by %author%">%style%</a>','unwakeable_domain');
$data['footer'] = __('Styled with <a href="%stylelink%" title="%style% by %author%">%style%</a>','unwakeable');
}

if ( strpos($data['footer'], '%') !== false ) {
Expand Down
60 changes: 30 additions & 30 deletions app/display/options.php
Expand Up @@ -6,10 +6,10 @@
// Get the sidebar
$column_number = get_option('unwakeable_columns');
$column_options = array(
1 => __('Single Column', 'unwakeable_domain'),
__('Two Columns', 'unwakeable_domain'),
__('Three Columns', 'unwakeable_domain'),
'dynamic' => __('Dynamic Columns', 'unwakeable_domain')
1 => __('Single Column', 'unwakeable'),
__('Two Columns', 'unwakeable'),
__('Three Columns', 'unwakeable'),
'dynamic' => __('Dynamic Columns', 'unwakeable')
);

// Get the asides category
Expand All @@ -21,37 +21,37 @@
// Get post meta format
$entrymeta1 = get_option('unwakeable_entrymeta1');
if ( empty($entrymeta1) ) {
$entrymeta1 = __('Published by %author% on %date% in %categories%. %comments%. %tags%.', 'unwakeable_domain');
$entrymeta1 = __('Published by %author% on %date% in %categories%. %comments%. %tags%.', 'unwakeable');
}
?>

<div class="wrap">
<?php if ( isset($_GET['defaults']) ): ?>
<div class="updated fade">
<p><?php _e('Unwakeable has been restored to default settings.', 'unwakeable_domain'); ?></p>
<p><?php _e('Unwakeable has been restored to default settings.', 'unwakeable'); ?></p>
</div>
<?php endif; ?>

<?php if ( isset($_GET['saved']) ): ?>
<div class="updated fade">
<p><?php _e('Unwakeable Options have been updated', 'unwakeable_domain'); ?></p>
<p><?php _e('Unwakeable Options have been updated', 'unwakeable'); ?></p>
</div>
<?php endif; ?>

<?php if ($dir_has_spaces): ?>
<div class="error">
<?php printf( __('The Unwakeable directory: <strong>%s</strong>, contains spaces. For Unwakeable to function properly, you will need to remove the spaces from the directory name.', 'unwakeable_domain'), TEMPLATEPATH ); ?>
<?php printf( __('The Unwakeable directory: <strong>%s</strong>, contains spaces. For Unwakeable to function properly, you will need to remove the spaces from the directory name.', 'unwakeable'), TEMPLATEPATH ); ?>
</div>
<?php endif; ?>

<?php do_action('k2_options_top'); ?>

<?php if ( function_exists('screen_icon') ) screen_icon(); ?>
<h2><?php _e('Unwakeable Options', 'unwakeable_domain'); ?></h2>
<h2><?php _e('Unwakeable Options', 'unwakeable'); ?></h2>
<form action="<?php echo esc_attr($_SERVER['REQUEST_URI']); ?>" method="post" id="k2-options">
<ul class="options-list">
<li>
<h3 class="main-label"><label for="k2-columns"><?php _e('Columns', 'unwakeable_domain'); ?></label></h3>
<h3 class="main-label"><label for="k2-columns"><?php _e('Columns', 'unwakeable'); ?></label></h3>

<p class="main-option">
<select id="k2-columns" name="k2[columns]">
Expand All @@ -62,75 +62,75 @@
</p>

<p class="description">
<?php _e('Select Dynamic Columns for Unwakeable to dynamically reduce the number of columns depending on user\'s browser width.', 'unwakeable_domain'); ?>
<?php _e('Select Dynamic Columns for Unwakeable to dynamically reduce the number of columns depending on user\'s browser width.', 'unwakeable'); ?>
</p>
</li>
<li>
<h3 class="main-label"><label for="k2-advnav"><?php _e('Advanced Navigation','unwakeable_domain'); ?></label></h3>
<h3 class="main-label"><label for="k2-advnav"><?php _e('Advanced Navigation','unwakeable'); ?></label></h3>

<p class="main-option">
<input id="k2-advnav" name="k2[advnav]" type="checkbox" value="1" <?php checked('1', get_option('unwakeable_livesearch')); ?> />
</p>

<p class="description"><?php _e('Seamlessly search and navigate old posts.','unwakeable_domain'); ?></p>
<p class="description"><?php _e('Seamlessly search and navigate old posts.','unwakeable'); ?></p>

<ul class="advanced-option">
<li>
<input id="k2-animations" name="k2[animations]" type="checkbox" value="1" <?php checked('1', get_option('unwakeable_animations')); ?> />
<label for="k2-animations"><?php _e('JavaScript Animations', 'unwakeable_domain'); ?></label>
<label for="k2-animations"><?php _e('JavaScript Animations', 'unwakeable'); ?></label>
</li>
<li>
<h4><label for="k2ajax"><?php _e('Ajax Success JavaScript', 'unwakeable_domain'); ?></label></h4>
<p class="description"><?php _e('JavaScript code that will be executed whenever Advanced Navigation is dynamically loaded.', 'unwakeable_domain'); ?></p>
<h4><label for="k2ajax"><?php _e('Ajax Success JavaScript', 'unwakeable'); ?></label></h4>
<p class="description"><?php _e('JavaScript code that will be executed whenever Advanced Navigation is dynamically loaded.', 'unwakeable'); ?></p>
<textarea id="k2ajax" name="k2[ajaxdonejs]" rows="8" cols="80" class="codepress javascript"><?php form_option('unwakeable_ajaxdonejs'); ?></textarea>
</li>
</ul>
</li>
<li>
<h3 class="main-label"><label for="k2-archives"><?php _e('Archives Page', 'unwakeable_domain'); ?></label></h3>
<h3 class="main-label"><label for="k2-archives"><?php _e('Archives Page', 'unwakeable'); ?></label></h3>

<p class="main-option">
<input id="k2-archives" name="k2[archives]" type="checkbox" value="add_archive" <?php checked('1', get_option('unwakeable_archives')); ?> />
</p>

<p class="description"><?php _e('Installs a pre-made archives page.', 'unwakeable_domain'); ?></p>
<p class="description"><?php _e('Installs a pre-made archives page.', 'unwakeable'); ?></p>
</li>
<li>
<h3 class="main-label"><label for="k2-asidescategory"><?php _e('Asides', 'unwakeable_domain'); ?></label></h3>
<h3 class="main-label"><label for="k2-asidescategory"><?php _e('Asides', 'unwakeable'); ?></label></h3>

<p class="main-option">
<select id="k2-asidescategory" name="k2[asidescategory]">
<option value="0" <?php selected($asides_id, '0'); ?>><?php _e('Off', 'unwakeable_domain'); ?></option>
<option value="0" <?php selected($asides_id, '0'); ?>><?php _e('Off', 'unwakeable'); ?></option>

<?php foreach ( $asides_cats as $cat ): ?>
<option value="<?php echo esc_attr($cat->cat_ID); ?>" <?php selected($asides_id, $cat->cat_ID); ?>><?php echo($cat->cat_name); ?></option>
<?php endforeach; ?>
</select>
</p>

<p class="description"><?php _e('Aside posts are styled differently and can be placed on the sidebar.', 'unwakeable_domain'); ?></p>
<p class="description"><?php _e('Aside posts are styled differently and can be placed on the sidebar.', 'unwakeable'); ?></p>
</li>

<li>
<h3><?php _e('Post Entry', 'unwakeable_domain'); ?></h3>
<h3><?php _e('Post Entry', 'unwakeable'); ?></h3>

<p class="description">
<?php _e('Use the following keywords: %author%, %categories%, %comments%, %date%, %tags% and %time%. <!--You can also use third-party shortcodes.-->', 'unwakeable_domain'); ?>
<?php _e('Use the following keywords: %author%, %categories%, %comments%, %date%, %tags% and %time%. <!--You can also use third-party shortcodes.-->', 'unwakeable'); ?>
</p>

<table class="form-table">
<tbody>
<tr>
<th scope="row">
<label for="k2-entry-meta-1"><?php _e('Top Meta:', 'unwakeable_domain'); ?></label>
<label for="k2-entry-meta-1"><?php _e('Top Meta:', 'unwakeable'); ?></label>
</th>
<td>
<input id="k2-entry-meta-1" name="k2[entrymeta1]" type="text" value="<?php form_option('unwakeable_entrymeta1'); ?>" />
</td>
</tr>
<tr>
<th scope="row">
<label for="k2-entry-meta-2"><?php _e('Bottom Meta:', 'unwakeable_domain'); ?></label>
<label for="k2-entry-meta-2"><?php _e('Bottom Meta:', 'unwakeable'); ?></label>
</th>
<td>
<input id="k2-entry-meta-2" name="k2[entrymeta2]" type="text" value="<?php form_option('unwakeable_entrymeta2'); ?>" />
Expand All @@ -141,14 +141,14 @@


<div id="meta-preview" class="postbox">
<h3 class="hndle"><span><?php _e('Preview', 'unwakeable_domain'); ?></span></h3>
<h3 class="hndle"><span><?php _e('Preview', 'unwakeable'); ?></span></h3>
<?php
query_posts('showposts=1&what_to_show=posts&order=desc');
if ( have_posts() ): the_post();
?>
<div id="post-<?php the_ID(); ?>" class="inside">
<div class="entry-head">
<h5 class="entry-title"><a href="#" rel="bookmark" title='<?php printf( __('Permanent Link to "%s"','unwakeable_domain'), esc_html(strip_tags(the_title('', '', false)),1) ); ?>'><?php the_title(); ?></a></h5>
<h5 class="entry-title"><a href="#" rel="bookmark" title='<?php printf( __('Permanent Link to "%s"','unwakeable'), esc_html(strip_tags(the_title('', '', false)),1) ); ?>'><?php the_title(); ?></a></h5>

<div class="entry-meta">
<?php k2_entry_meta(1); ?>
Expand Down Expand Up @@ -176,10 +176,10 @@
<?php wp_nonce_field('k2options'); ?>
<input type="hidden" name="k2-options-submit" value="k2-options-submit" />

<input type="submit" id="save" name="save" class="button-primary" value="<?php esc_attr_e('Save Changes', 'unwakeable_domain'); ?>" />
<input type="submit" id="save" name="save" class="button-primary" value="<?php esc_attr_e('Save Changes', 'unwakeable'); ?>" />

<input type="submit" name="restore-defaults" id="restore-defaults" onClick="return confirmDefaults();" value="<?php esc_attr_e('Revert to Unwakeable Defaults', 'unwakeable_domain'); ?>" class="button-secondary" />
<input type="submit" name="default-widgets" id="default-widgets-btn" class="button-secondary" value="<?php esc_attr_e('Install a Default Set of Widgets', 'unwakeable_domain'); ?>" />
<input type="submit" name="restore-defaults" id="restore-defaults" onClick="return confirmDefaults();" value="<?php esc_attr_e('Revert to Unwakeable Defaults', 'unwakeable'); ?>" class="button-secondary" />
<input type="submit" name="default-widgets" id="default-widgets-btn" class="button-secondary" value="<?php esc_attr_e('Install a Default Set of Widgets', 'unwakeable'); ?>" />
</div><!-- .submit -->
</form>

Expand Down

0 comments on commit f4f9981

Please sign in to comment.