From nobody@FreeBSD.org  Fri Apr 14 17:10:14 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id D1E9016A400
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 14 Apr 2006 17:10:14 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 8F91F43D48
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 14 Apr 2006 17:10:14 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k3EHAExV021526
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 14 Apr 2006 17:10:14 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k3EHAEno021525;
	Fri, 14 Apr 2006 17:10:14 GMT
	(envelope-from nobody)
Message-Id: <200604141710.k3EHAEno021525@www.freebsd.org>
Date: Fri, 14 Apr 2006 17:10:14 GMT
From: Miguel Saturnino <miguel.saturnino@teiadigital.pt>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] Portuguese timedef
X-Send-Pr-Version: www-2.3

>Number:         95754
>Category:       conf
>Synopsis:       [patch] [locale] Portuguese timedef
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    edwin
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 14 17:20:13 GMT 2006
>Closed-Date:    Fri Jun 12 07:38:05 UTC 2009
>Last-Modified:  Fri Jun 12 07:38:05 UTC 2009
>Originator:     Miguel Saturnino
>Release:        FreeBSD 6.0-RELEASE-p1
>Organization:
Teia Digital
>Environment:
FreeBSD zeus.teiadigital.net 6.0-RELEASE-p1 FreeBSD 6.0-RELEASE-p1 #0: Sat Dec 24 12:38:59 WET 2005     root@zeus.teiadigital.net:/usr/obj/usr/src/sys/MYKERNEL  i386
>Description:
This problem description applies to
src/share/timedef/pt_PT.ISO8859-1.src
and
src/share/timedef/pt_PT.UTF-8.src

In Portuguese, the names of the days of the week are not capitalized. Also there is always a dash before "feira" in the names of the days. For example: "segunda-feira" and not "segunda feira" (which has a completely different meaning).

x_fmt is not correct either. The date separator should not be a dot but a slash. Example: 31/12/2005 if far more used in Portugal than 31.12.2005.
>How-To-Repeat:
$ export LC_TIME='pt_PT.ISO8859-1'; date "+%A"
outputs "Sexta Feira", but should output "sexta-feira"

References:
- a Portuguese online dictionary http://priberam.pt/dlpo/dlpo.aspx
- http://answers.com/days_of_the_week (there are translations to various languages, including Portuguese, at the bottom of the page)
- http://en.wikipedia.org/wiki/Days_of_the_week (there are translations to various languages, including Portuguese, at the bottom of the page)
- a Portuguese style guide http://www.publico.clix.pt/nos/livro_estilo/16d-palavras.html ("datas" section)
>Fix:
diff -u pt_PT.ISO8859-1.src.orig pt_PT.ISO8859-1.src
--- pt_PT.ISO8859-1.src.orig    Fri Apr 14 17:07:23 2006
+++ pt_PT.ISO8859-1.src Fri Apr 14 17:41:12 2006
@@ -36,23 +36,23 @@
 #
 # Short weekdays names
 #
-Dom
-Seg
-Ter
-Qua
-Qui
-Sex
-Sb
+dom
+seg
+ter
+qua
+qui
+sex
+sb
 #
 # Long weekdays names
 #
-Domingo
-Segunda Feira
-Tera Feira
-Quarta Feira
-Quinta Feira
-Sexta Feira
-Sbado
+domingo
+segunda-feira
+tera-feira
+quarta-feira
+quinta-feira
+sexta-feira
+sbado
 #
 # X_fmt
 #
@@ -60,7 +60,7 @@
 #
 # x_fmt
 #
-%d.%m.%Y
+%d/%m/%Y
 #
 # c_fmt
 #

(the same applies to pt_PT.UTF-8.src)
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->patched 
State-Changed-By: edwin 
State-Changed-When: Fri Jun 5 13:05:42 UTC 2009 
State-Changed-Why:  
Commited to head, MFC in a week. 


Responsible-Changed-From-To: freebsd-bugs->edwin 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Fri Jun 5 13:05:42 UTC 2009 
Responsible-Changed-Why:  
Track. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=95754 
State-Changed-From-To: patched->closed 
State-Changed-By: edwin 
State-Changed-When: Fri Jun 12 07:37:49 UTC 2009 
State-Changed-Why:  
MFC to stable/7 done 

http://www.freebsd.org/cgi/query-pr.cgi?pr=95754 
>Unformatted:
