Bug 105100 - [patch] [locale] no support for lv (latvian) locale
Summary: [patch] [locale] no support for lv (latvian) locale
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-03 07:30 UTC by Eriks Dobelis
Modified: 2012-11-02 22:18 UTC (History)
0 users

See Also:


Attachments
latvian_locale_patch.tar.gz (2.69 KB, application/gzip)
2006-11-03 20:58 UTC, Eriks Dobelis
no flags Details
latvian_locale_patch.tar.gz (2.69 KB, application/x-gzip;name="latvian_locale_patch.tar.gz")
2006-11-03 20:30 UTC, phaethon
no flags Details
latvian_locale_patch_v2.tar.gz (1.49 KB, application/gzip)
2007-02-13 09:34 UTC, Eriks Dobelis
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eriks Dobelis 2006-11-03 07:30:18 UTC
Currently there is no latvian locale in FreeBSD. At least two locales should be added lv_LV.UTF-8 and lv_LV.ISO8859-13.

Fix: 

/usr/src/share/colldef/lv_LV.ISO8859-13.src
/usr/src/share/mklocale/lv_LV.ISO8859-13.src
/usr/src/share/monetdef/lv_LV.ISO8859-13.src
/usr/src/share/msgdef/lv_LV.ISO8859-13.src
/usr/src/share/numericdef/lv_LV.ISO8859-13.src
/usr/src/share/timedef/lv_LV.ISO8859-13.src
/usr/src/share/colldef/lv_LV.UTF-8.src
/usr/src/share/mklocale/lv_LV.UTF-8.src
/usr/src/share/monetdef/lv_LV.UTF-8.src
/usr/src/share/msgdef/lv_LV.UTF-8.src
/usr/src/share/numericdef/lv_LV.UTF-8.src
/usr/src/share/timedef/lv_LV.UTF-8.src

files have to be created and corresponding Makefiles updated.
How-To-Repeat: Checking "locale -a" confirms this.
Comment 1 phaethon 2006-11-03 20:30:32 UTC
These additional files and diffs add lv_LV.UTF-8 and lv_LV.ISO8859-13
locales. 

Eriks Dobelis
Comment 2 Eriks Dobelis 2006-11-03 20:58:50 UTC
These additional files and diffs add lv_LV.UTF-8 and lv_LV.ISO8859-13
locales.

Eriks Dobelis
Comment 3 Eriks Dobelis 2006-11-06 23:24:12 UTC
In case it is easier this is an URL where the patch archive can be found:
http://www.biti.lv/latvian_locale_patch.tar.gz

Eriks Dobelis
Comment 4 eriks 2007-02-12 23:14:45 UTC
Could it be possible for somebody to review and submit the previously 
added patch? It's just about adding missing locale, so probability of 
adverse impact is minimal.
Comment 5 Eriks Dobelis 2007-02-13 09:34:28 UTC
Updated as for Andrey's comments. Please, review!

P.S. I was a bit confused why BSD.local.dist should be untoched as e.g. 
lt locales lt_LT.ISO8859-13, lt_LT.ISO8859-4, lt_LT.UTF-8 are there. 
Anyway, I removed BSD.local.dist.diff from the patch archive.

Regards!
Comment 6 eriks.dobelis 2007-04-12 11:48:19 UTC
Could somebody take a look at the previously submitted patch, please?

Thanks in advance!
Comment 7 Eriks Dobelis 2007-08-15 23:40:48 UTC
Could somebody review and submit this trivial patch, please?

Thanks in advance,

Eriks
Comment 8 Andrey A. Chernov freebsd_committer freebsd_triage 2009-01-04 18:34:59 UTC
State Changed
From-To: open->feedback

About your patch v2, it requires more work: 
1) Please use unified diff format (diff -u) since line numbers are out of sync  
in the development branch. 
2) There must be no symlinks in the source directories, all symlinks should  
be created at the install stage by Makefile itself (if properly assigned). 
Also please don't use binary attachments in the PRs - they are hard to extract  
due to flatten MIME structure. 

Your question about BSD.local.dist: only locales used by 5 or more ports goes 
there.
Comment 9 Andrey A. Chernov freebsd_committer freebsd_triage 2009-01-04 18:45:42 UTC
Responsible Changed
From-To: freebsd-bugs->ache

Assign to me.
Comment 10 Aldis Berjoza 2009-09-03 16:25:48 UTC
I've updated original patch, so that it can be applied to FreeBSD-8-Beta3

To patch FreeBSD-8-Beta3 you need to download patch to /usr
and run
# cd /usr
# patch -p < lv_patch.diff

after that, to update FreeBSD, run:
# mkdir /usr/share/local/lv_LV.UTF8
# mkdir /usr/share/local/lv_LV.ISO8859-13
# cd /usr/src/share
# make
# make install

That should be it.


P.S.
I attached file to this e-mail
If anything let me know...

Alternative patch download link:
http://www.failiem.lv/down.php?i=sonhzm&n=lv_patch.diff

-- 
Aldis Berjoza
	http://killasmurf86.blogspot.com

*** MÄKLÄJU DARBU :D ***
	Tev ir vienreizÄja iespÄja iegÅ«t labu darbinieku IT sfÄrÄ, ar lielu motivÄciju pilnveidoties un apgÅ«t jaunas zinÄÅ¡anas
	CV:	http://www.cv.lv/client/fullcv.php?cv_id=3227015
	nepalaid garÄm :D

	My public GPG key:
	http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7ED573D3
Comment 11 dfilter service freebsd_committer freebsd_triage 2009-09-04 06:54:58 UTC
Author: ache
Date: Fri Sep  4 05:54:45 2009
New Revision: 196812
URL: http://svn.freebsd.org/changeset/base/196812

Log:
  Add lv_LV
  
  PR:             105100
  Submitted by:   Aldis Berjoza <killasmurf86@gmail.com>

Added:
  head/share/monetdef/lv_LV.ISO8859-13.src   (contents, props changed)
Modified:
  head/share/monetdef/Makefile

Modified: head/share/monetdef/Makefile
==============================================================================
--- head/share/monetdef/Makefile	Fri Sep  4 05:40:06 2009	(r196811)
+++ head/share/monetdef/Makefile	Fri Sep  4 05:54:45 2009	(r196812)
@@ -44,6 +44,7 @@ LOCALES=	af_ZA.ISO8859-1 \
 		ko_KR.eucKR \
 		ko_KR.UTF-8 \
 		lt_LT.ISO8859-13 \
+		lv_LV.ISO8859-13 \
 		mn_MN.UTF-8 \
 		nl_BE.ISO8859-1 \
 		nl_NL.ISO8859-1 \
@@ -117,7 +118,7 @@ ISO8859-2_UTF-8= hr_HR hu_HU ro_RO sk_SK
 ISO8859-7_UTF-8= el_GR
 ISO8859-9_UTF-8= tr_TR
 ISO8859-13_ISO8859-4= lt_LT
-ISO8859-13_UTF-8= lt_LT
+ISO8859-13_UTF-8= lt_LT lv_LV
 ISO8859-15_ISO8859-15= es_ES:eu_ES
 ISO8859-15_UTF-8= et_EE
 UTF-8_Big5HKSCS= zh_HK

Added: head/share/monetdef/lv_LV.ISO8859-13.src
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/share/monetdef/lv_LV.ISO8859-13.src	Fri Sep  4 05:54:45 2009	(r196812)
@@ -0,0 +1,36 @@
+# $FreeBSD$
+#
+# WARNING: spaces may be essential at the end of lines
+# WARNING: empty lines are essential too
+#
+# int_curr_symbol (last character always SPACE)
+LVL 
+# currency_symbol
+Ls
+# mon_decimal_point
+,
+# mon_thousands_sep
+ 
+# mon_grouping, separated by ;
+3;3
+# positive_sign
+
+# negative_sign
+-
+# int_frac_digits
+2
+# frac_digits
+2
+# p_cs_precedes
+0
+# p_sep_by_space
+1
+# n_cs_precedes
+0
+# n_sep_by_space
+1
+# p_sign_posn
+1
+# n_sign_posn
+1
+# EOF
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
Comment 12 dfilter service freebsd_committer freebsd_triage 2009-09-04 07:19:47 UTC
Author: ache
Date: Fri Sep  4 06:19:37 2009
New Revision: 196813
URL: http://svn.freebsd.org/changeset/base/196813

Log:
  Add lv_LV
  
  PR:             105100
  Submitted by:   Aldis Berjoza <killasmurf86@gmail.com>

Added:
  head/share/msgdef/lv_LV.ISO8859-13.src   (contents, props changed)
  head/share/msgdef/lv_LV.UTF-8.src   (contents, props changed)
Modified:
  head/share/msgdef/Makefile

Modified: head/share/msgdef/Makefile
==============================================================================
--- head/share/msgdef/Makefile	Fri Sep  4 05:54:45 2009	(r196812)
+++ head/share/msgdef/Makefile	Fri Sep  4 06:19:37 2009	(r196813)
@@ -40,6 +40,8 @@ LOCALES=	af_ZA.ISO8859-1 \
 		ko_KR.UTF-8 \
 		ko_KR.eucKR \
 		lt_LT.ISO8859-13 \
+		lv_LV.ISO8859-13 \
+		lv_LV.UTF-8 \
 		mn_MN.UTF-8 \
 		nl_NL.ISO8859-1 \
 		no_NO.ISO8859-1 \

Added: head/share/msgdef/lv_LV.ISO8859-13.src
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/share/msgdef/lv_LV.ISO8859-13.src	Fri Sep  4 06:19:37 2009	(r196813)
@@ -0,0 +1,14 @@
+# $FreeBSD$
+#
+# WARNING: spaces may be essential at the end of lines
+# WARNING: empty lines are essential too
+#
+# yesexpr
+^[jJyY].*
+# noexpr
+^[nN].*
+# yesstr
+jâ
+# nostr
+nç
+# EOF

Added: head/share/msgdef/lv_LV.UTF-8.src
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/share/msgdef/lv_LV.UTF-8.src	Fri Sep  4 06:19:37 2009	(r196813)
@@ -0,0 +1,14 @@
+# $FreeBSD$
+#
+# WARNING: spaces may be essential at the end of lines
+# WARNING: empty lines are essential too
+#
+# yesexpr
+^[jJyY].*
+# noexpr
+^[nN].*
+# yesstr
+jÄ
+# nostr
+nÄ
+# EOF
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
Comment 13 dfilter service freebsd_committer freebsd_triage 2009-09-04 07:26:53 UTC
Author: ache
Date: Fri Sep  4 06:26:40 2009
New Revision: 196814
URL: http://svn.freebsd.org/changeset/base/196814

Log:
  Add lv_LV
  
  PR:             105100
  Submitted by:   Aldis Berjoza <killasmurf86@gmail.com>

Added:
  head/share/timedef/lv_LV.ISO8859-13.src   (contents, props changed)
  head/share/timedef/lv_LV.UTF-8.src   (contents, props changed)
Modified:
  head/share/timedef/Makefile

Modified: head/share/timedef/Makefile
==============================================================================
--- head/share/timedef/Makefile	Fri Sep  4 06:19:37 2009	(r196813)
+++ head/share/timedef/Makefile	Fri Sep  4 06:26:40 2009	(r196814)
@@ -53,6 +53,8 @@ LOCALES=	am_ET.UTF-8 \
 		lt_LT.ISO8859-4 \
 		lt_LT.ISO8859-13 \
 		lt_LT.UTF-8 \
+		lv_LV.ISO8859-13 \
+		lv_LV.UTF-8 \
 		mn_MN.UTF-8 \
 		nb_NO.ISO8859-1 \
 		nb_NO.UTF-8 \

Added: head/share/timedef/lv_LV.ISO8859-13.src
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/share/timedef/lv_LV.ISO8859-13.src	Fri Sep  4 06:26:40 2009	(r196814)
@@ -0,0 +1,101 @@
+# $FreeBSD$
+# WARNING: spaces may be essential at the end of lines
+# WARNING: empty lines are essential too
+#
+# Short month names
+#
+Jan
+Feb
+Mar
+Apr
+Mai
+Jûn
+Jûl
+Aug
+Sep
+Okt
+Nov
+Dec
+#
+# Long month names
+#
+janvâris
+februâris
+marts
+aprîlis
+maijs
+jûnijs
+jûlijs
+augusts
+septembris
+oktobris
+novembris
+decembris
+#
+# Short weekday names
+#
+Sv
+Pr
+Ot
+Tr
+Ct
+Pk
+Ss
+#
+# Long weekday names
+#
+Svçtdiena
+Pirmdiena
+Otrdiena
+Treðdiena
+Ceturtdiena
+Piektdiena
+Sestdiena
+#
+# X_fmt
+#
+%H:%M:%S
+#
+# x_fmt
+#
+%d/%m/%Y
+#
+# c_fmt
+# %A, %Y m. %B %e d. %T
+%e. %b, %Y. gads %X
+#
+# am
+#
+
+#
+# pm
+#
+
+#
+# date_fmt
+#
+%A, %Y. gada %e. %B %T %Z
+#
+# Long month names in alternative form
+#
+janvâris
+februâris
+marts
+aprîlis
+maijs
+jûnijs
+jûlijs
+augusts
+septembris
+oktobris
+novembris
+decembris
+#
+# md_order
+#
+md
+#
+# ampm_fmt
+#
+
+# EOF

Added: head/share/timedef/lv_LV.UTF-8.src
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/share/timedef/lv_LV.UTF-8.src	Fri Sep  4 06:26:40 2009	(r196814)
@@ -0,0 +1,101 @@
+# $FreeBSD$
+# WARNING: spaces may be essential at the end of lines
+# WARNING: empty lines are essential too
+#
+# Short month names
+#
+Jan
+Feb
+Mar
+Apr
+Mai
+JÅ«n
+JÅ«l
+Aug
+Sep
+Okt
+Nov
+Dec
+#
+# Long month names
+#
+janvÄris
+februÄris
+marts
+aprīlis
+maijs
+jūnijs
+jūlijs
+augusts
+septembris
+oktobris
+novembris
+decembris
+#
+# Short weekday names
+#
+Sv
+Pr
+Ot
+Tr
+Ct
+Pk
+Ss
+#
+# Long weekday names
+#
+SvÄtdiena
+Pirmdiena
+Otrdiena
+Trešdiena
+Ceturtdiena
+Piektdiena
+Sestdiena
+#
+# X_fmt
+#
+%H:%M:%S
+#
+# x_fmt
+#
+%d/%m/%Y
+#
+# c_fmt
+# %A, %Y m. %B %e d. %T
+%e. %b, %Y. gads %X
+#
+# am
+#
+
+#
+# pm
+#
+
+#
+# date_fmt
+#
+%A, %Y. gada %e. %B %T %Z
+#
+# Long month names in alternative form
+#
+janvÄris
+februÄris
+marts
+aprīlis
+maijs
+jūnijs
+jūlijs
+augusts
+septembris
+oktobris
+novembris
+decembris
+#
+# md_order
+#
+md
+#
+# ampm_fmt
+#
+
+# EOF
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
Comment 14 Andrey A. Chernov freebsd_committer freebsd_triage 2009-09-04 07:30:55 UTC
State Changed
From-To: feedback->patched

Committed into -current (restructured to avoid files duplication) 


Comment 15 Andrey A. Chernov freebsd_committer freebsd_triage 2009-09-04 07:30:55 UTC
Responsible Changed
From-To: ache->freebsd-bugs

Committed into -current (restructured to avoid files duplication)
Comment 16 Eitan Adler freebsd_committer freebsd_triage 2012-11-02 22:18:23 UTC
State Changed
From-To: patched->closed

MFCed/fixed by now