Skip to content

Commit

Permalink
First pass of encapsulating all strings within translation echoers
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Lewis committed Apr 24, 2013
1 parent e3852b3 commit d57e75a
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 37 deletions.
2 changes: 1 addition & 1 deletion includes/templates/collabpress/content-activity.php
Expand Up @@ -5,7 +5,7 @@
</div>
<div class="clear"></div>
<div class="activity">
<h3>Activity</h3>
<h3><?php _e( 'Activity', 'collabpress' ); ?></h3>
<?php
// Get Current User
global $current_user, $cp;
Expand Down
2 changes: 1 addition & 1 deletion includes/templates/collabpress/content-calendar.php
Expand Up @@ -4,7 +4,7 @@
</div>
<div class="clear"></div>
<div class="calendar">
<h3>Calendar</h3>
<h3><?php _e( 'Calendar', 'collabpress' ); ?></h3>
<?php
$month = ! empty( $_REQUEST['month'] ) ? $_REQUEST['month'] : NULL;
$year = ! empty($_REQUEST['year'] ) ? $_REQUEST['year'] : NULL;
Expand Down
Expand Up @@ -5,7 +5,7 @@
</div>
<?php echo cp_project_title(); ?>
<div class="calendar">
<h3>Calendar</h3>
<h3><?php _e( 'Calendar', 'collabress' ); ?></h3>
<?php
$month = ! empty( $_REQUEST['month'] ) ? $_REQUEST['month'] : NULL;
$year = ! empty($_REQUEST['year'] ) ? $_REQUEST['year'] : NULL;
Expand Down
Expand Up @@ -5,19 +5,19 @@
</div>
<?php echo cp_project_title(); ?>
<div class="files">
<h3>Files</h3>
<h3><?php _e( 'Files', 'collabpress' ); ?></h3>
<?php if ( cp_has_files() ) : ?>
<?php while( cp_files() ) : cp_the_file(); ?>
<div class="collabpress-task">
<a href="<?php echo wp_get_attachment_url( get_the_ID() ); ?>"><?php the_title(); ?></a>
</div>
<?php endwhile; ?>
<?php endif; ?>
<a href="#inline_content" class="add-new-task">Upload file</a>
<a href="#inline_content" class="add-new-task"><?php _e( 'Upload file', 'collabpress' ); ?></a>
</div>
<div style='display:none'>
<div id='inline_content' style='padding:10px; background:#fff;'>
<h2>Add File</h2>
<h2><?php _e( 'Add File', 'collabpress' ); ?></h2>
<input type="hidden" id="cp_add_new_file_nonce" value="<?php echo wp_create_nonce( 'cp_add_new_file' ); ?>">
<input type="hidden" id="cp-project-id" value="<?php echo cp_get_project_id() ?>">
<table class="form-table">
Expand Down
26 changes: 13 additions & 13 deletions includes/templates/collabpress/content-single-project-tasks.php
Expand Up @@ -4,23 +4,23 @@
</div>
<?php echo cp_project_title(); ?>
<div class="tasks">
<h3>Tasks</h3>
<div class="toggle-view-completed-tasks">Toggle view completed tasks</div>
<h3><?php _e( 'Tasks', 'collabpress' ); ?></h3>
<div class="toggle-view-completed-tasks"><?php _e( 'Toggle view completed tasks', 'collabpress' ); ?></div>
<input type="hidden" id="toggle_user_preference_view_completed_tasks_nonce" value="<?php echo wp_create_nonce( 'toggle-user-preference-view-completed-task' ); ?>">
<?php cp_output_project_nested_task_lists_and_tasks_html_for_sort( cp_get_project_id() ); ?>
<?php if ( cp_check_permissions( 'settings_user_role' ) ) { ?>
<div>
<a href="#add_new_task_inline_content" class="add-new-task">+ Add new task</a>
<a href="#add_new_task_inline_content" class="add-new-task">+ <?php _e( 'Add new task', 'collabpress' ); ?></a>
</div>
<div>
<a href="#add_new_task_list_inline_content" class="add-new-task-list">+ Add new task list</a>
<a href="#add_new_task_list_inline_content" class="add-new-task-list">+ <?php _e( 'Add new task list', 'collabpress' ); ?></a>
</div>
<?php } ?>
</div>
</div>
<div style='display:none'>
<div id='add_new_task_inline_content' style='padding:10px; background:#fff;'>
<h2>Add Task</h2>
<h2><?php _e( 'Add Task', 'collabpress' ); ?></h2>
<input type="hidden" id="save_task_list_order_nonce" value="<?php echo wp_create_nonce( 'save-task-list-order' ); ?>">
<input type="hidden" id="add_new_task_nonce" value="<?php echo wp_create_nonce( 'add-new-task' ); ?>">
<input type="hidden" id="cp-project-id" value="<?php echo cp_get_project_id() ?>">
Expand Down Expand Up @@ -58,12 +58,12 @@
<th scope="row"><label for="cp-task-priority"><?php _e('Priority: ', 'collabpress') ?></label></th>
<td>
<select name="cp-task-priority" id="cp-task-priority">
<option value="Urgent">Urgent</option>
<option value="High">High</option>
<option value="Normal">Normal</option>
<option value="Low">Low</option>
<option value="Very Low">Very Low</option>
<option value="None" selected="selected">None</option>
<option value="Urgent"><?php _e( 'Urgent', 'collabpress' ); ?></option>
<option value="High"><?php _e( 'High', 'collabpress' ); ?></option>
<option value="Normal"><?php _e( 'Normal', 'collabpress' ); ?></option>
<option value="Low"><?php _e( 'Low', 'collabpress' ); ?></option>
<option value="Very Low"><?php _e( 'Very Low', 'collabpress' ); ?></option>
<option value="None" selected="selected"><?php _e( 'None', 'collabpress' ); ?></option>
</select>
</td>
</tr>
Expand All @@ -83,7 +83,7 @@
</p>
</div>
<div id='add_new_task_list_inline_content' style='padding:10px; background:#fff;'>
<h2>Add Task List</h2>
<h2><?php _e( 'Add Task List', 'collabpress' ); ?></h2>
<input type="hidden" id="add_new_task_list_nonce" value="<?php echo wp_create_nonce( 'add-new-task-list' ); ?>">
<input type="hidden" id="cp-project-task-list-id" value="<?php echo cp_get_project_id() ?>">
<table class="form-table">
Expand Down Expand Up @@ -160,7 +160,7 @@ function( response ) { }

