svn commit: r533006 - in head/devel: . py-l18n
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Sun Apr 26 11:53:44 UTC 2020
Author: sunpoet
Date: Sun Apr 26 11:53:42 2020
New Revision: 533006
URL: https://svnweb.freebsd.org/changeset/ports/533006
Log:
Add py-l18n 2018.5
As you may have noticed, l18n is a contraction of i18n and l10n, namely
'internationalisation' and 'localization'. It basically provides lazy
translations for names used for localization purposes (e.g. places and
timezones).
I started writing l18n when I was looking for translations for the pytz library.
Indeed, on a multi-lingual site where users can select the timezone they are in,
it's much better if they can select in their language, as in some cases, the
differences with the english name can be significant, hence the place to look
for it when it's sorted in alphabetical order.
And as I am lazy, I thought of a way to - almost - automatically fetch the
translations from the CLDR (Unicode's Common Locale Data Repository) database.
Integrating function to link timezone to country codes, there was no reason not
to try and provide translations also for the latter. In the near future, I - or
contributors - may also add currencies or measurement units fetched from the
CLDR database ...
WWW: https://github.com/tkhyn/l18n
Added:
head/devel/py-l18n/
head/devel/py-l18n/Makefile (contents, props changed)
head/devel/py-l18n/distinfo (contents, props changed)
head/devel/py-l18n/pkg-descr (contents, props changed)
Modified:
head/devel/Makefile
Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile Sun Apr 26 11:53:30 2020 (r533005)
+++ head/devel/Makefile Sun Apr 26 11:53:42 2020 (r533006)
@@ -4601,6 +4601,7 @@
SUBDIR += py-kjbuckets
SUBDIR += py-knack
SUBDIR += py-kqueue
+ SUBDIR += py-l18n
SUBDIR += py-lark-parser
SUBDIR += py-launchpadlib
SUBDIR += py-lazr.config
Added: head/devel/py-l18n/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/py-l18n/Makefile Sun Apr 26 11:53:42 2020 (r533006)
@@ -0,0 +1,24 @@
+# Created by: Po-Chuan Hsieh <sunpoet at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= l18n
+PORTVERSION= 2018.5
+CATEGORIES= devel python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= sunpoet at FreeBSD.org
+COMMENT= Internationalization for pytz timezones and territories
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE.txt
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytz>=${PORTVERSION}:devel/py-pytz@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}six>=0:devel/py-six@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= autoplist concurrent distutils
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
Added: head/devel/py-l18n/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/py-l18n/distinfo Sun Apr 26 11:53:42 2020 (r533006)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1587756720
+SHA256 (l18n-2018.5.tar.gz) = 46e72c980d06a7511726f1da10a32fa524f7e2937c0af5ad52d39577024a4382
+SIZE (l18n-2018.5.tar.gz) = 46673
Added: head/devel/py-l18n/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/py-l18n/pkg-descr Sun Apr 26 11:53:42 2020 (r533006)
@@ -0,0 +1,20 @@
+As you may have noticed, l18n is a contraction of i18n and l10n, namely
+'internationalisation' and 'localization'. It basically provides lazy
+translations for names used for localization purposes (e.g. places and
+timezones).
+
+I started writing l18n when I was looking for translations for the pytz library.
+Indeed, on a multi-lingual site where users can select the timezone they are in,
+it's much better if they can select in their language, as in some cases, the
+differences with the english name can be significant, hence the place to look
+for it when it's sorted in alphabetical order.
+
+And as I am lazy, I thought of a way to - almost - automatically fetch the
+translations from the CLDR (Unicode's Common Locale Data Repository) database.
+
+Integrating function to link timezone to country codes, there was no reason not
+to try and provide translations also for the latter. In the near future, I - or
+contributors - may also add currencies or measurement units fetched from the
+CLDR database ...
+
+WWW: https://github.com/tkhyn/l18n
More information about the svn-ports-all
mailing list