hi,
is there some core function in drupal returning a language list like array('eng' => t('english'), 'ger' => t('german'))? I wan't to use it in a form select element.
http://api.drupal.org/api/drupal/includes--bootstrap.inc/function/language_l...
On Tue, Aug 23, 2011 at 5:24 PM, Marco Lechner - in medias res < lechner@webgis.de> wrote:
hi,
is there some core function in drupal returning a language list like array('eng' => t('english'), 'ger' => t('german'))? I wan't to use it in a form select element. -- [ Drupal support list | http://lists.drupal.org/ ]
Hi Havran,
thnx for this hint, but it's not what I was looking for. I didn't look for a list of set up languages but a "complete" list of available languages including those that could be set up. I found something in iso.inc [1]. But later on it came out that I need the list compliant to iso639-2 [2] and therefore had to write my own php-class providing those by parsing the available txt-file [3].
I'm describing this in setail, for it might help anybody having similar needs.
Best regards (especially to my beloved slovakia)
Marco
[1] http://api.drupal.org/api/drupal/includes--iso.inc/7/source [2] http://www.loc.gov/standards/iso639-2/php/code_list.php [3] http://www.loc.gov/standards/iso639-2/ascii_8bits.html
Am 24.08.2011 16:55, schrieb Juraj Chlebec:
http://api.drupal.org/api/drupal/includes--bootstrap.inc/function/language_l...
On Tue, Aug 23, 2011 at 5:24 PM, Marco Lechner - in medias res <lechner@webgis.de mailto:lechner@webgis.de> wrote:
hi, is there some core function in drupal returning a language list like array('eng' => t('english'), 'ger' => t('german'))? I wan't to use it in a form select element. -- [ Drupal support list | http://lists.drupal.org/ ]-- Juraj Chlebec aka Havran http://www.fem.uniag.sk/havran - Havranov mini-blog