• Ogłoszenie:

Octobercms translatable model file issue?

Wszystko odnośnie tworzenia grafiki - obróbka, problemy, oceny.
Tworzenia Stron internetowych - HTML, PHP, MySQL...

Octobercms translatable model file issue?

Postprzez AnneGodkoyj 19 Lip 2023, 06:34

reklama
In OctoberCMS, I have created a translatable model within a Custom Plugin using the Translate Plugin. The model code is as follows:


public $implement = [\RainLab\Translate\Behaviors\TranslatableModel::class];

public $translatable = ['image'];

public $attachOne = [
'image' => \System\Models\File::class,
];
I successfully added translated files using the Admin Backend, and I can view them in system_files.

However, when I attempt to access the model with the following code omegle owespeedtest, it shagle always returns the file that is set for 'en' (English) but not for 'fr' (French):


$model->lang('fr');
Could you please suggest a solution to this issue?
AnneGodkoyj
~user
 
Posty: 11
Dołączenie: 18 Sty 2023, 15:11



Octobercms translatable model file issue?

Postprzez telago8242 20 Lip 2023, 13:24

Thank you so much as you have been willing to share information with us. But do you know about the Canon Printer Offline Mac issue? No? This will help you.
telago8242
~user
 
Posty: 51
Dołączenie: 06 Cze 2023, 12:40




Powróć do Grafika & Webmastering

Kto jest na forum

Użytkownicy przeglądający to forum: Brak zarejestrowanych użytkowników oraz 17 gości