Commit Graph

165 Commits

Author SHA1 Message Date
Xin LI
24824e9721 Fix short month names and replace %b with %_m in date_fmt for Chinese
locales.

When using a Chinese locale, such as zh_TW.UTF-8 or zh_CN.UTF-8,
nl_langinfo(ABMON_*) only returned numbers.  For instance,
nl_langinfo(ABMON_1) returns 1, nl_langinfo(ABMON_2) returns 2, and
so on.

This causes problems in applications that put the short month name
and the day of the month together.  For example, 'Apr 14' in English
becomes '414日' in Chinese on the top bar of GNOME Shell.

This problem may be resolved by appending '月' to all short month
names and replacing %b with %_m in date_fmt. ja_JP.UTF-8 already
does this, and this matches the en_US.ISO8859-1 behavior, which
returns 'Oct'.  The GNU C Library also returns values with '月'
appended.

PR:		199441
Submitted by:	Ting-Wei Lan <lantw44 gmail com>
MFC after:	2 weeks
2015-10-08 17:48:49 +00:00
Simon J. Gerraty
ccfb965433 Add META_MODE support.
Off by default, build behaves normally.
WITH_META_MODE we get auto objdir creation, the ability to
start build from anywhere in the tree.

Still need to add real targets under targets/ to build packages.

Differential Revision:       D2796
Reviewed by: brooks imp
2015-06-13 19:20:56 +00:00
Simon J. Gerraty
d083cb1104 Ensure SYMLINKS fully specified
Differential Revision:       D2748
Reviewed by: brooks
2015-06-11 21:09:03 +00:00
Simon J. Gerraty
44d314f704 dirdeps.mk now sets DEP_RELDIR 2015-06-08 23:35:17 +00:00
Simon J. Gerraty
f5f7c05209 Updated dependencies 2013-02-16 01:23:54 +00:00
Simon J. Gerraty
63478911d0 Include the target filename in SYMLINKS to avoid any confusion about
what is dirname and filename.
2013-01-23 00:49:05 +00:00
Marcel Moolenaar
7750ad47a9 Sync FreeBSD's bmake branch with Juniper's internal bmake branch.
Requested by: Simon Gerraty <sjg@juniper.net>
2012-08-22 19:25:57 +00:00
Konrad Jankowski
e4183d0a3a Partial fix for PR 91106. Correct the short weekday names. Done according to this poll https://bugzilla.redhat.com/show_bug.cgi?id=242296. This will not close the bug fully yet, as the month names are still not correctly in Genitive. More research on this topic will be done, as I'm suspecting a bug in the libc locale functions picking the month name from the wrong group.
PR:		conf/91106
Approved by:	gavin (mentor)
MFC after:	1 month
2011-02-27 21:32:25 +00:00
Ollivier Robert
77a0c59b8f Week days are all lowercase in French.
cf. http://www.academie-francaise.fr/langue/questions.html#jourdelasemaine (FR)

PR:		misc/148792
Submitted by:	Mathieu <freebsd@breatheless.net>
MFC after:	1 weeks
2010-07-20 14:27:09 +00:00
Hajimu UMEMOTO
580a28b11a Since %b contains unit, %b is not suitable for c_fmt, now. Use %_m
instead.
2009-11-14 15:56:23 +00:00
Hajimu UMEMOTO
2711d44449 Add unit to the short month names for Japanese locales.
Without unit, the output of the application like ls(1)
is complicated.

Reviewed by:	nork
MFC after:	1 week
2009-11-11 11:24:02 +00:00
Edwin Groothuis
102dfdb197 Remove trailing spaces. 2009-09-16 07:55:02 +00:00
Andrey A. Chernov
8e5b0cb053 Add lv_LV
PR:             105100
Submitted by:   Aldis Berjoza <killasmurf86@gmail.com>
2009-09-04 06:26:40 +00:00
Hajimu UMEMOTO
e13d7b1486 AM/PM date format for ja_JP.eucJP and ja_JP.SJIS were
localized by r193869.  However, ja_JP.UTF-8 wasn't.
So, reflect it to ja_JP.UTF-8 as well.
2009-08-30 10:47:00 +00:00
Jung-uk Kim
31b6da64c7 Long long time ago, several utilities in base used to parse %c output and
we were not able to change c_fmt without breaking these utilities.  Since
ache fixed all known issues 8 years ago, now we make ko_KR more usable.
Better late than never...
2009-06-15 18:49:06 +00:00
Jung-uk Kim
54088afec3 AM/PM should come first in korean. 2009-06-15 16:32:17 +00:00
Edwin Groothuis
37489b2bed Undo the change in r193688 as suggested in conf/72076.
People on IRC and the -doc mailinglist (June 2009) showed that this
new format wasn't used or known widely enough to justify the change.
2009-06-15 02:17:10 +00:00
Jung-uk Kim
a4cf065a39 ko_KR: AM/PM date format should be localized.
Inspired by:	r193869
2009-06-11 17:42:02 +00:00
Edwin Groothuis
4cb828252c Invalid (long) date format in pl_PL.ISO8859-2.src
Date format is %a %e %b %X %Y %Z (e.g "sob 19 sty 15:46:50 2008 CET")
    but should be "%a %e %b %Y %X %Z" (e.g. "sob 19 sty 2008 15:46:50 CET").

PR:		conf/119804
Submitted by:	Bodek <bodek@blurp.org>
MFC after:	1 week
2009-06-10 21:45:18 +00:00
Edwin Groothuis
f8d7304fea add ca_AD, ca_FR and ca_IT locales
Catalan language is not only spoken in Spain (ca_ES), but also
    in Andorra, France and Italy. In Andorra it is the official
    language.

    (see http://en.wikipedia.org/wiki/Catalan_language#Geographic_distribution)

Add a bunch of symlinks to between ca_ES and ca_AD, ca_FR and ca_IT.

PR:		conf/92541
Submitted by:	<rmh@io.debian.net>
MFC after:	1 week
2009-06-10 12:20:11 +00:00
Edwin Groothuis
20b8d23489 ja_JP: AM/PM date format should be localized.
ja_JP.eucJP and ja_JP.SJIS fixes.

PR:		conf/63527
Submitted by:	Yukihiro Nakai <nakai@gnome.gr.jp>
MFC after:	1 week
2009-06-09 22:33:34 +00:00
Edwin Groothuis
b5f0ce109a [patch] [locale] German locales use old %d.%m.%y date format instead of newer ISO date
From the submitter:

    DIN 5008 (German norm for text processing) defines the old date
    format (%d.%m.%Y) to be obsolete and to be used only, if unambigous.
    In international communications the new format (%Y-%m-%d) is now
    required and FreeBSD should respect this.

    References:
    - DIN 5008
    - EN 28 601
    - ISO 8601

    Thanks to Oliver Lietz for bringing this to my attention.

PR:		conf/72076
Submitted by:	Peter Wullinger <some-mail-drop@gmx.net>
MFC after:	1 week
2009-06-08 05:33:08 +00:00
Edwin Groothuis
3d942a6fc5 [patch] Portuguese timedef
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.

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/Week-day_names (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)

PR:		conf/58595
Submitted by:	Chris Stenton <jacs@gnome.co.uk>
MFC after:	1 week
2009-06-05 13:05:14 +00:00
Dag-Erling Smørgrav
38fb1637a3 Fix ISO8859-15 links for nb_NO / no_NO.
Submitted by:	ru
MFC after:	1 week
2009-04-06 14:12:22 +00:00
Dag-Erling Smørgrav
a6fca50fd7 In the previous commit, no_NO should have been replaced with nb_NO in the
LOCALES list.  Since no_NO was still in LOCALES, make tried to build the
corresponding .out files, but couldn't since the .src files were gone.  I
did not notice this because I still had the old .out files in my .OBJDIR.
Thanks to kib@ for the heads-up.
2008-07-29 11:32:42 +00:00
Dag-Erling Smørgrav
5c86b693d6 In some cases (such as LC_COLLATE), nb_NO and nn_NO are identical, and it
makes sense to have them both link to no_NO.

In other cases (such as LC_TIME), they differ, and the correct solution
is to have no_NO link to nb_NO, rather than the other way around.o

MFC after:	2 weeks
2008-07-28 21:50:21 +00:00
Gabor Kovesdan
0e4369e938 - The names of the months and the days are in lowercase according to the
Hungarian spelling, change them accordingly

Requested by:	Janos Mohacsi <mohacsi@niif.hu>
2008-05-16 12:50:15 +00:00
Andrey A. Chernov
79386ec7db Comments fixing
1) Back out "month names" -> "months names" and fix few such cases which
are wrong initially
2) "weekdays names" -> "weekday names"

Noted by: des [1]
2007-12-30 03:08:52 +00:00
Andrey A. Chernov
27cb743492 Comments fixing
"month names" -> "months names"
    typo
"Long months names (alternative)" or "in alternative form" ->
"(without case ending)"
"Long months names" -> "Long months names (as in a date)"
    to not confuse developers on what purpose those sections are