// Delete task handler
$('.delete-task').click(function(i, el) {
var confirm_delete = confirm('Are you sure you want to delete this task?');
var confirm_delete = confirm( '<?php _e( 'Are you sure you want to delete this task?', 'collabpress' ); ?>' );

if ( ! confirm_delete )
return;
Expand Down
Expand Up @@ -4,14 +4,14 @@
<?php cp_project_links(); ?>
</div>
<?php echo cp_project_title(); ?>
<h3>Users</h3>
<h3><?php _e( 'Users', 'collabpress' ); ?></h3>
<div class="users">
<?php foreach ( cp_get_project_users() as $user ) {
echo get_avatar( $user->ID );
} ?>
</div>
<?php if ( cp_check_permissions( 'settings_user_role' ) ) { ?>
<a href="#inline_content" class="modify-users-link">Modify users</a>
<a href="#inline_content" class="modify-users-link"><?php _e( 'Modify users', 'collabpress' ); ?></a>
<?php } ?>
</div>
<div style='display:none'>
Expand Down
16 changes: 8 additions & 8 deletions includes/templates/collabpress/content-single-project.php
Expand Up @@ -4,19 +4,19 @@
</div>
<?php cp_project_title(); ?>
<div>
<a class="edit-project" href="#edit_project_inline_content">Edit Project</a>
<a class="edit-project" href="#edit_project_inline_content"><?php _e( 'Edit Project', 'collabpress' ); ?></a>
</div>
<div class="left-col" style="width: 50%; float: left;">
<h3>Users</h3>
<h3><?php _e( 'Users', 'collabpress' ); ?></h3>
<div class="users">
<?php foreach ( cp_get_project_users() as $user ) {
echo get_avatar( $user->ID );
} ?>
</div>
<a class="view-all-link" href="<?php cp_project_users_permalink(); ?>">View all users</a>
<a class="view-all-link" href="<?php cp_project_users_permalink(); ?>"><?php _e( 'View all users', 'collabpress' ); ?></a>
</div>
<div class="right-col" style="width: 50%; float: right;">
<h3>Tasks</h3>
<h3><?php _e( 'Tasks', 'collabpress' ); ?></h3>
<div class="tasks">
<?php if ( cp_has_tasks() ) : ?>
<?php while( cp_tasks() ) : cp_the_task(); ?>
Expand All @@ -26,8 +26,8 @@
<?php endwhile; ?>
<?php endif; ?>
</div>
<a class="view-all-link" href="<?php cp_project_tasks_permalink(); ?>"> View all tasks</a>
<h3>Files</h3>
<a class="view-all-link" href="<?php cp_project_tasks_permalink(); ?>"><?php _e( 'View all tasks', 'collabpress' ); ?></a>
<h3><?php _e( 'Files', 'collabpress' ); ?></h3>
<div class="files">
<?php if ( cp_has_files() ) : ?>
<?php while( cp_files() ) : cp_the_file(); ?>
Expand All @@ -37,15 +37,15 @@
<?php endwhile; ?>
<?php endif; ?>
</div>
<a class="view-all-link" href="<?php cp_project_files_permalink(); ?>">View all files</a>
<a class="view-all-link" href="<?php cp_project_files_permalink(); ?>"><?php _e( 'View all files', 'collabpress' ); ?></a>
</div>
<div style="clear:both"></div>

</div>
<div style='display:none'>
<div id='edit_project_inline_content' style='padding:10px; background:#fff;'>
<form id="edit-project-form">
<h2>Edit Project</h2>
<h2><?php _e( 'Edit Project', 'collabpress' ); ?></h2>
<input type="hidden" id="cp_edit_project_nonce" value="<?php echo wp_create_nonce( 'edit-project' ); ?>">
<input type="hidden" id="cp_delete_project_nonce" value="<?php echo wp_create_nonce( 'delete-project' ); ?>">
<input type="hidden" id="cp-project-id" value="<?php echo cp_get_project_id() ?>" />
Expand Down
14 changes: 7 additions & 7 deletions includes/templates/collabpress/content-single-task.php
Expand Up @@ -25,7 +25,7 @@
<div style='display:none'>
<div id='edit_task_inline_content' style='padding:10px; background:#fff;'>
<form id="edit-task-form">
<h2>Edit Task</h2>
<h2><?php _e( 'Edit Task', 'collabpress' ); ?></h2>
<input type="hidden" id="edit_task_nonce" value="<?php echo wp_create_nonce( 'edit-task' ); ?>" />
<input type="hidden" id="cp-project-id" value="<?php echo cp_get_project_id() ?>" />
<input type="hidden" id="cp-task-id" value="<?php echo cp_get_task_id() ?>" />
Expand Down Expand Up @@ -63,12 +63,12 @@
<th scope="row"><label for="cp-task-priority"><?php _e('Priority: ', 'collabpress') ?></label></th>
<td>
<select name="cp-task-priority" id="cp-task-priority">
<option <?php selected(cp_get_the_task_priority(), 'Urgent' ); ?> value="Urgent">Urgent</option>
<option <?php selected(cp_get_the_task_priority(), 'High' ); ?> value="High">High</option>
<option <?php selected(cp_get_the_task_priority(), 'Normal' ); ?> value="Normal">Normal</option>
<option <?php selected(cp_get_the_task_priority(), 'Low' ); ?> value="Low">Low</option>
<option <?php selected(cp_get_the_task_priority(), 'Very Low' ); ?> value="Very Low">Very Low</option>
<option <?php selected(cp_get_the_task_priority(), 'None' ); ?> value="None" selected="selected">None</option>
<option <?php selected(cp_get_the_task_priority(), 'Urgent' ); ?> value="Urgent"><?php _e( 'Urgent', 'collabpress' ); ?></option>
<option <?php selected(cp_get_the_task_priority(), 'High' ); ?> value="High"><?php _e( 'High', 'collabpress' ); ?></option>
<option <?php selected(cp_get_the_task_priority(), 'Normal' ); ?> value="Normal"><?php _e( 'Normal', 'collabpress' ); ?></option>
<option <?php selected(cp_get_the_task_priority(), 'Low' ); ?> value="Low"><?php _e( 'Low', 'collabpress' ); ?></option>
<option <?php selected(cp_get_the_task_priority(), 'Very Low' ); ?> value="Very Low"><?php _e( 'Very Low', 'collabpress' ); ?></option>
<option <?php selected(cp_get_the_task_priority(), 'None' ); ?> value="None" selected="selected"><?php _e( 'None', 'collabpress' ); ?></option>
</select>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion includes/templates/collabpress/dashboard.php
Expand Up @@ -17,7 +17,7 @@
<div class="collabpress-project new">
<a href="#inline_content" class="add-new-project">
<div class="plus-sign">+</div>
<h2>Add new project</h2>
<h2><?php _e( 'Add new project', 'collabpress' ); ?></h2>
</a>
</div>
<?php } ?>
Expand Down

0 comments on commit d57e75a

Please sign in to comment.