The Joomla! Forum ™






Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Fri Nov 02, 2007 8:27 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Dec 25, 2006 3:08 pm
Posts: 19
`hi ..
does joomla store the language file names installed in the database !?

i need to know if it is possible to retrive the number and names of language installed on a website !?

if joomla doesn`t store the filenames, then the only way to retrive those info is to open language Directory and count the files on it !?
thanks in advance


Top
 Profile  
 
PostPosted: Fri Nov 02, 2007 9:13 pm 
User avatar
Joomla! Master
Joomla! Master

Joined: Thu Aug 18, 2005 8:55 pm
Posts: 19645
Location: Nijmegen, The Netherlands
No, in a default Joomla installation, the current language selection is stored in configuration.php
and the languages are stored as files in /languages/

However, if you use JoomFish, maybe the languages available are stored somewhere in the Joomfish tables.
As I do not have a Joomla site with JoomFish at hand, I am not sure and don't know how to retrieve all languages at the website.

Yes you can open the /languages/ directory and count the different language files.
Most languages have 3 files: an xml info file, a php file with all translations, and possibly an ignore file used for the search (to ignore common words for that language during a search).

_________________
Kind Regards,
Peter Martin, Global Moderator - Community Leadership Team
http://www.db8.nl - Joomla specialist, Nijmegen, Nederland
Joomla 2.5 multilanguage in 10 steps: http://www.db8.nl/en/joomla-presentatio ... ge-website


Top
 Profile  
 
PostPosted: Fri Nov 02, 2007 10:27 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Dec 25, 2006 3:08 pm
Posts: 19
thank you pe7er for the answer ...
i also searched the joomla database for any possible language file names, but found nothing ..
i thought the files could be saved in some other way ..

Thanks for the answer, i will use the open dir method  :)


Top
 Profile  
 
PostPosted: Tue Jul 06, 2010 3:27 pm 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso

Joined: Thu Aug 18, 2005 12:39 pm
Posts: 4023
Location: São Paulo - Brazil
@Pe7er
You said that:
No, in a default Joomla installation, the current language selection is stored in configuration.php

What is the variable where default language is stored??

thanks.

_________________
http://www.ronildo.com.br/blog/ pt-br | twitter: twitter.com/ronildo
http://forum.joomla.org/viewtopic.php?f=23&t=144443 - FAQ Joomla [pt]
Pessoal por favor não tiro dúvidas por e-mail nem mensagem privada, por favor não insistam.


Top
 Profile  
 
PostPosted: Wed Jul 07, 2010 4:37 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 17190
Location: **Translation Matters**
ronildo wrote:
@Pe7er
You said that:
No, in a default Joomla installation, the current language selection is stored in configuration.php

What is the variable where default language is stored??

thanks.

This is a Joomla 1.0 forum. Is your question related to 1.0.x ?
If yes the variable is
$mosConfig_locale

In 1.5.15, the params are stored in the _components-> com_language table for default languages and in the user parameters.

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr
Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf
---------------------------------
Joomla Translation Coordination Team • Joomla! Production Working Group


Top
 Profile  
 
PostPosted: Sat Jul 31, 2010 3:30 pm 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso

Joined: Thu Aug 18, 2005 12:39 pm
Posts: 4023
Location: São Paulo - Brazil
Thanks Jean, I found this post through the search. Didn't realize it was a 1.0.x forum.
But Thanks for the information, I also found the solution the following day :)

_________________
http://www.ronildo.com.br/blog/ pt-br | twitter: twitter.com/ronildo
http://forum.joomla.org/viewtopic.php?f=23&t=144443 - FAQ Joomla [pt]
Pessoal por favor não tiro dúvidas por e-mail nem mensagem privada, por favor não insistam.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 



Who is online

Users browsing this forum: No registered users and 2 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