2007-12-29 16:28:15 +00:00
Andrey A. Chernov
dd1ac27923 Just copy long months names to alternative.
Alternative does not means ASCIIsizing of months names.
2007-12-25 21:24:18 +00:00
Andrey A. Chernov
4f4593826d Just copy long months names to (alternative).
Alternative means another form and not ASCIIsizing of month names.
2007-12-25 21:19:09 +00:00
Dag-Erling Smørgrav
a05bf06920 Add locales for nb_NO and nn_NO.
Reviewed by:	philip
2006-11-09 18:10:34 +00:00
Florent Thoumie
ec53db837e De-capitalize days and months' names.
PR:		conf/101154
Submitted by:	Thomas Jensen <tj@pil.dk>
MFC after:	3 days
2006-10-07 17:04:23 +00:00
Andrey A. Chernov
2eb6639bf4 Add mn_MN.UTF-8
Submitted by:   Ganbold <ganbold@micom.mng.net>
2006-10-02 00:36:52 +00:00
Andrey A. Chernov
072ffc3a77 Fix x.fmt
PR:     88222
Submitted by:   Anders Lindquist <andersl@saaf.se>
2006-04-20 11:00:52 +00:00
Ruslan Ermilov
08f8440ba4 New Ukrainian locale: uk_UA.CP1251.
Submitted by:	Alexander Peresunko
2005-03-04 14:24:30 +00:00
Ruslan Ermilov
21874342d6 Install files with mode 444, as God intended. 2004-10-16 20:52:32 +00:00
Ruslan Ermilov
e09c36dd46 Utilize FILES and SYMLINKS. 2004-10-16 20:42:18 +00:00
Pawel Jakub Dawidek
78366bad6c - Month and weekday names should begin with lowercase latter.
- First part of long month names should use genitive.
- Use more proper shortcuts, leaving the first 3 letters is not always
  correct.

Submitted by:	Bodek <bodek@blurp.org>
2004-09-20 23:56:43 +00:00
Tim J. Robbins
1bbc832cce Add Basque (Spain) locales: eu_ES.ISO8859-1, eu_ES.ISO8859-15, eu_ES.UTF-8.
(This differs somewhat from the version originally submitted - any mistakes
are my own.)

PR:		68524
Submitted by:	J. Vicente Carrasco -Bixen-
2004-08-28 12:52:31 +00:00
Tim J. Robbins
cea8c362b0 Re-generate from sl_SI.ISO8859-2.src rev. 1.8 (lowercase month/weekday names). 2004-08-26 08:18:56 +00:00
Tim J. Robbins
fbda1d2afe Begin month and weekday names with a lowercase letter. This is consistent
with (at least) Solaris, ICU and glibc.

PR:		65317
Submitted by:	Uros
MFC after:	1 week
2004-08-26 08:15:48 +00:00
Tim J. Robbins
ab670aebec Add an Israel Hebrew locale: he_IL.UTF-8.
PR:		65826
Submitted by:	Hye-Shik Chang
2004-04-21 15:28:23 +00:00
Joe Marcus Clarke
8589938ec4 Move en_CA from US_LINKS to GB_LINKS.
Submitted by:	adamw
Approved by:	ache
Committed by:	me since adamw should be studying for exams
2004-04-11 08:07:22 +00:00
Tim J. Robbins
e75dc792b7 Add data for missing categories to zh_HK.Big5HKSCS locale. 2004-04-04 12:24:05 +00:00
Tim J. Robbins
839b21a6f4 Add UTF-8 versions of all the currently supported system locales. Most of
the hard work was done by Hye-Shik Chang in the misc/utf8locale port; I made
a few minor adjustments and merged the makefiles.

PR:	44307
2004-03-27 08:14:15 +00:00
Andrey A. Chernov
7d864d560c Add kk_KZ.PT154
Submitted by:   Birsh T <tim@zhezu.kz>
2004-01-29 16:28:22 +00:00
Andrey A. Chernov
24b5e6f18b Add be_BY.*
Submitted by:   Yury Tarasievich <grog@grsu.by>
2003-12-20 11:18:43 +00:00
David Xu
0a67d47202 Make zh_CN.GBK fully work by making monetdef/msgdef/timedef symlinks to
zh_CN.GB2312 locale files. zh_CN.GB18030 can be changed in same way,
but I havn't done this change since these files already exists.
2003-11-06 23:43:40 +00:00
David Xu
e461ba58ab Enable GB2312 locale. 2003-11-05 23:39:03 +00:00