pg_xenophile
PostgreSQL i8n与l10n工具包
pg_xenophile · PostgreSQL i8n与l10n工具包
概览
| ID | 扩展 | 软件包 | 版本 | 类别 | 许可证 | 编程语言 |
|---|---|---|---|---|---|---|
| 3670 | pg_xenophile | pg_xenophile | 0.8.3 | TYPE | PostgreSQL | SQL |
| 属性 | 可执行文件 | 动态库 | 需要预加载 | 需要建扩展 | 可迁移 | 可信 |
|---|---|---|---|---|---|---|
| ----d-- | 否 | 否 | 否 | 是 | 否 | 否 |
| 关联 | |
|---|---|
| 模式 | xeno |
| 依赖 | hstore |
| 被依赖 | l10n_table_dependent_extension |
| 相关扩展 | icu_ext pg_cjk_parser gb18030_2022 unaccent pgroonga pg_tokenizer country currency isn dict_xsyn |
| 同包扩展 | l10n_table_dependent_extension |
软件包
| Linux / PG | PG19 | PG18 | PG17 | PG16 | PG15 |
|---|---|---|---|---|---|
| el8.x86_64 | N/A | PIGSTY 0.8.3 | PIGSTY 0.8.3 | PIGSTY 0.8.3 | PIGSTY 0.8.3 |
| el8.aarch64 | N/A | PIGSTY 0.8.3 | PIGSTY 0.8.3 | PIGSTY 0.8.3 | PIGSTY 0.8.3 |
| el9.x86_64 | PIGSTY 0.8.3 | PIGSTY 0.8.3 | PIGSTY 0.8.3 | PIGSTY 0.8.3 | PIGSTY 0.8.3 |
| el9.aarch64 | PIGSTY 0.8.3 | PIGSTY 0.8.3 | PIGSTY 0.8.3 | PIGSTY 0.8.3 | PIGSTY 0.8.3 |
| el10.x86_64 | PIGSTY 0.8.3 | PIGSTY 0.8.3 | PIGSTY 0.8.3 | PIGSTY 0.8.3 | PIGSTY 0.8.3 |
| el10.aarch64 | PIGSTY 0.8.3 | PIGSTY 0.8.3 | PIGSTY 0.8.3 | PIGSTY 0.8.3 | PIGSTY 0.8.3 |
| d12.x86_64 | PIGSTY 0.8.3 | PIGSTY 0.8.3 | PIGSTY 0.8.3 | PIGSTY 0.8.3 | PIGSTY 0.8.3 |
| d12.aarch64 | PIGSTY 0.8.3 | PIGSTY 0.8.3 | PIGSTY 0.8.3 | PIGSTY 0.8.3 | PIGSTY 0.8.3 |
| d13.x86_64 | PIGSTY 0.8.3 | PIGSTY 0.8.3 | PIGSTY 0.8.3 | PIGSTY 0.8.3 | PIGSTY 0.8.3 |
| d13.aarch64 | PIGSTY 0.8.3 | PIGSTY 0.8.3 | PIGSTY 0.8.3 | PIGSTY 0.8.3 | PIGSTY 0.8.3 |
| u22.x86_64 | PIGSTY 0.8.3 | PIGSTY 0.8.3 | PIGSTY 0.8.3 | PIGSTY 0.8.3 | PIGSTY 0.8.3 |
| u22.aarch64 | PIGSTY 0.8.3 | PIGSTY 0.8.3 | PIGSTY 0.8.3 | PIGSTY 0.8.3 | PIGSTY 0.8.3 |
| u24.x86_64 | PIGSTY 0.8.3 | PIGSTY 0.8.3 | PIGSTY 0.8.3 | PIGSTY 0.8.3 | PIGSTY 0.8.3 |
| u24.aarch64 | PIGSTY 0.8.3 | PIGSTY 0.8.3 | PIGSTY 0.8.3 | PIGSTY 0.8.3 | PIGSTY 0.8.3 |
| u26.x86_64 | PIGSTY 0.8.3 | PIGSTY 0.8.3 | PIGSTY 0.8.3 | PIGSTY 0.8.3 | PIGSTY 0.8.3 |
| u26.aarch64 | PIGSTY 0.8.3 | PIGSTY 0.8.3 | PIGSTY 0.8.3 | PIGSTY 0.8.3 | PIGSTY 0.8.3 |
源码
安装
在数据库中创建扩展。
用法
pg_xenophile 扩展提供 i18n/l10n 基础设施,包括国家、语言和货币的参考数据,以及自动化的本地化表管理。
所有对象位于 xeno 模式中(不可重定位)。
参考表
xeno.country:ISO 3166-1 代码,包含国际电话区号和货币信息xeno.lang:ISO 639-1 语言代码xeno.currency:ISO 4217 货币代码及符号xeno.country_subdivision:ISO 3166-2 行政区划代码xeno.eu_country:欧盟成员国追踪xeno.country_postal_code_pattern:邮政编码验证规则
本地化表
该扩展自动管理翻译表。向 xeno.l10n_table 插入记录即可注册一个可翻译的基表:
这会自动创建配套的 products_l10n 表和特定语言的视图。
便捷视图
xeno.country_l10n_en:英文国家名称xeno.lang_l10n_en:英文语言名称xeno.country_subdivision_l10n_en:英文行政区划名称