diff --git a/README.md b/README.md index b978fb8..d9384bb 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Alternatively you can include the library as a submodule. Make sure the class is loaded and instantiate it like this: ```php -new Yoast_I18n_v3( +new Yoast_I18n_V3( array( 'textdomain' => '{your text domain}', 'project_slug' => '{your probject slug}', @@ -38,7 +38,7 @@ new Yoast_I18n_v3( Because translate.wordpress.org is also a GlotPress installation you can use the i18n-module to promote translation your plugin on there. To do this you can use the dedicated wordpress.org class: ```php -new Yoast_I18n_WordPressOrg_v3( +new Yoast_I18n_WordPressOrg_V3( array( 'textdomain' => '{your text domain}', 'plugin_name' => '{your plugin name}', @@ -52,7 +52,7 @@ new Yoast_I18n_WordPressOrg_v3( Since 3.0.0 you can also decide to render the message in a message-box of your own, just provide the second argument to the constructor as `false` to disable the showing of the box by the module itself. ```php -$i18n_module = new Yoast_I18n_v3( +$i18n_module = new Yoast_I18n_V3( array( 'textdomain' => '{your text domain}', 'project_slug' => '{your probject slug}', @@ -70,7 +70,7 @@ $message = $i18n_module->get_promo_message(); ``` ```php -$i18n_module = new Yoast_I18n_WordPressOrg_v3( +$i18n_module = new Yoast_I18n_WordPressOrg_V3( array( 'textdomain' => '{your text domain}', 'plugin_name' => '{your plugin name}', diff --git a/src/i18n-module-wordpressorg.php b/src/i18n-module-wordpressorg.php index 63e2b92..d24a39a 100644 --- a/src/i18n-module-wordpressorg.php +++ b/src/i18n-module-wordpressorg.php @@ -8,12 +8,12 @@ /** * The Yoast i18n module with a connection to WordPress.org. */ -class Yoast_I18n_WordPressOrg_v3 { +class Yoast_I18n_WordPressOrg_V3 { /** * The i18n object that presents the user with the notification. * - * @var yoast_i18n_v3 + * @var yoast_i18n_V3 */ protected $i18n; @@ -28,7 +28,7 @@ class Yoast_I18n_WordPressOrg_v3 { public function __construct( $args, $show_translation_box = true ) { $args = $this->set_defaults( $args ); - $this->i18n = new Yoast_I18n_v3( $args, $show_translation_box ); + $this->i18n = new Yoast_I18n_V3( $args, $show_translation_box ); $this->set_api_url( $args['textdomain'] ); } diff --git a/src/i18n-module.php b/src/i18n-module.php index d114167..59e353c 100644 --- a/src/i18n-module.php +++ b/src/i18n-module.php @@ -9,7 +9,7 @@ * This class defines a promo box and checks your translation site's API for stats about it, * then shows them to the user. */ -class Yoast_I18n_v3 { +class Yoast_I18n_V3 { /** * Your translation site's logo.