|
|
CB and Joomfish
|
|
Date: 2006/08/08 03:32
|
By: mikko
|
Status: Moderator
|
|
|
Karma: 113  
|
|
Moderator  | Posts: 2229 |   | |
|
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
|
|
Date: 2006/08/08 04:53
|
By: mikko
|
Status: Moderator
|
|
|
Karma: 113  
|
|
Moderator  | Posts: 2229 |   | |
|
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
Post edited by: mikko, at: 2006/08/07 22:58
Post edited by: mikko, at: 2006/08/07 23:30
|
|
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 |   | |
|
@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
|
|
Date: 2006/09/06 23:17
|
By: elkuku
|
Status: User
|
|
|
Karma: 0  
|
|
Fresh Joomlapolitan  | Posts: 8 |   | |
|
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
|
|
Date: 2006/09/07 08:50
|
By: mikko
|
Status: Moderator
|
|
|
Karma: 113  
|
|
Moderator  | Posts: 2229 |   | |
|
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
|
|
The topic has been locked. |
|
|