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

Commit

Permalink
Merge pull request #29 from Yoast/JRF/CS/update-class-names
Browse files Browse the repository at this point in the history
CS: fix capitalization in class names
  • Loading branch information
omarreiss authored Feb 12, 2018
2 parents fd75581 + 87aef6a commit 8320d7a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}',
Expand All @@ -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}',
Expand All @@ -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}',
Expand All @@ -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}',
Expand Down
6 changes: 3 additions & 3 deletions src/i18n-module-wordpressorg.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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'] );
}

Expand Down
2 changes: 1 addition & 1 deletion src/i18n-module.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 8320d7a

Please sign in to comment.