• Hello Fabrik Community

    Fabrik is now in the hands of the development team that brought you Fabrik for Joomla 4. We have recently transitioned the Fabrik site over to a new server and are busy trying to clean it up. We have upgraded the site to Joomla 4 and are running the latest version of Fabrik 4. We have also upgraded the Xenforo forum software to the latest version. Many of the widgets you might have been used to on the forum are no longer operational, many abandoned by the developers. We hope to bring back some of the important ones as we have time.

    Exciting times to be sure.

    The Fabrik 4.0 Official release is now available. In addition, the Fabrik codebase is now available in a public repository. See the notices about these in the announcements section

    We wish to shout out a very big Thank You to all of you who have made donations. They have really helped. But we can always use more...wink..wink..

    Also a big Thank You to those of you who have been assisting others in the forum. This takes a very big burden off of us as we work on bugs, the website and the future of Fabrik.

Multilingual fabrik

Dear sir:
I tried to Make Fabrik multilingual with Fabrik itself on my website. But failed as intro:http://fabrikar.com/forums/index.php?wiki/make-fabrik-multilingual-with-fabrik-itself/

Please refer to my web page:
http://121.40.127.139/CN/parts?resetfilters=0&clearordering=0&clearfilters=0

Maybe some detailed code need to be changed actually as follow:
$lab = strtoupper('{#__fabrik_labels___label}');
$ln = '{#__fabrik_labels___lang_code_raw}';
$override = '{#__fabrik_labels___override}';
$msg = $lab . '="' . $override . '"
'
;
$file = JPATH_SITE . '/language/overrides/' . $ln . '.override.ini';

Could you help me to solve it :
My set screenshot as attached:
 

Attachments

  • add data.GIF
    add data.GIF
    12.7 KB · Views: 179
  • form.GIF
    form.GIF
    34.8 KB · Views: 187
  • trigger.GIF
    trigger.GIF
    79.2 KB · Views: 199
  • database-labels table.GIF
    database-labels table.GIF
    1.4 KB · Views: 154
  • fabrik-add data error.GIF
    fabrik-add data error.GIF
    48 KB · Views: 182
Can't say I know the answer - but I have a few questions.
In the form php plugin settings... Why is the 'On' setting set to Edit? (Or is this because you only want to trigger the multilingual thing if this form has been been completed?) And why is the 'Process script' set to "End of form submission (onAfterProcess)"? Wouldn't you want this multilingual patch to be initiated before the form is loaded?

Or maybe I just don't understand how this is being used.
But if it's just a matter of those php plugin settings to get the expected result, then I'll take my hero badge - else stick to gnawing on my shoe.:D
 
Make sure all your triggers are using "INSERT IGNORE...".
The error message seems to come from an INSERT without IGNORE
 
Thanks for your reply:
I set as instruction:
  • "In Joomla(top)
1) create new Fabrik list+form on the #__fabrik_labels table
2) in the list
- add an inline plugin so that you can edit inline (from the list view) the element #__fabrik_labels___override
- good idea would be to show filters at least for the language element! So you can make list to show only the needed rows.
3) in the form
- add a "php" plugin and set it to work on edit at the end of form submission (onAfterProcess)
- add the following code to execute "

and about list prefilter:
"we could filter data with. When we want the Joomla multilingual site would make the work then at least one language element must represent language url code (like 'en', 'fr', 'fi', 'et', ...) and list prefilters should be set to "WHERE `your_language_element`= '{lang}' " "
 

Attachments

  • prefilter.GIF
    prefilter.GIF
    40.9 KB · Views: 164
Another problem is that it didn't leave some info in zh-CN.override.ini file

and all data will disappear if I fill zh-Cn or en-GB in lang code field when add data
 
But inlinedit plugin didn't work.
How could I edit the override?
 

Attachments

  • inlinedit.GIF
    inlinedit.GIF
    59.6 KB · Views: 153
  • inlinedit-set.GIF
    inlinedit-set.GIF
    33.7 KB · Views: 152
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top