Joomla! Discussion Forums



It is currently Tue Nov 24, 2009 12:19 pm (All times are UTC )

 




Post new topic Reply to topic  [ 52 posts ]  Go to page Previous  1, 2
Author Message
Posted: Tue Jan 02, 2007 12:12 am 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Mon Apr 03, 2006 4:04 pm
Posts: 430
Location: Germany
Hi joomfish experts!
I just dicovered that the lenght for the translation of metatags in joomfish is limited to too few characters. I would need to be able to put more words in the metatag translation field... which value do i have to adjust and where?
Thanks!
Fabs

_________________
Please visit my personal website and leave many traces ;)
http://www.ffaabbiiaann.de
If you need webdesign services I can help you out:
http://www.webdesign2punkt0.de


Top
  E-mail  
 
Posted: Tue Jan 02, 2007 12:42 am 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Fri Sep 02, 2005 10:23 pm
Posts: 361
Location: Mazatlan, Sinaloa, Mexico
yes I noticed the same issue, it's rare because sometimes the mysql field associated is medium text type, but the joomfish field is poorly restricted to a few number of characters.

I will really appreciate a fix to let joomfish enter more characters.

thanks

_________________
http://www.joomla.com.mx
Joomla Mexico!


Top
   
 
Posted: Sun Jan 14, 2007 4:42 pm 
User avatar
Joomla! Ace
Joomla! Ace
Online

Joined: Fri Aug 12, 2005 6:15 am
Posts: 1550
Location: Munich, Germany
consigliere wrote:
yes I noticed the same issue, it's rare because sometimes the mysql field associated is medium text type, but the joomfish field is poorly restricted to a few number of characters.

I will really appreciate a fix to let joomfish enter more characters.

thanks


Could you please report this to our tracker - it's definitly not the way it should be. Sorry

_________________
Joomla! Community Oversight Committee Member, follow me on twitter @akempkens
Joom!Fish 2.0 your free multilingual solution for Joomla! 1.5 i - http://www.joomfish.net - follow us on twitter @joomfish
Think Network, Munich - http://www.ThinkNetwork.com


Top
   
 
Posted: Sun Jan 14, 2007 8:03 pm 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Mon Apr 03, 2006 4:04 pm
Posts: 430
Location: Germany
done: bug report is here:
http://forge.joomla.org/sf/go/artf7288?nav=1

_________________
Please visit my personal website and leave many traces ;)
http://www.ffaabbiiaann.de
If you need webdesign services I can help you out:
http://www.webdesign2punkt0.de


Top
  E-mail  
 
Posted: Sun Jan 14, 2007 10:42 pm 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Fri Sep 02, 2005 10:23 pm
Posts: 361
Location: Mazatlan, Sinaloa, Mexico
fabs wrote:


thanks fabs and akede

_________________
http://www.joomla.com.mx
Joomla Mexico!


Top
   
 
Posted: Mon Mar 12, 2007 4:31 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Mon Nov 06, 2006 10:18 am
Posts: 134
Location: Jerusalem, Israel
I didnt see here how to load different templates according to the language selected.

I would like the template to change according to the language.

How would i do that?

thanks,
nathan


Top
  E-mail  
 
Posted: Mon Mar 12, 2007 4:55 pm 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso
Offline

Joined: Fri Sep 16, 2005 10:23 pm
Posts: 3433
Location: Finland / Norway
Hello Nathan,

I think you find this in the same Wiki as I was writing about some posts ago.

_________________
Rune Rasmussen - http://www.syntaxerror.no/ (Norske løsninger, Mamut integrasjon, kortbetaling m.m.)

Joomla! i Norge - the Norwegian Joomla! Association and Translation Team - http://www.joomlainorge.no/


Top
   
 
Posted: Mon Mar 12, 2007 5:05 pm 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 11674
Location: **Translation Matters**
or here
http://forum.joomla.org/index.php/topic ... #msg183262

;)

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr · GMT +1
Qui vult dare parva non debet magna rogare.
---------------------------------
Joomla! Translation Coordination Team


Top
  E-mail  
 
Posted: Tue Mar 13, 2007 10:03 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Mon Nov 06, 2006 10:18 am
Posts: 134
Location: Jerusalem, Israel
Amazing!
thanks a lot guys!

I have two templates with different css files.

my fake template just says this:

