My solution in the end was as follows:
The best I could come up with was two module positions in the exact same place, one that only appeared when my language was english and one that only appeared when my language was french...
I had already created a position for my tabs called 'custom1'. So from the start, I added a new module position to 'templatedetails.xml' called 'custom1_fr'. Then in 'header.php' I cloned my 'custom1' section and pasted it directly below, being sure to make the necessary name changes to suit my new position. As below:
- Code: Select all
<?php if($this->countModules('custom1')) : ?>
<div id="custom1" class="custom_inline">
<jdoc:include type="modules" name="custom1" style="gavickpro" />
</div>
<?php endif; ?>
<?php if($this->countModules('custom1_fr')) : ?>
<div id="custom1_fr" class="custom_inline">
<jdoc:include type="modules" name="custom1_fr" style="gavickpro" />
</div>
<?php endif; ?>
This gave me the two positions, so to make them only show for a specific language I added to the text as follows:
- Code: Select all
<?php if($this->countModules('custom1') && $this->language == "en-gb") : ?>
<div id="custom1" class="custom_inline">
<jdoc:include type="modules" name="custom1" style="gavickpro" />
</div>
<?php endif; ?>
<?php if($this->countModules('custom1_fr') && $this->language == "fr-fr") : ?>
<div id="custom1_fr" class="custom_inline">
<jdoc:include type="modules" name="custom1_fr" style="gavickpro" />
</div>
<?php endif; ?>
Next I added the new div id to my template.css by simply copying the 'custom1' id and renaming to 'custom1_fr'
After this all that was really left to do was create another tab group with my french titles/content etc, copy the tabs module and reassign its tab group to the french group and assign it to the 'custom1_fr' position.
So far that has solved the problem.
Once again I hope this can be of help to someone.