0

I am currently using gettext() for localization(Japanese).

gettext('msgid);

In the web page, at some places, I've used date('M d H:i A'); It outputs Feb 24 17:41 PM.

But I want here Feb and PM should also be translated in Japanese using gettext.

1 Answers1

0

Did you try using

setlocale ("LC_ALL", "ja_JP");

before using date()? It should print date according to Japanese locale conventions...

Gettext is not responsible for traslating output from code...

MarcoS
  • 17,323
  • 24
  • 96
  • 174