for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the Subway WordPress Plugin Package.
*
* (c) Joseph Gabito <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
* PHP Version 5.4
* @category Subway\i18
* @package Subway
* @author Joseph G. <[email protected]>
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version GIT:github.com/codehaiku/subway
* @link github.com/codehaiku/subway The Plugin Repository
*/
namespace Subway;
if (! defined('ABSPATH') ) {
return;
}
* Register Plugin i18 (internationalization)
* @since 1.0
final class I18
{
* Class Constructor.
* @return void
@return
Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.
Please refer to the PHP core documentation on constructors.
public function __construct()
add_action('plugins_loaded', array( $this, 'subwayLocalizePlugin' ));
* Subway l8n callback.
public function subwayLocalizePlugin()
load_plugin_textdomain('subway', false, basename( dirname( __FILE__ ) ) . '/languages' );
$subwayi18 = new I18();
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.