Skip to content

Commit

Permalink
Coding standard updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
toolstack committed Oct 2, 2017
1 parent 92d38f8 commit 8890fcf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions bin/locale-generator/locale-generator.php
Expand Up @@ -19,7 +19,7 @@
* or the script will do it automatically if the local file does not exist.
*
*/
if( ! file_exists( 'plurals.json' ) ) {
if ( ! file_exists( 'plurals.json' ) ) {
file_put_contents( 'plurals.json', file_get_contents( 'https://raw.githubusercontent.com/unicode-cldr/cldr-core/master/supplemental/plurals.json' ) );
}

Expand All @@ -28,7 +28,7 @@
$cldr_locales = $cldr_data['supplemental']['plurals-type-cardinal'];

// Create a working locales object.
$locales = new GP_Locales;
$locales = new GP_Locales();

// Run through the locales and see if we can find a matching CLDR locale.
foreach ( $locales->locales as $key => $value ) {
Expand Down
14 changes: 7 additions & 7 deletions gp-templates/locales.php
Expand Up @@ -15,11 +15,11 @@
<table class="tablesorter locales tablesorter-glotpress">
<thead>
<tr class="tablesorter-headerRow">
<th class="header tablesorter-header tablesorter-headerAsc"><?php _e( 'Name (in English)', 'glotpress' );?></th>
<th class="header tablesorter-header tablesorter-headerUnSorted"><?php _e( 'Native name', 'glotpress' );?></th>
<th class="header tablesorter-header tablesorter-headerUnSorted"><?php _e( 'Language code', 'glotpress' );?></th>
<th class="header tablesorter-header tablesorter-headerUnSorted"><?php _e( 'GetText Plurals', 'glotpress' );?></th>
<th class="header tablesorter-header tablesorter-headerUnSorted"><?php _e( 'CLDR Plurals', 'glotpress' );?></th>
<th class="header tablesorter-header tablesorter-headerAsc"><?php _e( 'Name (in English)', 'glotpress' ); ?></th>
<th class="header tablesorter-header tablesorter-headerUnSorted"><?php _e( 'Native name', 'glotpress' ); ?></th>
<th class="header tablesorter-header tablesorter-headerUnSorted"><?php _e( 'Language code', 'glotpress' ); ?></th>
<th class="header tablesorter-header tablesorter-headerUnSorted"><?php _e( 'GetText Plurals', 'glotpress' ); ?></th>
<th class="header tablesorter-header tablesorter-headerUnSorted"><?php _e( 'CLDR Plurals', 'glotpress' ); ?></th>
</tr>
</thead>
<tbody>
Expand All @@ -33,8 +33,8 @@
<td><?php echo gp_link_get( gp_url_join( gp_url_current(), $locale->slug ), $locale->english_name ); ?></td>
<td><?php echo gp_link_get( gp_url_join( gp_url_current(), $locale->slug ), $locale->native_name ); ?>
<td><?php echo gp_link_get( gp_url_join( gp_url_current(), $locale->slug ), $locale->slug ); ?></td>
<td class="locales-center"><?php ( $locale->nplurals > 0 ) ? _e( 'Yes', 'glotpress' ) : print ''; ?></td>
<td class="locales-center"><?php ( $locale->cldr_nplurals > 0 ) ? _e( 'Yes', 'glotpress' ) : print ''; ?></td>
<td class="locales-center"><?php ( $locale->nplurals > 0 ) ? _e( 'Yes', 'glotpress' ) : print ''; ?></td>
<td class="locales-center"><?php ( $locale->cldr_nplurals > 0 ) ? _e( 'Yes', 'glotpress' ) : print ''; ?></td>
</tr>
<?php endforeach; ?>
</tbody>
Expand Down

0 comments on commit 8890fcf

Please sign in to comment.