util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Portuguese cal uncapitalized problem
@ 2021-07-20 12:37 Daniel Santos
  2021-07-20 14:43 ` Karel Zak
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Santos @ 2021-07-20 12:37 UTC (permalink / raw)
  To: util-linux

Hi everyone.
I would like for the Portuguese months and days of the week of `cal`, to 
be capitalized.
  . Can anyone do this?
  . Should I do this? Where can I find the days of the week and the 
months translation? (it does no seem to be in the 
https://translationproject.org/POT-files/util-linux-2.37-rc2.pot file)

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Portuguese cal uncapitalized problem
  2021-07-20 12:37 Portuguese cal uncapitalized problem Daniel Santos
@ 2021-07-20 14:43 ` Karel Zak
  0 siblings, 0 replies; 2+ messages in thread
From: Karel Zak @ 2021-07-20 14:43 UTC (permalink / raw)
  To: Daniel Santos; +Cc: util-linux

On Tue, Jul 20, 2021 at 01:37:46PM +0100, Daniel Santos wrote:
> Hi everyone.
> I would like for the Portuguese months and days of the week of `cal`, to be
> capitalized.
>  . Can anyone do this?
>  . Should I do this? Where can I find the days of the week and the months
> translation? (it does no seem to be in the
> https://translationproject.org/POT-files/util-linux-2.37-rc2.pot file)

It uses nl_langinfo(ABDAY_*) libc call to get the weekday name. So,
this is not maintained by util-linux.

For more details see 'man nl_langinfo' and ABDAY_{1–7} (LC_TIME)
section.

Frankly, the best would be to resolve it by a small shell script where
you convert second line of the cal(1) output from a-z to A-Z.

 Karel

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-07-20 15:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-20 12:37 Portuguese cal uncapitalized problem Daniel Santos
2021-07-20 14:43 ` Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).