Answer the question
In order to leave comments, you need to log in
Month names not inflected (centos+php)?
The names of the months in Russian and Ukrainian are not inclined:
<?php
echo setlocale(LC_ALL, 'ru_RU.utf8'); // аналогично и echo setlocale(LC_ALL, 'uk_UA.utf8');
echo strftime("%d %B");
ru_RU.utf8
16 Апрель
ru_RU.utf8
16 Апреля
Answer the question
In order to leave comments, you need to log in
“being your own evil pinocchio” is to produce crutches, instead of using already implemented functionality
On the question itself:
an excerpt from the CentOS Ukrainian locale file
% Initially alt_digits was supposed to hold alternative symbols for _digits_,
% corresponding to %O modified conversion specification.
% Although in Ukrainian language alternate _names_ are used instead of digits.
% We'll use this keyword to present a list of month names in proper form for
% date, see mon. (%Om)
%
% This hack is dedicated for months it won't work for other %O* modifiers
% (weeks, days etc).
%
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question