File tree 1 file changed +10
-4
lines changed
1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -21,10 +21,16 @@ public function initialize()
21
21
}
22
22
}
23
23
24
- // public function onStartup()
25
- // {
26
- // Translator::load($this->languageModel->getCurrentLanguage(), __DIR__ . '/Locale');
27
- // }
24
+ public function onstartup ()
25
+ {
26
+ //translator::load($this->languagemodel->getcurrentlanguage(), __dir__ . '/locale');
27
+ if ($ this ->dateParser ->getUserDateFormat () != 'Y/m/d ' ){
28
+ $ this ->flash ->failure ('Persian Board plugin Error - Date Format : ' . $ this ->dateParser ->getUserDateFormat (). " please change it to: Y/m/d " );
29
+ }
30
+ elseif ($ this ->languageModel ->getCurrentLanguage () != 'fa_IR ' ){
31
+ $ this ->flash ->failure ('Persian Board plugin Error - to use this plugin you must change language to "Ùارسی" ' );
32
+ }
33
+ }
28
34
29
35
public function getPluginName ()
30
36
{
You can’t perform that action at this time.
0 commit comments