File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -76,10 +76,10 @@ protected function getToken(?string $action = null) : string
7676 /**
7777 * Get language.
7878 *
79- * @access protected
79+ * @access public
8080 * @return string
8181 */
82- protected function getLanguage () : string
82+ public function getLanguage () : string
8383 {
8484 if ( $ this ->hasRequest ('--lang ' ) ) {
8585 return $ this ->getRequest ('--lang ' );
@@ -94,11 +94,11 @@ protected function getLanguage() : string
9494 * Translate string,
9595 * May require quotes escaping.
9696 *
97- * @access protected
97+ * @access public
9898 * @param string $string
9999 * @return string
100100 */
101- protected function translate (string $ string ) : string
101+ public function translate (string $ string ) : string
102102 {
103103 if ( $ string ) {
104104 $ lang = $ this ->getLanguage ();
@@ -111,11 +111,11 @@ protected function translate(string $string) : string
111111 /**
112112 * Translate array of strings.
113113 *
114- * @access protected
114+ * @access public
115115 * @param array $strings
116116 * @return array
117117 */
118- protected function translateArray (array $ strings = []) : array
118+ public function translateArray (array $ strings = []) : array
119119 {
120120 foreach ($ strings as $ key => $ value ) {
121121 $ strings [$ key ] = $ this ->translate ($ value );
You can’t perform that action at this time.
0 commit comments