Steve Jones
2010-05-28 18:58:08 UTC
I was looking into the use of strftime() to format dates in other languages,
which seems to work if you first use setlocale() with one of the language
strings listed here
http://msdn.microsoft.com/en-us/library/39cwe7zf%28v=VS.80%29.aspx
However, it also seems to accept many of the strings in the Locale column
listed here
http://msdn.microsoft.com/en-us/goglobal/bb895996.aspx
For example, "Welsh" does not appear in the first list, but is accepted by
setlocale, and strftime returns Friday as "Dydd Gwener" which is correct.
Is the first list out of date with regards to setlocal() ?
Is there a way of finding out all of the locales which really are supported
by setlocale/strftime on the PC (presumably depends on what language packs
are installed) ?
which seems to work if you first use setlocale() with one of the language
strings listed here
http://msdn.microsoft.com/en-us/library/39cwe7zf%28v=VS.80%29.aspx
However, it also seems to accept many of the strings in the Locale column
listed here
http://msdn.microsoft.com/en-us/goglobal/bb895996.aspx
For example, "Welsh" does not appear in the first list, but is accepted by
setlocale, and strftime returns Friday as "Dydd Gwener" which is correct.
Is the first list out of date with regards to setlocal() ?
Is there a way of finding out all of the locales which really are supported
by setlocale/strftime on the PC (presumably depends on what language packs
are installed) ?