php - Set Locale - Russian -


i'm using setlocale display dates in russian.

setlocale(lc_time, 'ru_ru'); 

my question is, ru_ru enough or safer provide number of alternative language params?

well, want dates in russian, you've set locale time-related functions ru_ru, that's it.

i'd advise set current locale secondary choice lc_time, in case ru_ru not available :

setlocale(lc_time, 'ru_ru', setlocale(lc_time, '0')); // setlocale() '0' return current settings without applying changes. 

the current locale setting set system administrator, , unlikely go unavailable.


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -