Alessandro Senese aka Ceceppa
Forum Replies Created
-
Forum: Plugins
In reply to: [Ceceppa Multilingua] How to translate custom menus ?If you use Gantry Menu Widget:
1) you must create a menu for each language.
2) you must edit the file “plugins/gantry/widgets/menu.php”. Replace the function “initializeMenu” with this:protected function initializeMenu($instance = null) { $menu = null; if (null == $instance) { $instance = $this->getInstance(); } if (array_key_exists("nav_menu", $instance) && function_exists('cml_get_menu_name')) { $nav_menu = cml_get_menu_name($instance['nam_menu']); $instance['nav_menu'] = $nav_menu; } if (array_key_exists($instance['theme'], self::$themes)) { $theme_info = self::$themes[$instance['theme']]; $theme = new $theme_info['class']; $menu = new GantryMenu($theme, $instance); $menu->initialize(); } else { $this->error_message = _g('MISSING_MENU_THEME_MESSAGE'); } return $menu; }[Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
Now all works correctly 🙂
Forum: Plugins
In reply to: [Ceceppa Multilingua] Can't add new languageIt’s strange, language form works correctly …
Try with 1.2 if doesn’t work I’ll test plugin with your configuration…
Forum: Plugins
In reply to: [Ceceppa Multilingua] Menu translation doesn't work in 1.1Check if with version 1.2.0 all works fine….
Forum: Plugins
In reply to: [Ceceppa Multilingua] Duplicate Menu itemsIn “Appearance” -> “Menus” you must add only pages of default language, the plugin will change the items in according to current language…
Forum: Plugins
In reply to: [Ceceppa Multilingua] Menu translation doesn't work in 1.1Which theme are you using?
Forum: Plugins
In reply to: [Ceceppa Multilingua] Page title problem🙂
Forum: Plugins
In reply to: [Ceceppa Multilingua] translation 'not found' for pagesWhat is your blog address?
Try to edit the 3 pages, check if all fields are ok and publish them again…
Forum: Plugins
In reply to: [Ceceppa Multilingua] Page title problemThat line of code do that:
1) replace the page/post title with value of the variable $doctitle
2) assign the new title to variable $doctitle.I don’t understand why they do that…
What happens if you comment that line of code?Forum: Plugins
In reply to: [Ceceppa Multilingua] Page title problemStrange… also disable all “actions”, because if you disable all filters and all actions, plugin do nothig….
Forum: Plugins
In reply to: [Ceceppa Multilingua] get_current_lang() not working properlyHave you solved the problem?
Forum: Plugins
In reply to: [Ceceppa Multilingua] It crashes :(I’ve fixed the problem. I am completing the last changes 🙂
Forum: Plugins
In reply to: [Ceceppa Multilingua] It crashes :(it was not a bug, but one thing desired …
But you’re right, it is easier if I cancel the connection when you trash a post or page 🙂The other problem its only a warning.
In next update I’ve removed warning and connection between trashed posts…Forum: Plugins
In reply to: [Ceceppa Multilingua] Page title problemI don’t think becase $wp_query contains info about required posts.
Go in settings page of my plugin and try to disable “Show the list flag of available languages on:” for pages
Forum: Plugins
In reply to: [Ceceppa Multilingua] Problem after update to 1.0.8Fixed
Forum: Plugins
In reply to: [Ceceppa Multilingua] It crashes :(Ops, fixed in 1.0.12 🙂