Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PlugIn > translate Publication date
#8
It is the solution: thanks mvlcek.

Quote:It seems that it depends on the operating system, which locales are available and how they are named.
If you have shell access, you can find out with locale -a.
Otherwise you can just try: use a string with all possible names separated by comma as in the example for german, like 'es_ES,es,esp,spa' (I'm guessing here - you may find possible names with google).

In Apache windows server, only with 'esp' works good.
Code:
setlocale(LC_TIME, preg_split('/\s*,\s*/','esp'));

But in apache linux server, it doesn´t work.
I will investigate... Smile

Hi yojoe; i use strftime...

Regards.
Reply


Messages In This Thread
PlugIn > translate Publication date - by cumbe - 2010-05-02, 08:37:34
PlugIn > translate Publication date - by luc - 2011-06-15, 21:06:08
PlugIn > translate Publication date - by mvlcek - 2011-06-15, 21:50:12
PlugIn > translate Publication date - by ccagle8 - 2011-06-15, 22:07:32
PlugIn > translate Publication date - by cumbe - 2011-06-16, 03:36:40
PlugIn > translate Publication date - by yojoe - 2011-06-16, 04:04:57
PlugIn > translate Publication date - by mvlcek - 2011-06-16, 04:06:46
PlugIn > translate Publication date - by cumbe - 2011-06-16, 04:32:51
PlugIn > translate Publication date - by yojoe - 2011-06-16, 04:36:36
PlugIn > translate Publication date - by cumbe - 2011-06-16, 04:43:44
PlugIn > translate Publication date - by cumbe - 2011-06-16, 05:05:31
PlugIn > translate Publication date - by mvlcek - 2011-06-16, 05:05:52



Users browsing this thread: 1 Guest(s)