Code:
<?php
  global $mosConfig_lang;
if ($mosConfig_lang=="english")
include_once("english.php");
else if ($mosConfig_lang=="hebrew")
include_once("hebrew.php");
?>


Works like a charm  :D


Top
  E-mail  
 
Posted: Sun Mar 25, 2007 11:26 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Mon Nov 06, 2006 10:18 am
Posts: 134
Location: Jerusalem, Israel
Is there a way to translate from the front end? like side by side translation?

I want to be able to just fill in everything at once, and not have to go back to translate.

any ideas?


Top
  E-mail  
 
Posted: Sun May 27, 2007 8:15 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Dec 19, 2005 10:17 am
Posts: 11
Another trick I used with combination of http://extensions.joomla.org/component/option,com_mtree/task,viewlink/link_id,1023/Itemid,35/ JUMI module.
I needed weather conditons shown for 2 towns my home town, Samarkand and town where I am now, London. The data where I get the weather conditions in form of a picture is from the russian site: www.gismeteo.ru (it will produce weather in russian and english though but for more than 4300 towns around the globe).
Here are the html codes from the russian website:
FOR ENGLISH:
Code:
<a href='http://www.gismeteo.ru/etowns/38696.htm'><img src='http://einformer.gismeteo.ru/38696-30E.GIF' border=0></a><br /><hr width="98%" size="1" /><a href='http://www.gismeteo.ru/etowns/03372.htm'><img src='http://einformer.gismeteo.ru/03372-30E.GIF' border=0></a>

FOR RUSSIAN:
Code:
<a href='http://www.gismeteo.ru/towns/38696.htm'><img src='http://informer.gismeteo.ru/38696-30.GIF' border=0></a><br /><hr width="98%" size="1" /><a href='http://www.gismeteo.ru/towns/03372.htm'><img src='http://informer.gismeteo.ru/03372-30.GIF' border=0></a>


