diff --git a/e107_plugins/social/admin_config.php b/e107_plugins/social/admin_config.php index 8f9923e38..e09d26b6a 100644 --- a/e107_plugins/social/admin_config.php +++ b/e107_plugins/social/admin_config.php @@ -42,7 +42,7 @@ class social_adminarea extends e_admin_dispatcher 'main/edit' => 'main/list' ); - protected $menuTitle = 'Social'; + protected $menuTitle = LAN_PLUGIN_SOCIAL_NAME; } @@ -52,7 +52,7 @@ class social_adminarea extends e_admin_dispatcher class social_ui extends e_admin_ui { - protected $pluginTitle = 'Social'; + protected $pluginTitle = LAN_PLUGIN_SOCIAL_NAME; protected $pluginName = 'social'; // protected $eventName = 'social-social'; // remove comment to enable event triggers in admin. // protected $table = 'social'; @@ -96,12 +96,12 @@ class social_ui extends e_admin_ui 'sharing_mode' => array('title'=> LAN_SOCIAL_ADMIN_24, 'type'=>'dropdown', 'tab'=>1, 'writeParms'=>array('optArray'=>array('normal'=>LAN_SOCIAL_ADMIN_25,'dropdown'=>LAN_SOCIAL_ADMIN_26,'off'=>LAN_SOCIAL_ADMIN_27)), 'data' => 'str','help'=>''), 'sharing_hashtags' => array('title'=> 'Hashtags', 'type'=>'tags', 'tab'=>1, 'data' => 'str','help'=>LAN_SOCIAL_ADMIN_28), - 'sharing_providers' => array('title'=> 'Providers', 'type'=>'checkboxes', 'tab'=>1, 'writeParms'=>array(), 'data' => 'str','help'=>''), + 'sharing_providers' => array('title'=> LAN_SOCIAL_ADMIN_39, 'type'=>'checkboxes', 'tab'=>1, 'writeParms'=>array(), 'data' => 'str','help'=>''), - 'xup_login_update_username' => array('title'=> 'Update User Display Name ', 'type'=>'bool', 'tab'=>0, 'writeParms'=>array(), 'data' => 'str','help'=>''), - 'xup_login_update_avatar' => array('title'=> 'Update User Avatar', 'type'=>'bool', 'tab'=>0, 'writeParms'=>array(), 'data' => 'str','help'=>''), + 'xup_login_update_username' => array('title'=> LAN_SOCIAL_ADMIN_40, 'type'=>'bool', 'tab'=>0, 'writeParms'=>array(), 'data' => 'str','help'=>''), + 'xup_login_update_avatar' => array('title'=> LAN_SOCIAL_ADMIN_41, 'type'=>'bool', 'tab'=>0, 'writeParms'=>array(), 'data' => 'str','help'=>''), - 'og_image' => array('title'=> "Custom Image", 'type'=>'image', 'tab'=>5, 'data' => 'str','help'=>'og:image'), + 'og_image' => array('title'=> LAN_SOCIAL_ADMIN_42, 'type'=>'image', 'tab'=>5, 'data' => 'str','help'=>'og:image'), ); diff --git a/e107_plugins/social/e_admin.php b/e107_plugins/social/e_admin.php index 4e7ffce0c..9d2b0bb69 100644 --- a/e107_plugins/social/e_admin.php +++ b/e107_plugins/social/e_admin.php @@ -41,7 +41,7 @@ class social_admin if($this->twitterActive == true) { - $config['fields']['twitter'] = array ( 'title' =>"Post to Twitter", 'type' => 'text', 'tab'=>2, 'writeParms'=> array('size'=>'xxlarge', 'placeholder'=>'Type your tweet here.'), 'width' => 'auto', 'help' => '', 'readParms' => '', 'class' => 'left', 'thclass' => 'left', ); + $config['fields']['twitter'] = array ( 'title' =>LAN_SOCIAL_202, 'type' => 'text', 'tab'=>2, 'writeParms'=> array('size'=>'xxlarge', 'placeholder'=>LAN_SOCIAL_203), 'width' => 'auto', 'help' => '', 'readParms' => '', 'class' => 'left', 'thclass' => 'left', ); } break; } @@ -75,4 +75,4 @@ class social_admin -?> \ No newline at end of file +?> diff --git a/e107_plugins/social/e_comment.php b/e107_plugins/social/e_comment.php index c4f0e907b..b45bbccbb 100644 --- a/e107_plugins/social/e_comment.php +++ b/e107_plugins/social/e_comment.php @@ -8,6 +8,8 @@ * */ +e107::lan('social',false, true); + class social_comment { private $facebookActive; @@ -34,7 +36,7 @@ class social_comment if($engine == 'social::facebook' && empty($this->facebookActive)) { - e107::getMessage()->addInfo("Facebook comments requires that you have a facebook App ID. See the 'social login' area in admin-preferences to add one."); + e107::getMessage()->addInfo(LAN_SOCIAL_WARNING); } $config = array(); @@ -51,7 +53,7 @@ class social_comment if(!deftrue('SOCIAL_FACEBOOK_INIT') && ADMIN) { - return "