Thread Rating:
  • 3 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Support for multilanguage sites, Internationalization (I18N)
i'm using a:
PHP Code:
<div class="sitemenu">
     <
i><ul id="mainmenu"> <?php            get_i18n_navigation(return_page_slug(),0,10,I18N_FILTER_MENU'nawigacjaglowna');
         
?>
          
          </ul></i>
    </div> 

where the " nawigacjaglowna" is a component:

PHP Code:
<li class="<?php echo $item->classes;  ?>">
  <
a href="<?php echo htmlspecialchars($item->link);  ?>" >
    <?
php echo htmlspecialchars($item->text); ?>
  <?php
    
      $results2 
return_i18n_search_results('_parent_'.$item->idnull01000null'pl');
      if (
count($results2['results']) !=){
                 echo 
'<i class="arrow"></i>';
               } else {
echo 
'';
}
   
  
?>
  </a>

  <?php if ($item->isOpen) { ?>
    <ul><?php $item->outputChildren(); ?></ul>
  <?php ?>
</li> 

this component is checking: if is any submenu (subpages) in menu add a arrow class to my menu if page have a child...
it works:
https://dl.dropboxusercontent.com/u/4998...gation.jpg

but i have a problem to use with I18N_SHOW_LANGUAGE
i want to use this methood with a I18N_FILTER_MENU but i want to have other language (only active page's in other language . how to use this two methood in one time ?

i'm was try do it like:
get_i18n_navigation(return_page_slug(),0,10,I18N_SHOW_LANGUAGE, I18N_FILTER_MENU, 'nawigacjaglowna');
not working (only I18N_SHOW_LANGUAGE is in front end.. I18N_FILTER_MENU not working)

get_i18n_navigation(return_page_slug(),0,10,I18N_SHOW_LANGUAGE | I18N_FILTER_MENU, 'nawigacjaglowna');
working.. but not giving back a level menu other than 0 level --> submenu pages is not visible (not displaying) in menu.

get_i18n_navigation(return_page_slug(),0,10,I18N_SHOW_LANGUAGE, 'nawigacjaglowna');
working.. but the submenu is visible only (drop down menu 2 and other level..) when i'm on page with one have a sub menu..
https://dl.dropboxusercontent.com/u/4998...i18n/5.jpg
mouse over the page "nowa strona" - nowa strona have subpages.. subpages is not visible in menu..


how to use this two options in one query ?
user plugin: scroll to top
Reply


Messages In This Thread
rewrite language problem - by tomkop - 2013-03-27, 06:34:44
Enhancement suggestion - by hameau - 2013-05-12, 04:17:12
Enhancement request - by hameau - 2013-06-14, 20:02:07
RE: Enhancement request - by mvlcek - 2013-06-14, 22:04:12
RE: Enhancement request - by hameau - 2013-06-14, 23:01:36
Duplicate language cookies bug - by enzy - 2013-08-20, 07:03:26
RE: Duplicate language cookies bug - by ohayo - 2013-08-20, 18:12:25
Plugin is not shown - by tosho - 2013-09-15, 12:10:37
RE: Support for multilanguage sites, Internationalization (I18N) - by xxdex - 2014-03-08, 04:21:03
1000 pages limit in i18n_navigation - by titus - 2014-10-13, 21:58:36
Bug found - by lbarsov - 2014-10-17, 03:41:53
Menu with picture - by Dimi - 2015-04-28, 16:05:45
Rendering Menu in Component - by Alexander_ - 2016-05-04, 23:06:51
Meta desc for different languages - by Alexander_ - 2017-02-14, 20:29:32
Hierarchical Menus - by celextel - 2019-07-26, 16:41:47
Ri18n_navigation - by celextel - 2021-02-19, 16:07:48



Users browsing this thread: 1 Guest(s)