# [PATCH] Enable LC_MESSAGES locale, when gettext is compiled

- Thread: https://externals.io/message/2010
- Original archive: https://news-web.php.net/php.internals/2010
- Started by Melvyn Sopacua on 2003-05-26T11:03:32+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #2010 — Melvyn Sopacua — 2003-05-26T11:03:32+00:00

URL: https://externals.io/message/2010#2010

Hi,

attached a small fix, for OS's who do not natively support the `LC_MESSAGES` 
locale.

When on these platforms the gettext extension is compiled in, it is still 
useless,
since libintl.h is the one defining the locale.

Tested and working, no side-effects observed.

With kind regards,

Melvyn Sopacua
<?php include("not_reflecting_employers_views.txt"); ?

---

## #2013 — Moriyoshi Koizumi — 2003-05-26T12:44:45+00:00

URL: https://externals.io/message/2010#2013 · In reply to: #2010

I think this patch should go to the PHP_4_3 branch too.

Moriyoshi

Melvyn Sopacua <msopacua@php.net> wrote:

> Hi,
> 
> attached a small fix, for OS's who do not natively support the `LC_MESSAGES` 
> locale.
> 
> When on these platforms the gettext extension is compiled in, it is still 
> useless,
> since libintl.h is the one defining the locale.
> 
> Tested and working, no side-effects observed.
> 
> With kind regards,
> 
> Melvyn Sopacua
> <?php include("not_reflecting_employers_views.txt"); ?

---

## #2019 — Jani Taskinen — 2003-05-26T19:06:38+00:00

URL: https://externals.io/message/2010#2019 · In reply to: #2010

>attached a small fix, for OS's who do not natively support the `LC_MESSAGES` 
>locale.

    What OSes might those be?
    
>When on these platforms the gettext extension is compiled in, it is still 
>useless, since libintl.h is the one defining the locale.

    What is useless, this patch or gettext?

>Tested and working, no side-effects observed.

    Feel free to commit to the 4_3 branch.
    
    --Jani
