The Joomla! Forum ™





Post new topic Reply to topic  [ 34 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Tue May 16, 2006 3:27 pm 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Fri Aug 19, 2005 5:40 pm
Posts: 320
Location: Toronto, Canada.
I'm having trouble getting the joomfish language dependent module working - it keeps spewing the following code:

Code:
Fatal error: Call to undefined function: moscheckmlmenutype() in /var/www/html/modules/mod_mainmenu_ml.php on line 416


I'll look into the module php and see what's going on but wanted to see if anyone's simply just added a php parameter in their template to selectively load module positions based on the language.

I'm not great with php but will post results here on the php needed to only display modules in the, say 'inner_french' position when the is 'fr'

q./

_________________
Qasim Virjee - Principal, Design Guru
http://www.whyjoomla.comhttp://www.plantseedling.com
(web production & joomla advocacy firm based in Toronto, Canada)


Last edited by akede on Thu May 18, 2006 9:24 am, edited 1 time in total.

Top
 Profile  
 
PostPosted: Tue May 16, 2006 3:37 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Fri Aug 12, 2005 6:15 am
Posts: 1636
Location: Munich, Germany
Is the function existing in your file?

Have to check but it should work

Alex

_________________
Joom!Fish 2.0 your free multilingual solution for Joomla! 1.5 i - http://www.joomfish.net - follow us on twitter @joomfish
Meet us at J and Beyond, 30.05 - 1.06.10, Wiesbaden, Germany - http://jandbeyond.org


Top
 Profile  
 
PostPosted: Tue May 16, 2006 3:47 pm 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Fri Aug 19, 2005 5:40 pm
Posts: 320
Location: Toronto, Canada.
Hey akede,

I took a peek and found the function - here's the excerpted line 374 - 296 incl:

Code:
/**
    * checking for multi lingual menutype
    * @param string menutype
    * @return changed menutype
    */
   function mosCheckMLMenutype( $menutype ) {
      global $database, $mosConfig_multilingual_support, $iso_client_lang;
      if( $mosConfig_multilingual_support ) {
         $mlMenutype = $menutype .'_' . $iso_client_lang;
         $sql = "SELECT count(*)"
         . "\n FROM #__menu AS m"
         . "\n WHERE menutype = '". $mlMenutype ."'"
         . "\n AND published = 1";
         $database->setQuery( $sql );
         $count = $database->loadResult();
         if( $count > 0 ) {
            $menutype = $mlMenutype;
         }
      }
      
      return $menutype;
   }
}


Hmmm..
q.

_________________
Qasim Virjee - Principal, Design Guru
http://www.whyjoomla.comhttp://www.plantseedling.com
(web production & joomla advocacy firm based in Toronto, Canada)


Top
 Profile  
 
PostPosted: Tue May 16, 2006 3:51 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Fri Aug 12, 2005 6:15 am
Posts: 1636
Location: Munich, Germany
I know the problem. You have both mainmenu and mainmenu_ml activated and used in your site, right?

If so the functions will not be loaded a second time as the check in the if clause prevents this.

You should only use one kind of those mainmenus at the same time

Alex

_________________
Joom!Fish 2.0 your free multilingual solution for Joomla! 1.5 i - http://www.joomfish.net - follow us on twitter @joomfish
Meet us at J and Beyond, 30.05 - 1.06.10, Wiesbaden, Germany - http://jandbeyond.org


Top
 Profile  
 
PostPosted: Tue May 16, 2006 4:00 pm 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Fri Aug 19, 2005 5:40 pm
Posts: 320
Location: Toronto, Canada.
Alex, perhaps I've misunderstood the application of this module that you've created:

I'm trying to use it on a site with, say, 10 mainmenus already setup - I want to make some of them language-dependant and thought that I could associate one mainmenu_ml to each of those, unpublish the associated mainmenu module and voila, it would work....  this isn't the case is it?

I'm now thinking that your module is for use on sites with just one mainmenu to replace per language...

Let me know if this is correct - the easiest solution for me might just be to include some php in my template to only display a certain position depending on the language...

q.

_________________
Qasim Virjee - Principal, Design Guru
http://www.whyjoomla.comhttp://www.plantseedling.com
(web production & joomla advocacy firm based in Toronto, Canada)


