| 
Welcome, Guest

CB and Joomfish
(1 viewing) (1) Guest

TOPIC: CB and Joomfish

CB and Joomfish 5 years, 6 months ago #18356

  • Posts:
  • Karma:
With the release of 1.7 version of Joomfish the feature that prevented translating CB with the fish has been removed. (the primary key does not need to be named 'id' anymore)

I wrote joomfish xml files for CB, but there is still a minor bug in the fish that prevents the translation of CB with it. I am currently workign on a fix and will publish the fix and the xml files sometime soon if I manage to get it working.



mikko
The topic has been locked.

Re:CB and Joomfish 5 years, 6 months ago #18361

  • Posts:
  • Karma:
OK, it works now.

Here is howto do it:

Firs change the line in

preg_match_all("/$prefix(\w*)\s+AS\s+".$tempTable."[,\s]/i",$this->_sql, $tempArray, PREG_PATTERN_ORDER);

to

preg_match_all("/$prefix(\w*)\s+(AS\s)?+".$tempTable."[,\s]/i",$this->_sql, $tempArray, PREG_PATTERN_ORDER);

in mldatabase.class.php of the Joomfish source

edit: I just realized that the forum does not display slashes correctly. See the bug tracker link provided below for the correct way of performing the fix.

Then unzip the atached file to /administrator/component/com_joomfish/contentelements/

And start translating. Please note that this way of translating is much less efficient performance wise than language files.

mikko

Some links that might be interesting:
Bug tracker for the fix: forge.joomla.org/sf/tracker/do/viewArtif...essage=1154980220275
Tracker for the xml files: forge.joomla.org/sf/tracker/do/viewArtif...essage=1154980640914
Wikipage on extending the fish with xml files: forge.joomla.org/sf/wiki/do/viewPage/pro...ElementConfiguration

Attachment cb_joomfish.zip not found



Post edited by: mikko, at: 2006/08/07 22:58

Post edited by: mikko, at: 2006/08/07 23:30
Attachments:
The topic has been locked.
The following user(s) said Thank You: skaiser1

Re:CB and Joomfish 5 years, 6 months ago #18366

  • Posts:
  • Karma:
Great!
Thanks Mikko!
Alot of people have been waiting for this one!
The topic has been locked.

Re:CB and Joomfish 5 years, 5 months ago #20408

  • Posts:
  • Karma:
@Mikko:
Thanks a lot. Incredible valuable tip.
Just a pair of brakets and a question mark..

100 cyberpoints for you.
Nikolai www.NiK-IT.de
The topic has been locked.

Re:CB and Joomfish 5 years, 5 months ago #20427

  • Posts:
  • Karma:
Some issues...
Translations for "Fields" appear twice in backend (one for title, one for description) ok, no prob but:

"Fields Values" don't work.
'Joomfish'->'Content Elements'->'Sample Data' shows the correct values, but in the translationlist appears just a blank field. you can still select it to edit, the correct value will show up, the translation also gets listed (beside the blank field), but nothing happens in frontend...

another pair of brakets and a "?" ??

Great work so far..
Nikolai www.NiK-IT.de
The topic has been locked.

Re:CB and Joomfish 5 years, 5 months ago #20462

  • Posts:
  • Karma:
I have not tested the files with field values. (I will need to do this later, though).

Now that I think of it, it is quite likely that field values cannot be easily translated fith the fish. The selects will probably translate well after removing the bugs taht you pointed out. However, the chosen values are saved to the comprofiler table in the following format: title1|*|title2|*|title3, and renderes by exploding the string. This process does not involve using the field_values table and hence joomfish cannot translate.

I made a feature request a long time ago, but it was rejected. Perhaps time to reopen?

forge.joomla.org/sf/go/artf2445?nav=1

mikko
The topic has been locked.
Moderators: geeffland
Time to create page: 0.82 seconds