Skip to content

Commit

Permalink
Adding internationalization where needed
Browse files Browse the repository at this point in the history
  • Loading branch information
colegeissinger committed May 26, 2014
1 parent 65b3bfd commit 582a360
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion includes/class-wiki-wiki-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public static function text_field( $args ) {
public static function select_field( $args ) {
$values = get_option( 'wiki_wiki_settings' ); ?>
<select name="wiki_wiki_settings[<?php echo esc_attr( $args['name'] ); ?>]" id="<?php echo esc_attr( $args['id'] ); ?>">
<option value="">Select A Homepage</option>
<option value=""><?php _e( 'Select A Homepage', 'wiki_wiki' ); ?></option>
<?php foreach ( $args['options'] as $key => $value ) : ?>
<option value="<?php echo absint( $value->ID ); ?>"<?php selected( $values[ $args['name'] ], $value->ID ); ?>><?php echo esc_html( $value->post_title ); ?></option>
<?php endforeach; ?>
Expand Down
4 changes: 2 additions & 2 deletions templates/front-page-wiki.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
</header>

<aside class="search-wrapper">
<label for="resource-search" class="search-title">Find A Resource:</label> <input type="text" id="resource-search">
<label for="resource-search" class="search-title"><?php _e( 'Find A Resource:', 'wiki_wiki' ); ?></label> <input type="text" id="resource-search">
</aside>

<h2 class="page-title">Resource Categories</h2>
<h2 class="page-title"><?php _e( 'Resource Categories', 'wiki_wiki' ); ?></h2>
</section>

<?php get_sidebar( 'wiki' ); ?>
Expand Down
24 changes: 12 additions & 12 deletions templates/page-new-wiki.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,46 +15,46 @@

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<?php edit_post_link( __( 'Edit', 'wimp' ), '<span class="edit-link">', '</span>' ); ?>
<?php edit_post_link( __( 'Edit', 'wiki_wiki' ), '<span class="edit-link">', '</span>' ); ?>
</header><!-- .entry-header -->

<div class="entry-content">
<h1>Add New Wiki Page</h1>
<h1><?php _e( 'Add New Wiki Page', 'wiki_wiki' ); ?></h1>
<?php the_content(); ?>

<form action="" class="form-horizontal" role="form">
<div class="form-group">
<label for="wiki-title" class="col-sm-2 control-label input-lg">Title</label>
<div class="col-sm-10">
<input type="text" name="wiki-title" class="form-control" id="wiki-title" placeholder="Give it a good title... somethingy wimpy.">
<input type="text" name="wiki-title" class="form-control" id="wiki-title" placeholder="<?php _e( 'Give it a good title... somethingy wimpy.', 'wiki_wiki' ); ?>">
</div>
</div>
<div class="form-group">
<label for="wiki-content" class="col-sm-2 control-label">Content</label>
<label for="wiki-content" class="col-sm-2 control-label"><?php _e( 'Content', 'wiki_wiki' ); ?></label>
<div class="col-sm-10">
<?php wp_editor( '', 'wiki-content' ); ?>
</div>
</div>
<div class="form-group">
<label for="wiki-content" class="col-sm-2 control-label">Content</label>
<label for="wiki-category" class="col-sm-2 control-label"><?php _e( 'Category', 'wiki_wiki' ); ?></label>
<div class="col-sm-10">
<select name="" class="form-control" id="">
<option value="">-- Choose A Category --</option>
<select name="" class="form-control" id="wiki-category">
<option value=""><?php _e( '-- Choose A Category --', 'wiki_wiki' ); ?></option>
</select>
</div>
</div>
<div class="form-group">
<label for="wiki-content" class="col-sm-2 control-label">Parent</label>
<label for="wiki-parent" class="col-sm-2 control-label"><?php _e( 'Parent Wiki', 'wiki_wiki' ); ?></label>
<div class="col-sm-10">
<select name="" class="form-control" id="">
<option value="">-- Assign To A Parent --</option>
<select name="" class="form-control" id="wiki-parent">
<option value=""><?php _e( '-- Assign To A Parent --', 'wiki_wiki' ); ?></option>
</select>
<span class="help-block">Assign this new page as a child to an existing wiki page.</span>
<span class="help-block"><?php _e( 'Assign this new page as a child to an existing wiki page.', 'wiki_wiki' ); ?></span>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" class="btn btn-primary">Create</button>
<button type="submit" class="btn btn-primary"><?php _e( 'Create Wiki', 'wiki_wiki' ); ?></button>
</div>
</div>
</form>
Expand Down
12 changes: 6 additions & 6 deletions templates/taxonomy-category.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,22 @@
<section class="main-body" class="site-content" role="main">

<header>
<h1 class="page-title">WIMP WIKI<h1>
<h2>CATEGORIES</h2>
<p>Wimp wants to have a list of resources that everyone can reference at any time! This could be the best places to learn JavaScript, a list of CPA's, or the best Co-Working locations. We want this to be a wiki style so any Wimp member can come in and collaborate at any time. However, this area is still being built and should be available very shortly.</p>
<h1 class="page-title"><?php _e( 'WIMP WIKI', 'wiki_wiki' ); ?><h1>
<h2><?php _e( 'CATEGORIES', 'wiki_wiki' ); ?></h2>
<p><?php _e( 'Wimp wants to have a list of resources that everyone can reference at any time! This could be the best places to learn JavaScript, a list of CPA\'s, or the best Co-Working locations. We want this to be a wiki style so any Wimp member can come in and collaborate at any time. However, this area is still being built and should be available very shortly.', 'wiki_wiki' ); ?></p>
</header>

<aside class="search-wrapper">
<span class="search-title">Find A Resource:</span> <input type="text" id="resource-search">
<label class="search-title"><?php _e( 'Find A Resource:', 'wiki_wiki' ); ?></label> <input type="text" id="resource-search">
</aside>

<?php
echo '<h2 class="page-title">Resource Categories</h2>';
echo '<h2 class="page-title">' . __( 'Resource Categories', 'wiki_wiki' ) . '</h2>';

$args = array(
'hide_empty' => false
);
$cats = get_terms( 'cg_wikiwiki_categories', $args );
$cats = get_terms( 'wiki_wiki_categories', $args );

foreach ( $cats as $cat ) : ?>
<section class="wiki-cat-wrapper">
Expand Down

0 comments on commit 582a360

Please sign in to comment.