Arrow Home arrow Forums
larger font smaller font default font Fixed screen resolution Auto adjust screen size

Joomlapolis Forums  


<< Start < Prev 1 2 3 4 Next > End >>
CB and Joomfish
Date: 2006/08/08 03:32 By: mikko Status: Moderator  
Karma: 113  
Moderator

Posts: 2229
graphgraph
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
Click here to see the profile of this user The topic has been locked.

Re:CB and Joomfish
Date: 2006/08/08 04:53 By: mikko Status: Moderator  
Karma: 113  
Moderator

Posts: 2229
graphgraph
OK, it works now.

Here is howto do it:

Firs change the line in

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

to

preg_match_all("/$prefix(w*)s+(ASs)?+".$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: http://forge.joomla.org/sf/tracker/do/viewArtifact/projects.joomfish/tracker.bugs/artf5550? _message=1154980220275
Tracker for the xml files: http://forge.joomla.org/sf/tracker/do/viewArtifact/projects.joomfish/tracker.content_element_files/ artf5551?_message=1154980640914
Wikipage on extending the fish with xml files: http://forge.joomla.org/sf/wiki/do/viewPage/projects.joomfish/wiki/ContentElementConfiguration

File Attachment:
File name: cb_joomfish.zip
File size:1731 bytes


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

Post edited by: mikko, at: 2006/08/07 23:30
Click here to see the profile of this user The topic has been locked.

Re:CB and Joomfish
Date: 2006/08/08 05:24 By: nant Status: Admin  
Karma: 557  
Admin

Posts: 10278
graphgraph
Great!
Thanks Mikko!
Alot of people have been waiting for this one!
--
Nick (nant)
Community Builder Team Member

Before posting on forums: Read all CB Articles | Specially the FAQ | Help us help you
CB links: Subscribe to CB documentation | Our templates | Paid Subscriptions | Get Hosting | Our Forge
Visit my CB Profile | Read my CB Blog
--
My personal site(s)/link(s): under construction | under reconstruction
Click here to see the profile of this user The topic has been locked.

Re:CB and Joomfish
Date: 2006/09/06 17:40 By: elkuku Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 8
graphgraph
@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
Click here to see the profile of this user The topic has been locked.

Re:CB and Joomfish
Date: 2006/09/06 23:17 By: elkuku Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 8
graphgraph
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
Click here to see the profile of this user The topic has been locked.

Re:CB and Joomfish
Date: 2006/09/07 08:50 By: mikko Status: Moderator  
Karma: 113  
Moderator

Posts: 2229
graphgraph
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?

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

mikko
Click here to see the profile of this user The topic has been locked.

<< Start < Prev 1 2 3 4 Next > End >>

CBSubs 1.0

CBSubs 1.0.3 released!

Find out more about the revolutionary new Joomla subscription system:

Info on CBSubs

CB 1.2.3 Documentation

Thank you bonus:

ProfileBook (+Blog) 1.2RC
ProfileGallery 1.2RC2
CB Privacy 1.0RC

What? Why? Where?

Click here for a yearly subscription: subscribe now

CB 1.2.3 Download

Community Builder 1.2.3
Stable and native for:
Joomla 1.5 & 1.0 & Mambo
(incl. CB 1.2.3 Installation pdf)
You need to be a registered member to download.

Full 180 pages updated
CB 1.2.3 documentation:
You need to be a CB doc subscriber to download.

CB Login