Skip to content

Commit

Permalink
String translations management, code refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
GheorgheP committed Nov 28, 2014
1 parent 247d112 commit 005d287
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function get_population_options($multimedia_types, $custom_options)
$population_options = array();
$post_categories = $this->get_post_categories();
if (empty($post_categories)) {
$message = sprintf(__('%s extension needs configured categories in post types ', 'fw'), ucwords(str_replace('-', ' ', $this->get_name())));
$message = sprintf(__('%s extension needs configured categories in post types', 'fw'), ucwords(str_replace('-', ' ', $this->get_name())));
wp_die($message);
} else {
$population_options = array(
Expand Down
2 changes: 1 addition & 1 deletion extensions/population-method-categories/manifest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php if (!defined('FW')) die('Forbidden');

$manifest['name'] = __( 'Population Method - Categories ', 'fw' );
$manifest['name'] = __( 'Population Method - Categories', 'fw' );
$manifest['description'] = __( 'Population Method - Categories', 'fw' );

$manifest['version'] = '1.0.0';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function get_population_options($multimedia_types, $custom_options)

$options = array(
'wrapper-population-method-custom' => array(
'title' => __('Click to edit / Drag to reorder <span class="fw-slide-spinner spinner"></span>', 'fw'),
'title' => __('Click to edit / Drag to reorder', 'fw') . ' <span class="fw-slide-spinner spinner"></span>',
'type' => 'box',
'options' => array(
'custom-slides' =>
Expand All @@ -51,7 +51,7 @@ public function get_population_options($multimedia_types, $custom_options)
'selected' => array(
'type' => 'radio',
'attr' => array('class' => 'multimedia-radio-controls'),
'label' => __('Choose ', 'fw'),
'label' => __('Choose', 'fw'),
'choices' => $media_type_choices,
'value' => $media_type_values
)),
Expand Down
2 changes: 1 addition & 1 deletion extensions/population-method-custom/manifest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php if (!defined('FW')) die('Forbidden');

$manifest['name'] = __( 'Population Method - Custom ', 'fw' );
$manifest['name'] = __( 'Population Method - Custom', 'fw' );
$manifest['description'] = __( 'Population Method - Custom', 'fw' );

$manifest['version'] = '1.0.0';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function get_population_options($multimedia_types, $custom_options)
$population_options = array();
$post_categories = $this->get_post_categories();
if (empty($post_categories)) {
$message = sprintf(__('%s extension needs configured post categories in post types ', 'fw'), ucwords(str_replace('-', ' ', $this->get_name())));
$message = sprintf(__('%s extension needs configured post categories in post types', 'fw'), ucwords(str_replace('-', ' ', $this->get_name())));
wp_die($message);
} else {
$population_options = array(
Expand Down
2 changes: 1 addition & 1 deletion extensions/population-method-posts/manifest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php if (!defined('FW')) die('Forbidden');

$manifest['name'] = __( 'Population Method - Posts ', 'fw' );
$manifest['name'] = __( 'Population Method - Posts', 'fw' );
$manifest['description'] = __( 'Population Method - Posts', 'fw' );

$manifest['version'] = '1.0.0';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function get_population_options($multimedia_types, $custom_options)
$population_options = array();
$post_categories = $this->get_post_categories();
if (empty($post_categories)) {
$message = sprintf(__('%s extension needs configured tags in post types ', 'fw'), ucwords(str_replace('-', ' ', $this->get_name())));
$message = sprintf(__('%s extension needs configured tags in post types', 'fw'), ucwords(str_replace('-', ' ', $this->get_name())));
wp_die($message);
} else {
$population_options = array(
Expand Down
2 changes: 1 addition & 1 deletion extensions/population-method-tags/manifest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php if (!defined('FW')) die('Forbidden');

$manifest['name'] = __( 'Population Method - Tags ', 'fw' );
$manifest['name'] = __( 'Population Method - Tags', 'fw' );
$manifest['description'] = __( 'Population Method - Tags', 'fw' );

$manifest['version'] = '1.0.0';
Expand Down
2 changes: 1 addition & 1 deletion manifest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php if (!defined('FW')) die('Forbidden');

$manifest['name'] = __( 'Population Methods', 'fw' );
$manifest['description'] = __( '', 'fw' );
$manifest['description'] = '';
$manifest['version'] = '1.0.0';

$manifest['github_update'] = 'ThemeFuse/Unyson-PopulationMethods-Extension';

0 comments on commit 005d287

Please sign in to comment.