Top
 Profile  
 
PostPosted: Tue May 16, 2006 4:16 pm 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Fri Aug 19, 2005 5:40 pm
Posts: 320
Location: Toronto, Canada.
Would something like this work in my template, do you think?

Code:

if ($mosConfig_lang=='en') {
     echo <?php mosLoadModules ( 'inside_r', -2 ); ?>
}

if ($mosConfig_lang=='fr') {
     echo <?php mosLoadModules ( 'inside_rfr', -2 ); ?>
}



q./

_________________
Qasim Virjee - Principal, Design Guru
http://www.whyjoomla.comhttp://www.plantseedling.com
(web production & joomla advocacy firm based in Toronto, Canada)


Top
 Profile  
 
PostPosted: Tue May 16, 2006 8:24 pm 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Fri Aug 19, 2005 5:40 pm
Posts: 320
Location: Toronto, Canada.
Okay Guys,  I figured it out and this is a fantastic soluton I'm sure lots of you implementing Joomfish will love!

I decided to write a simple php statement that will load certain module positions in the same space on a template, depending which language I want them to independantly handle.

Benefits of this approach:

  • you can create content in any language you want and hide the default message or auto-created joomfish version
  • you have flexibility in what you want each language's menu-modules to display
  • you can still include native language menu items in your alternate language menus - effectively using joomfish for parts of your site and not the whole site

Here's the code:

Code:
<!-- BEGIN custom language switch by http://www.designguru.org to load language-specific modules -->

<?php
if ($mosConfig_lang== english )
{mosLoadModules ( 'inside_r', -2 );}
?>

<?php
if ($mosConfig_lang== french )
{mosLoadModules ( 'inside_rfr', -2 );}
?>

<!-- END language switch -->


Of course, you can use any module position - you aren't restricted to 'inside_r' and 'inside_rfr' - I arbitrarily chose 'em ;)


Cheers,

q./

_________________
Qasim Virjee - Principal, Design Guru
http://www.whyjoomla.comhttp://www.plantseedling.com
(web production & joomla advocacy firm based in Toronto, Canada)


Top
 Profile  
 
PostPosted: Thu May 18, 2006 7:45 am 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Fri Aug 12, 2005 6:15 am
Posts: 1636
Location: Munich, Germany
This is a quite clever solution as well. It gives you a kind of flexible control over languages and modules.

I think this might be specially helpful if you use RTL and LTR languages in one site.

Alex

_________________
Joom!Fish 2.0 your free multilingual solution for Joomla! 1.5 i - http://www.joomfish.net - follow us on twitter @joomfish
Meet us at J and Beyond, 30.05 - 1.06.10, Wiesbaden, Germany - http://jandbeyond.org


Top
 Profile  
 
PostPosted: Tue Jun 13, 2006 7:57 am 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Mon Jun 12, 2006 1:51 pm
Posts: 3
Hi everybody

Effectively, my problem now is how to change the rirection to RTL depending on the language.
I've to create a web site with two languages: french and arabic

My problem is how to remember the user language, must i use the joomla session? global vars? and if it's resolved, how to change the direction, should i change the template?

Thanks for all

N@bil


Top
 Profile  
 
PostPosted: Thu Jul 06, 2006 7:53 am 
Joomla! Intern
Joomla! Intern
Offline

Joined: Tue Oct 04, 2005 2:12 am
Posts: 87
What makes joomfish work in a module? Is it just a matter of adding a function? If yes where to find it? I have a lot of important modules such as D4J Content listing which are not supported and I am trying to solve it.

thanks.


Top
 Profile  
 
