-
AuthorPosts
-
hcharly Friend
hcharly
- Join date:
- April 2008
- Posts:
- 107
- Downloads:
- 0
- Uploads:
- 9
- Thanks:
- 14
- Thanked:
- 11 times in 1 posts
December 12, 2011 at 12:32 pm #171723Hello All,
I have not found a lot of posts on this subject but I’ve read everything I could find without any fix.
Does someone on this board is using JA Travel with Joomfish 2.1.6 or 2.1.7?
Are you getting Megamenu translated?
How did you manage to do that?Everything is working smoothly except for menus which I can’t get translated. Nothing in Logs, etc…
Contentelement for menus seems correct. All parameters seems available in the translation pages.I’m using some other JA-templates with Joomfish 2.0.x without any problem.
My install is as follow:
Joomla 1.5.25
JA Travel 1.0.1
K2 removed
All JA extensions are updated
Joomfish 2.1.7 / downgraded to 2.1.6In advance thank you for sharing with me your experience with that.
-CharlesBlaine FriendBlaine
- Join date:
- August 2007
- Posts:
- 1443
- Downloads:
- 0
- Uploads:
- 25
- Thanks:
- 98
- Thanked:
- 177 times in 154 posts
December 27, 2011 at 10:16 am #431352First, find the /components/com_joomfish/contentelements/menu.xml (which is for the menues, not “content.xml”.) and insert following code in the <field> section:
<field type="separator" name="params" translate="1">JA_Extended</field>
Where “seperator” is the menu type (we already referenced to the menue with “<table name=”menu”>” in the xml) and “name” are the stored values in the “params” field. “JA_Extended” is choosen by me, you may name it as you like, it will show up at the back-end.
This brings up the JA extended values:
PLEASE NOTE “separator” IS NOT THE CORRECT FIELD TO USE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! (see below)
You may have a look at the available menu types for Joom!Fish HERE
In lack of a better field type, one chooses their “type=”textarea” which will render a nice input box.
Now lets look at the xml hack:
Original code at administrator/components/com_joomfish/contentelements/menu.xml:
<table name="menu">
<field type="referenceid" name="id" translate="0">ID</field>
<field type="titletext" name="name" translate="1">Name</field>
<field type="text" name="alias" translate="1" posthandler="filterName">Menu Alias</field>
<field type="params" name="params" translate="1">params</field>
<field type="readonlytext" name="link" translate="1" posthandler="saveUrlParams" prehandler="checkUrlType">Link</field>
<field type="text" name="type" translate="0">Menu Type</field>
<field type="checked_out_by" name="checked_out" translate="0">Check out by</field>
<field type="checked_out_date" name="checked_out_time" translate="0">Check out date</field>
</table>Here, the values are loaded, using this line:
<field type="params" name="params" translate="1">params</field>
But it does not give a possibility to change them. You can make a modification to textarea (you have to MODIFY this line! Do NOT copy another line to the code, this will result in an error message “undefined” when using the “Copy” button and it wont store the values!):
<field type="textarea" name="params" translate="1">params</field>
See if this thread provides more direction.
Let me know how this works for you!
1 user says Thank You to Blaine for this useful post
hcharly Friendhcharly
- Join date:
- April 2008
- Posts:
- 107
- Downloads:
- 0
- Uploads:
- 9
- Thanks:
- 14
- Thanked:
- 11 times in 1 posts
December 27, 2011 at 10:50 am #431358Hello Blaine,
Many thanks for your detailed answer.
This makes the parameters translated in the database, but despite this I could not get none of the menus displayed according to languages.The reason was the language override plugin I’m using there with JEvents component.
As diagnosed by Geraint who already solved this “the language override plugin used to handle Joomla 1.6 language strings was loading the menu items BEFORE joomfish could translate them. This explains why everything apart from the menus were translated.”Thank You.
Happy New Year!
-Charles -
AuthorPosts
This topic contains 4 replies, has 2 voices, and was last updated by Blaine 12 years, 11 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum