devel/py-l18n 2021.3_1 FreeBSD
Internationalization for pytz timezones and territories
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- MIT
- Categories
- devel, python
- Package size
- 61.8 KiB, 238.0 KiB installed
Description
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 ...
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/py-l18n | 2021.3_1 |
| DragonFly | devel/py-l18n | 2021.3_1 |
| HardenedBSD | devel/py-l18n | 2021.3_1 |
| GhostBSD | devel/py-l18n | 2021.3_1 |
Install
Binary package:
pkg install py312-l18n
From the ports tree:
cd /usr/ports/devel/py-l18n/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-l18n>0:devel/py-l18n
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 2021.3_1 | 2021.3_1 | 2021.3 | 2021.3_1 | 2021.3_1 |
| FreeBSD:14:quarterly | 2021.3_1 | 2021.3_1 | n/a | 2021.3_1 | 2021.3_1 |
| FreeBSD:15:latest | 2021.3_1 | 2021.3_1 | n/a | 2021.3_1 | 2021.3_1 |
| FreeBSD:15:quarterly | 2021.3_1 | 2021.3_1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 2021.3_1 | 2021.3_1 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 2
${PYTHON_PKGNAMEPREFIX}setuptools>=0: devel/py-setuptools${PYTHON_PKGNAMEPREFIX}wheel>=0: devel/py-wheel
Runtime 2
${PYTHON_PKGNAMEPREFIX}pytz>=2020.1,1: devel/py-pytz${PYTHON_PKGNAMEPREFIX}six>=0: devel/py-six
The full lists below include those, and their dependencies in turn.
Build dependencies 16
Run dependencies 9
No port depends on this one.
Configuration
No options to configure.
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| l18n-2021.3.tar.gz | 50712 | 1956e890d673d17135cc20913253c154f6bc1c00266c22b7d503cc1a5a42d848 |
Master sites 1
- PYPI
Commit history 0
No commits in the history this site was built from.