From 8890fcf62bd07773f182a440842ec1070684e9b3 Mon Sep 17 00:00:00 2001 From: Greg Ross Date: Mon, 2 Oct 2017 10:52:08 -0400 Subject: [PATCH] Coding standard updates. --- bin/locale-generator/locale-generator.php | 4 ++-- gp-templates/locales.php | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/bin/locale-generator/locale-generator.php b/bin/locale-generator/locale-generator.php index 79e13b6a0..be0785add 100644 --- a/bin/locale-generator/locale-generator.php +++ b/bin/locale-generator/locale-generator.php @@ -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' ) ); } @@ -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 ) { diff --git a/gp-templates/locales.php b/gp-templates/locales.php index 7bce6ac5a..7efef5b58 100644 --- a/gp-templates/locales.php +++ b/gp-templates/locales.php @@ -15,11 +15,11 @@ - - - - - + + + + + @@ -33,8 +33,8 @@ - - + +
slug ), $locale->english_name ); ?> slug ), $locale->native_name ); ?> slug ), $locale->slug ); ?>nplurals > 0 ) ? _e( 'Yes', 'glotpress' ) : print ''; ?>cldr_nplurals > 0 ) ? _e( 'Yes', 'glotpress' ) : print ''; ?>nplurals > 0 ) ? _e( 'Yes', 'glotpress' ) : print ''; ?>cldr_nplurals > 0 ) ? _e( 'Yes', 'glotpress' ) : print ''; ?>