@@ -81,13 +81,6 @@ final class AAL_Main {
8181 */
8282 public $ notifications ;
8383
84- /**
85- * Load text domain
86- */
87- public function load_textdomain () {
88- load_plugin_textdomain ( 'aryo-activity-log ' );
89- }
90-
9184 /**
9285 * Construct
9386 */
@@ -105,8 +98,6 @@ protected function __construct() {
10598
10699 // set up our DB name
107100 $ wpdb ->activity_log = $ wpdb ->prefix . 'aryo_activity_log ' ;
108-
109- add_action ( 'plugins_loaded ' , array ( &$ this , 'load_textdomain ' ) );
110101 }
111102
112103 /**
@@ -119,8 +110,15 @@ protected function __construct() {
119110 * @return void
120111 */
121112 public function __clone () {
122- // Cloning instances of the class is forbidden
123- _doing_it_wrong ( __FUNCTION__ , __ ( 'Cheatin’ huh? ' , 'aryo-activity-log ' ), '2.0.7 ' );
113+ _doing_it_wrong (
114+ __FUNCTION__ ,
115+ sprintf (
116+ /* translators: %s: Class name. */
117+ __ ( 'Cloning instances of the singleton "%s" class is forbidden. ' , 'aryo-activity-log ' ),
118+ get_class ( $ this )
119+ ),
120+ '2.0.7 '
121+ );
124122 }
125123
126124 /**
@@ -130,8 +128,15 @@ public function __clone() {
130128 * @return void
131129 */
132130 public function __wakeup () {
133- // Unserializing instances of the class is forbidden
134- _doing_it_wrong ( __FUNCTION__ , __ ( 'Cheatin’ huh? ' , 'aryo-activity-log ' ), '2.0.7 ' );
131+ _doing_it_wrong (
132+ __FUNCTION__ ,
133+ sprintf (
134+ /* translators: %s: Class name. */
135+ __ ( 'Unserializing instances of the singleton "%s" class is forbidden. ' , 'aryo-activity-log ' ),
136+ get_class ( $ this )
137+ ),
138+ '2.0.7 '
139+ );
135140 }
136141
137142 /**
0 commit comments