Welcome Guest, Not a member yet? Register   Sign In
Translation of mdate()
#1

[eluser]Unknown[/eluser]
Hey everyone,

Though this is my first post, it's not my first CI-experience. I guess that's a good thing, 'cause I never needed a lot of help with CI Smile
Anyway, i'm struggling with this. I want translated dates, but without using setlocale(). With my current project I'm running a server that doesn't support it and when I read this kind of stuff, I don't like it:

Quote:http://php.net/manual/en/function.setlocale.php
Note: The return value of setlocale() depends on the system that PHP is running. It returns exactly what the system setlocale function returns.

I've got (dutch) language-packs, but date() / mdate() don't seem to be able to use this to translate it. What's the catch?
#2

[eluser]danmontgomery[/eluser]
You can set intl.default_locale in php.ini... But all of php's date functions are based on the current locale setting, so they don't accept any locale parameters.




Theme © iAndrew 2016 - Forum software by © MyBB