[support] array returning language list in drupal core?
Marco Lechner - IMR
lechner at webgis.de
Wed Aug 24 18:48:32 UTC 2011
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_list/6
>
>
> On Tue, Aug 23, 2011 at 5:24 PM, Marco Lechner - in medias res
> <lechner at webgis.de <mailto:lechner at 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20110824/9afb2ef2/attachment.html
More information about the support
mailing list