stroring language filenames installed in Database ?

General questions regarding the use of languages and encoding issues in Joomla! 1.0.x. Multi-lingual site solutions can be discussed in the child board. Translation discussions are now separate and can be found in the Working Groups Area.

Moderator: General Support Moderators

Locked
miga
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Mon Dec 25, 2006 3:08 pm

stroring language filenames installed in Database ?

Post by miga » Fri Nov 02, 2007 8:27 pm

`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

User avatar
pe7er
Joomla! Master
Joomla! Master
Posts: 24927
Joined: Thu Aug 18, 2005 8:55 pm
Location: Nijmegen, Netherlands
Contact:

Re: stroring language filenames installed in Database ?

Post by pe7er » Fri Nov 02, 2007 9:13 pm

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
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com

miga
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Mon Dec 25, 2006 3:08 pm

Re: stroring language filenames installed in Database ?

Post by miga » Fri Nov 02, 2007 10:27 pm

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  :)

User avatar
ronildo
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4021
Joined: Thu Aug 18, 2005 12:39 pm
Location: São Paulo - Brazil
Contact:

Re: stroring language filenames installed in Database ?

Post by ronildo » Tue Jul 06, 2010 3:27 pm

@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.

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: stroring language filenames installed in Database ?

Post by infograf768 » Wed Jul 07, 2010 4:37 am

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
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

User avatar
ronildo
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4021
Joined: Thu Aug 18, 2005 12:39 pm
Location: São Paulo - Brazil
Contact:

Re: stroring language filenames installed in Database ?

Post by ronildo » Sat Jul 31, 2010 3:30 pm

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.


Locked

Return to “Language - 1.0.x”