PostPosted: Fri Jul 21, 2006 7:24 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sun Sep 11, 2005 6:28 pm
Posts: 24
Quote:
Code:
if ($mosConfig_lang== english ) { ...


@ design your my guru -
why didn't I think of that myself???

Thank you for sharing!


Greetz from Tübingen,
Ritch


Top
 Profile  
 
PostPosted: Fri Jul 21, 2006 9:14 am 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Fri Aug 12, 2005 6:15 am
Posts: 1636
Location: Munich, Germany
Lionel wrote:
What makes joomfish work in a module? Is it just a matter of adding a function? If yes where to find it? I have a lot of important modules such as D4J Content listing which are not supported and I am trying to solve it.

thanks.


Hi I don't fully get what you want. But I assume you are asking what the language switching module does, right?

Basically this module has very less to do with the Fish itself. It just shows the languages active in your system. Then it calls the same site (including all params) and adds an attribute &lang= to the GET or POST parameters.

So if you want to rebuild it in a different module it's fine.

If you want to know how do make your component work together with the Fish (and with that be translated) check out the WIKI (http://forge.joomla.org/sf/wiki/do/view ... i/HomePage) of the Joom!Fish and you will find all requested information.

Alex

_________________
Joom!Fish 2.0 your free multilingual solution for Joomla! 1.5 i - http://www.joomfish.net - follow us on twitter @joomfish
Meet us at J and Beyond, 30.05 - 1.06.10, Wiesbaden, Germany - http://jandbeyond.org


Top
 Profile  
 
PostPosted: Mon Aug 14, 2006 8:13 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Mon Aug 14, 2006 8:00 pm
Posts: 1
Hello,

I am an newbee in this forum, but I didn't understand the answers above. I have read the wiki and the text above but i can't solve my problem!

I want to make a multilanguage website with 3 languages (german, Engllish and Dutch), using joomla 1.09 multilangual. Is it possible that i can get for each language a different menu?

I made aready three menu's:

- mainmenu (disabled)
- mainmenu_du (disabled)
- mainmenu_en (disabled)

I installed mod_mainmenu_ml (active) with the following settings:

menu name: mainmenu

but the menu will not switch? What am i doing wrong?

Greetings,

Gerrit-Jan


Top
 Profile  
 
PostPosted: Sun Aug 20, 2006 8:19 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sat Jul 01, 2006 4:00 pm
Posts: 23
I don't really understand how to implement this solution.

1. Where am I supposed to insert the code?
2. What is the "-2" in the
Code:
{mosLoadModules ( 'inside_r', -2 );}
line?
3. What happens when you want to load a language dependent module that is positioned in the right or left position with several other modules that are not language dependent?


Top
 Profile  
 
PostPosted: Thu Oct 19, 2006 2:12 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Mon Oct 09, 2006 3:56 pm
Posts: 63
Location: Wageningen
Tryed the code:


if ($mosConfig_lang== italian )
{mosLoadModules ( 'advert1', 0 );}
?>

if ($mosConfig_lang== english )
{mosLoadModules ( 'advert3', -1 );}
?>

Works, but error reported:
Use of undefined variable italian - assumed 'italian' in

..templates\nametemplate\index.php line ...



I tryed
inserting the line
global $mosConfig_lang;

above the if declaration, but it's the same..
Why does it say it's an undefined variable (or constant, after global $mosConfig_lang; declaration) if it can properly read it?


About the position of modules: is it possible to load the order of modules in the same position horizontally?


Top
 Profile  
 
PostPosted: Thu Oct 19, 2006 2:13 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Mon Oct 09, 2006 3:56 pm
Posts: 63
Location: Wageningen
Tryed the code:


if ($mosConfig_lang== italian )
{mosLoadModules ( 'advert1', 0 );}
?>

if ($mosConfig_lang== english )
{mosLoadModules ( 'advert3', -1 );}
?>

Works, but error reported:
Use of undefined variable italian - assumed 'italian' in

..templates\nametemplate\index.php line ...



I tryed
inserting the line
global $mosConfig_lang;

above the if declaration, but it's the same..
Why does it say it's an undefined variable (or constant, after global $mosConfig_lang; declaration) if it can properly read it?


About the position of modules: is it possible to load the order of modules in the same position horizontally?


Top
 Profile  
 
PostPosted: Fri Oct 20, 2006 8:36 am 
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Sat Sep 09, 2006 9:48 am
Posts: 148
Hi all!

I am really impressed of the skill you people posses  :-*

Anyway, i'm quite new to Joomla and Joomfish and as many others would like to get different menus when switching languages.
I simply want one language to not show the full menu and the main language the full.
I've tried to read/understand this thread but i don't understand what file to edit with what.
If anyone has got this working i twould probably be highly appreciated by many if you could post a "step by step" how to achieve it.

Thanks a lot


Top
 Profile  
 
PostPosted: Tue Jan 02, 2007 3:25 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Sep 04, 2006 12:50 pm
Posts: 15
Hi, can we please have more information about this feature? :(

For example, the code that the design guru has posted here, is it supposed to be included in the template's index code? and where in the code are we supposed to include it?

Should we use the module for the multilingual mod_mainmenu or it is not required?

I need a different menu for several languages and sorry to say this but i'm kind of a hurry to get an answer to this...

Thanks in advance for your help.


Top
 Profile  
 
PostPosted: Wed Jan 03, 2007 6:52 am 
I've been banned!
Offline

Joined: Thu Aug 25, 2005 2:33 pm
Posts: 1868
Read the Wiki on http://www.joomfish.net


Top
 Profile  
 
PostPosted: Wed Jan 03, 2007 7:41 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Sep 04, 2006 12:50 pm
Posts: 15
I did, can't understand what i'm supposed to do, it's not very clear how to use the module and from this post where to put the code. Can it be explained more clearly?


Top
 Profile  
 
PostPosted: Wed Jan 03, 2007 6:04 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Thu Dec 14, 2006 1:20 pm
Posts: 1
I also didn't understand the modification but I know now, so if this helps...

This is the modified \administrator\templates\...\index.php
Somewhere in the middle You'll find a code similar to this, change it.


 

  if ($mosConfig_lang== english )
{mosLoadModules ( 'user6', -2 );}
?>
if ($mosConfig_lang== french ) 
{mosLoadModules ( 'user5', -2 );}
?>


 


The "french" is the same as it is written in Site->Language Manager->Languages.
mosLoadModule is a function which exepts "position" as a variable.
Go to Modules->Site Modules.
Now You see a lot of modules and they are placed on Your site according to the setting in the Position collumn.
You change this position when You open the properties of any module. By default it will probably be left. In my case I've changed the 1st menu's position to user5, 2nd to user6 and so on...
You also need to publish theese menus.
That's it!

Thank's everyone for this topic. Really helpful!


Top
 Profile  
 
PostPosted: Tue Feb 20, 2007 4:33 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Mar 09, 2006 3:19 pm
Posts: 9
The code mentioned above did not work for me.I changed it to call for the variable $lang instead of $mosconfig_lang and to look for the ISO-codes:

http://www.designguru.org to load language-specific modules -->

if ($lang== en )
{mosLoadModules ( 'righten', -2 );}
?>

if ($lang== nl )
{mosLoadModules ( 'rightnl', -2 );}
?>

if ($lang== de )
{mosLoadModules ( 'rightde', -2 );}
?>

if ($lang== es )
{mosLoadModules ( 'rightes', -2 );}
?>




And now it's working OK!


Top
 Profile  
 
PostPosted: Sun Apr 08, 2007 11:10 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Mar 22, 2007 10:43 pm
Posts: 39
after reading this post, for language dependent menu module there are two solutions
1. making depend language menu like mainmenu, mainmenu_nl, mainmenu_jp and install the multilingual aware mod_mainmenu for Joomla

2. use php code like others posted, to call different language module

Am I right ?


Top
 Profile  
 
PostPosted: Fri Apr 20, 2007 10:59 am 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Fri Apr 20, 2007 10:23 am
Posts: 1
For newbies (or in order I figured out this stuff) :

1. Any joomla module can be published at a specified template position within specified pages.
2. The code
Code:
<?php
    if ($mosConfig_lang== english )
        {mosLoadModules ( 'inside_r', -2 );}
?>

<?php
    if ($mosConfig_lang== french )
       {mosLoadModules ( 'inside_rfr', -2 );}
?>

belongs to template index.php file, and actually renders all modules belonging to position 'inside_r' in english and to position 'inside_rfr' in french. The second argument '-2' has to do with layout, and I'd rather not explain it here.

3. Accordingly -  there is backend work to configure language dependent menu (or whatever module) to belong to the appropriate position. To be honest - I've had hard time to figure out that it is location in index.php that determines where the content goes, not the position name such as 'left'.  :-[

4. For those who wanted to insert multilanguage module to a position ('left', for example) in the middle of language non-dependent stuff - it's probably the best to split the position into 3 (or whatever appropriate) parts (positions). Good news is that you can add positions and give the names you want, as long as those are meaningful to you.

Code:

<?php mosLoadModules ( 'left_pre', -2 ); //content position before lang dependent stuff ?>

<?php  // lang dependent - english stuff
    if ($mosConfig_lang== english )
        {mosLoadModules ( 'left_en', -2 );}
?>

<?php  // lang dependent - french stuff
    if ($mosConfig_lang== french )
        {mosLoadModules ( 'left_fr', -2 );}
?>

<?php mosLoadModules ( 'left_post', -2 ); //content position after lang dependent stuff  ?>



Hope this helps.
v.


Top
 Profile  
 
PostPosted: Wed Jun 06, 2007 9:01 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Fri Jul 07, 2006 2:39 am
Posts: 172
akede wrote:
If you want to know how do make your component work together with the Fish (and with that be translated) check out the WIKI (http://forge.joomla.org/sf/wiki/do/view ... i/HomePage) of the Joom!Fish and you will find all requested information.
Alex


Hello,

Could you please update the link to that tutorial? I want to make the CB Invite plugin work with the Fish and including the CB onlineFull..
I went to http://www.joomfish.net/content/view/3/11/lang,english/ but the link to that tutorial is dead.

Thanks.


Top
 Profile  
 
PostPosted: Tue Jul 24, 2007 2:23 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Jan 18, 2007 9:18 am
Posts: 48
I've been testing this on my site and it's execllent, such a simple solution - many thanks for posting the code!

The only issue that I can't resolve is that when a user does a search on my site they find content for all languages. It is particular issue when you have both US and UK content on the same site.

A multi lingual content searchbot does exist for JoomFish but it only limits the search for directly translated content. Looking at the 'Search Content' mambot I'm pretty sure this would be an easy mod for someone who knew what they were doing!


Last edited by sittard on Tue Jul 24, 2007 2:27 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Thu Jul 26, 2007 1:16 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Jan 18, 2007 9:18 am
Posts: 48
I've had a go at modifying the content search mambot so that the language selector $iso_client_lang is used to limit the search based on the section name. The section name should use the country code as follows:

- en_sectname1 (all English content)
- en_sectname2 (all English content)
- fr_sectname1  (all French content)
- fr_sectname2  (all French content)

It's a bit experimental but feel free to download and tweak as you see fit!

Download here: http://extensions.joomla.org/component/ ... Itemid,35/

:)


Top
 Profile  
 
PostPosted: Fri Jul 27, 2007 11:49 am 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Wed Oct 05, 2005 7:25 am
Posts: 1065
Location: Amsterdam
All this could be done much simpler, I think.
If the language check is done early in the template and a variable is set accoring to the language, that var could be used at the spot of the mosloadmodules.

Quote:
$lang_ext


    if ($mosConfig_lang== english )
        {$lang_ext = en';
        }
    else
      if ($mosConfig_lang== french )
        {$lang_ext = fr';
        }

    etc.

?>

   
        {mosLoadModules ( 'left'  .  $lang_ext, -2 );}
?>

    etc.


This way you do only once the lingo test and use a standard var for the loadmodules.

_________________
Joomla Bug Squad

Note: Sending me private messages for personal support, without this been requested, would lead to ignoring any of your posts in future!


Top
 Profile  
 
PostPosted: Thu Aug 02, 2007 3:35 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Sep 26, 2006 2:31 am
Posts: 13
I got some problem with a module belonging to the Joomlart Rochea template and the technique described here.


What I have done is the following...:


I included this among the global variables in the template...

Code:
$mosConfig_lang


And then changed the index.php code as follows...


Code:
        <?php
        $spotlight = array ('user1_en','user2_en','user5_en','user1_se','user2_se','user5_se');
        $topspl = calSpotlight ($spotlight);
        if( $topspl ) {
        ?>
        <!-- BEGIN: TOP SPOTLIGHT -->
        <div id="ja-topslwrap">
            <div id="ja-topsl" class="clearfix">

   
              <?php if ($mosConfig_lang== english ){ // Only load user1_en if language is english.
              if( mosCountModules('user1_en') ) {?>
              <div class="ja-box<?php echo $topspl['modules']['user1_en']; ?>" style="width: <?php echo $topspl['width']; ?>;">
                <?php mosLoadModules('user1_en', -2); ?>
              </div>
              <?php }} ?>

              <?php if ($mosConfig_lang== english ){ // Only load user2_en if language is english.
              if( mosCountModules('user2_en') ) {?>
              <div class="ja-box<?php echo $topspl['modules']['user2_en']; ?>" style="width: <?php echo $topspl['width']; ?>;">
                <?php mosLoadModules('user2_en', -2); ?>
              </div>
              <?php }} ?>

              <?php if ($mosConfig_lang== english ){ // Only load user5_en if language is english.
              if( mosCountModules('user5_en') ) {?>
              <div class="ja-box<?php echo $topspl['modules']['user5_en']; ?>" style="width: <?php echo $topspl['width']; ?>;">
                <?php mosLoadModules('user5_en', -2); ?>
              </div>
              <?php }} ?>

              <?php if ($mosConfig_lang== swedish ){ // Only load user1_se if language is swedish.
              if( mosCountModules('user1_se') ) {?>
              <div class="ja-box<?php echo $topspl['modules']['user1_se']; ?>" style="width: <?php echo $topspl['width']; ?>;">
                <?php mosLoadModules('user1_se', -2); ?>
              </div>
              <?php }} ?>

              <?php if ($mosConfig_lang== swedish ){ // Only load user2_se if language is swedish.
              if( mosCountModules('user2_se') ) {?>
              <div class="ja-box<?php echo $topspl['modules']['user2_se']; ?>" style="width: <?php echo $topspl['width']; ?>;">
                <?php mosLoadModules('user2_se', -2); ?>
              </div>
              <?php }} ?>

              <?php if ($mosConfig_lang== swedish ){ // Only load user5_se if language is swedish.
              if( mosCountModules('user5_se') ) {?>
              <div class="ja-box<?php echo $topspl['modules']['user5_se']; ?>" style="width: <?php echo $topspl['width']; ?>;">
                <?php mosLoadModules('user5_se', -2); ?>
              </div>
              <?php }} ?>
            </div>
            <div class="sep"></div>
        </div>
        <!-- END: TOP SPOTLIGHT -->


I then put up some new modulepossitions in the backend and made some copies of the modules to use one for an English translation and one set for a Swedish translation.

The English ones show up as they should on my English frontend. When activating the ones that should be used if the language is Swedish messes things up a bit. First they don't show up at my Swedish frontpage and I will also get an empty space big as the modules that are showed on my English frontpage for each of the same module I assign to my Swedish frontpage.

Anyone got any usefull suggestions on how to get this to work? I am not sure that I have put things right in the PHP code...

Any tips and suggestions would be appreciated and excuse my bad English.


Top
 Profile  
 
PostPosted: Sat Aug 04, 2007 6:06 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Fri Mar 02, 2007 2:06 pm
Posts: 936
There isn't such rows in /administrator/templates/joomla_admin/index.php


madjar wrote:
I also didn't understand the modification but I know now, so if this helps...

This is the modified \administrator\templates\...\index.php
Somewhere in the middle You'll find a code similar to this, change it.


 

  if ($mosConfig_lang== english )
{mosLoadModules ( 'user6', -2 );}
?>
if ($mosConfig_lang== french ) 
{mosLoadModules ( 'user5', -2 );}
?>


 


The "french" is the same as it is written in Site->Language Manager->Languages.
mosLoadModule is a function which exepts "position" as a variable.
Go to Modules->Site Modules.
Now You see a lot of modules and they are placed on Your site according to the setting in the Position collumn.
You change this position when You open the properties of any module. By default it will probably be left. In my case I've changed the 1st menu's position to user5, 2nd to user6 and so on...
You also need to publish theese menus.
That's it!

Thank's everyone for this topic. Really helpful!







Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 34 posts ]  Go to page 1, 2  Next



Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group