I used the JUMI module to output the html code for the weather conditions in the left position and directed it to open a small weather.php file in which I used tactic shown in some of posts here (multilangual modules http://forum.joomla.org/index.php/topic,62236.msg329684.html#msg329684):

Code:
<?php
if ($mosConfig_lang== english )
echo "<a href='http://www.gismeteo.ru/etowns/38696.htm'><img src='http://einformer.gismeteo.ru/38696-30E.GIF' border=0></a><br /><hr width=\"98%\" size=\"1\" /><a href='http://www.gismeteo.ru/etowns/03372.htm'><img src='http://einformer.gismeteo.ru/03372-30E.GIF' border=0></a>";
?>

<?php
if ($mosConfig_lang== russian )
echo "<a href='http://www.gismeteo.ru/towns/38696.htm'><img src='http://informer.gismeteo.ru/38696-30.GIF' border=0></a><br /><hr width=\"98%\" size=\"1\" /><a href='http://www.gismeteo.ru/towns/03372.htm'><img src='http://informer.gismeteo.ru/03372-30.GIF' border=0></a>";
?>


AND it worked. you can see in action here http://www.gigabit-samarkand.com/faridun/ - change languages to see it.


Last edited by registoni on Sun May 27, 2007 8:17 pm, edited 1 time in total.

Top
   
 
Posted: Mon May 28, 2007 11:29 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Fri Mar 23, 2007 12:13 am
Posts: 4
How would this work with joomla version 1.0.12.

Thanks,

Felipe Meyer


Mod note: please add your signature in your profile and not to each post.


Last edited by brad on Tue May 29, 2007 5:56 am, edited 1 time in total.

Top
  E-mail  
 
Posted: Tue May 29, 2007 6:14 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Dec 19, 2005 10:17 am
Posts: 11
if you talking to me, then yes it did worked on joomla 1.0.12 (although a russian edition which I believe differs in only one file includes/database.php to be able to handle win-1251 encoding correctly)


Top
   
 
Posted: Tue Aug 14, 2007 9:20 am 
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Wed Jun 27, 2007 3:00 am
Posts: 113
Location: Taiwan
Just a quick one because I haven't seen this explicitly mentioned anywhere:

Because I use some of my own constants in my template and elsewhere, I keep my own custom language files, and call them with this line:

Code:
require_once( $mosConfig_absolute_path . '/templates/' . $cur_template . '/custom_' . $mosConfig_lang . '.php' );


This allows me to do all sorts of things, including (but not limited to):

Code:
<?php echo _YOUAREHERE; mospathway(); ?>


Code:
<link rel="search" href="<?php echo $mosConfig_live_site . "/opensearch_" . $mosConfig_lang . ".xml"?>" type="application/opensearchdescription+xml" title="<?php echo _OPENSEARCH_TITLE ?>" />


and to use translated constants for alt-text on language specific images.

It works quite nicely for me.

Thanks very much for Joom!Fish - it's the main reason I chose Joomla! for my sites, and I can't get by without it.

Simon


Last edited by simon_w on Wed Aug 15, 2007 5:38 am, edited 1 time in total.

Top
   
 
Posted: Mon Oct 29, 2007 12:07 am 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Fri Sep 02, 2005 8:45 pm
Posts: 99
Location: Peru - The Land for All Your Senses
Hello Guys,

How will be the solution to have 'another template' depending on the language?

thanks

Javier

_________________
Javier Yep Garcia
SEO & Website Solutions Expert
http://www.godmarketing.com
http://www.javieryep.com


Top
  E-mail  
 
Posted: Mon Oct 29, 2007 12:39 am 
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Wed Jun 27, 2007 3:00 am
Posts: 113
Location: Taiwan
Hi Javier,

There are two ways I can think of (I'm sure there are many others).

If you're using variations on the same template, you can keep different versions of the main index.php file, on a 'per-language' basis.  At it's simplest, copy your template's index.php file to, e.g., index_english.php, (repeat for all languages), and then replace the index.php file with something like this:

Code:
<?php
global $mosConfig_lang;
require_once($mosConfig_absolute_path.'/templates/'.$cur_template.'/index_'.$mosConfig_lang.'.php');
?>


If you want a completely different (and ready-made) template for each language, the best solution might be to make copies of the whole template folder, rename them, e.g., mytemplate_english etc., and then make a tiny hack to the main Joomla! index.php file (located in the root of your Joomla! installation).

lines 218/219
Code:
// gets template for page
$cur_template = $mainframe->getTemplate();


would become
Code:
// gets template for page
$cur_template = $mainframe->getTemplate() . '_' . $mosConfig_lang;


then the whole template will run from a different folder dependant on the language.  (but you have to hack a core file, so don't do it unless you're sure you're comfortable with that.)

Hope this helps a little - good luck!

Simon
:)

edit:
whoops - just noticed this one's been answered already a few times on this very thread....
http://forum.joomla.org/index.php/topic,62827.msg726568.html#msg726568
http://forum.joomla.org/index.php/topic,62827.msg727702.html#msg727702


Last edited by simon_w on Mon Oct 29, 2007 12:46 am, edited 1 time in total.

Top
   
 
Posted: Wed Nov 14, 2007 8:15 am 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 11674
Location: **Translation Matters**
Using JASubmit 2.1 and if you have the right language file in
.../components/com_ja_submit/language/

Edit the file
.../components/com_ja_submit/ja_submit.php

Change
Code:
# Get the language
if ( file_exists($mosConfig_absolute_path.'/components/com_ja_submit/language/'.$H_language) ) {
   require($mosConfig_absolute_path.'/components/com_ja_submit/language/'.$H_language);   } else {
   require($mosConfig_absolute_path.'/components/com_ja_submit/language/default.php');
}

to
Code:
# Get the language
    if (file_exists($mosConfig_absolute_path.'/components/com_ja_submit/language/'.$mosConfig_lang.'.php')) {
      include($mosConfig_absolute_path.'/components/com_ja_submit/language/'.$mosConfig_lang.'.php');
    } else {
      include($mosConfig_absolute_path.'/components/com_ja_submit/language/english.php');
    }


Hope it helps.

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr · GMT +1
Qui vult dare parva non debet magna rogare.
---------------------------------
Joomla! Translation Coordination Team


Top
  E-mail  
 
Posted: Wed Jan 23, 2008 2:04 am 
Joomla! Guru
Joomla! Guru
Offline

Joined: Tue Oct 10, 2006 4:09 pm
Posts: 917
55thinking wrote:
The following tips apply for Joomfish 1.7 stable & joomla 1.0.7. Not tested with other configuration


---------------------------------------------------------------------------------------------------------------------
TIP 4 - HOW TO LOAD A MODULE DEPENDING OF THE LANGUAGE
----------------------------------------------------------------------------------------------------------------------

MODULE - http://forum.joomla.org/index.php/topic ... #msg329684


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

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

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




Feel free to add your own tips in the thread below!!!

NEXT PENDING ISSUE FOR ME IS NOW A FULL COMPATIBILITY BETWEEN JOOMFISH & OPEN-SEF



When you write this

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

you must to put the language between ' , so you must to write 'english'  and so for each languages.

Br


Pierpaolo


Top
   
 
Posted: Thu Feb 28, 2008 8:33 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Dec 25, 2007 8:58 pm
Posts: 23
About TIP 1 :-\
I did excatly as you wrote, but nothing happend. (in IE. in Firefox the English lost its template altogether)
see here: http://www.ebood.co.il
any ideas?


Top
  E-mail  
 
Posted: Thu Apr 17, 2008 11:33 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Apr 15, 2008 12:38 pm
Posts: 8
Hi
when I type title of site or modul name(for example Main Menu) in Armenian I have problem in user page I see this &#1348;&#1381;&#1398;&#1397;&#1400;&#1410; but menus translate correct.
what I can do?


Top
  E-mail  
 
Posted: Tue May 27, 2008 5:02 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Aug 01, 2007 9:54 am
Posts: 14
I have an accordion js module on my site which has labels for opening and closing the panel, now I could change the whole template to accommodate, but I just wondered if there is another way? Here's the js:

Code:
var panelSize = 110;
var effectDuration = 750;
var openString = "Open Panel";
var closeString = "Close Panel";
var transition = Fx.Transitions.bounceOut;

eval(function(p,a,c,k,e,r){e=function(c){return c.toString(a)};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('w.j(9(){c()});c=9(){$(\'2\').4=$(\'2\').v(\'r\',{p:m,b:b});$(\'2\').4.i(-5);$(\'2\').3=0;$(\'u\').d.q=5+\'o\';$(\'n\').d.l="k";$(\'6\').7.8=a;$(\'h\').g(\'f\',9(){s($(\'2\').3==1){$(\'2\').4.e(0,-5);$(\'2\').3=0;$(\'6\').7.8=a}t{$(\'2\').4.e(-5,0);$(\'2\').3=1;$(\'6\').7.8=x}})};',34,34,'||fxContainer|state|fx|panelSize|fxTrigger|lastChild|nodeValue|function|openString|transition|initPullDown|style|start|click|addEvent|fxTab|set|onDomReady|visible|visibility|effectDuration|fxPadding|px|duration|height|top|if|else|fxTarget|effect|window|closeString'.split('|'),0,{}));


It is 'Open Panel' and 'Close Panel' text I would like to change dependent on language, but could I possibly duplicate the js and call it something like controlpanel-en.js within the template index.php?


The script is called in using this line in template index.php:
Code:
<script type="text/javascript" src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/js/controlpanel.js"></script>


Can I use a command within script calls dependent on $mosConfig_lang ?

Thx for giving it your consideration.


Top
  E-mail  
 
Posted: Tue Jun 03, 2008 11:15 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Aug 01, 2007 9:54 am
Posts: 14
OK, figured it out for myself - amazing what you can do when you try!

I replaced the following in the template index.php file (which is where the js is called):
Code:
<script type="text/javascript" src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/<?php echo $mosConfig_lang;?>_js/mootools_pack.js"></script>
<script type="text/javascript" src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/<?php echo $mosConfig_lang;?>_js/MooTools.js"></script>
<script type="text/javascript" src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/<?php echo $mosConfig_lang;?>_js/controlpanel.js"></script>
<script type="text/javascript" src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/<?php echo $mosConfig_lang;?>_js/accordion.js"></script>


With this:
Code:
<script type="text/javascript" src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/js/mootools_pack.js"></script>
<script type="text/javascript" src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/js/MooTools.js"></script>
<script type="text/javascript" src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/js/controlpanel.js"></script>
<script type="text/javascript" src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/js/accordion.js"></script>


and I created a duplicate of my js folder, one for each language and named them [language]_js which thens calls the scripts from the specific folders, which I could then change to suit the language.

Hope this helps someone, to help themselves ;)


Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 52 posts ]  Go to page Previous  1, 2

Quick reply

 



Who is online

Users browsing this forum: No registered users and 5 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 © 2000, 2002, 2005, 2007 phpBB Group