Skip to content
This repository was archived by the owner on Sep 28, 2023. It is now read-only.

Commit 8320d7a

Browse files
authored
Merge pull request #29 from Yoast/JRF/CS/update-class-names
CS: fix capitalization in class names
2 parents fd75581 + 87aef6a commit 8320d7a

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Alternatively you can include the library as a submodule.
2121
Make sure the class is loaded and instantiate it like this:
2222

2323
```php
24-
new Yoast_I18n_v3(
24+
new Yoast_I18n_V3(
2525
array(
2626
'textdomain' => '{your text domain}',
2727
'project_slug' => '{your probject slug}',
@@ -38,7 +38,7 @@ new Yoast_I18n_v3(
3838
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:
3939

4040
```php
41-
new Yoast_I18n_WordPressOrg_v3(
41+
new Yoast_I18n_WordPressOrg_V3(
4242
array(
4343
'textdomain' => '{your text domain}',
4444
'plugin_name' => '{your plugin name}',
@@ -52,7 +52,7 @@ new Yoast_I18n_WordPressOrg_v3(
5252
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.
5353

5454
```php
55-
$i18n_module = new Yoast_I18n_v3(
55+
$i18n_module = new Yoast_I18n_V3(
5656
array(
5757
'textdomain' => '{your text domain}',
5858
'project_slug' => '{your probject slug}',
@@ -70,7 +70,7 @@ $message = $i18n_module->get_promo_message();
7070
```
7171

7272
```php
73-
$i18n_module = new Yoast_I18n_WordPressOrg_v3(
73+
$i18n_module = new Yoast_I18n_WordPressOrg_V3(
7474
array(
7575
'textdomain' => '{your text domain}',
7676
'plugin_name' => '{your plugin name}',

src/i18n-module-wordpressorg.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
/**
99
* The Yoast i18n module with a connection to WordPress.org.
1010
*/
11-
class Yoast_I18n_WordPressOrg_v3 {
11+
class Yoast_I18n_WordPressOrg_V3 {
1212

1313
/**
1414
* The i18n object that presents the user with the notification.
1515
*
16-
* @var yoast_i18n_v3
16+
* @var yoast_i18n_V3
1717
*/
1818
protected $i18n;
1919

@@ -28,7 +28,7 @@ class Yoast_I18n_WordPressOrg_v3 {
2828
public function __construct( $args, $show_translation_box = true ) {
2929
$args = $this->set_defaults( $args );
3030

31-
$this->i18n = new Yoast_I18n_v3( $args, $show_translation_box );
31+
$this->i18n = new Yoast_I18n_V3( $args, $show_translation_box );
3232
$this->set_api_url( $args['textdomain'] );
3333
}
3434

src/i18n-module.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* This class defines a promo box and checks your translation site's API for stats about it,
1010
* then shows them to the user.
1111
*/
12-
class Yoast_I18n_v3 {
12+
class Yoast_I18n_V3 {
1313

1414
/**
1515
* Your translation site's logo.

0 commit comments

Comments
 (0)