python-humanize / python-humanize/humanize

Impossible to translate to Romanian

未关闭
#270 6 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

bug
主要语言
Python
星标
756
派生
148
平均合并
6 天 1 小时
30 天内合并 PR
12

描述

I was checking out the package to use it in a project. I'd need to translate it to Romanian, however a summary look reveals that would be a challenging task. For example the ordinal seems to make a map of suffixes for numbers 0-9, but that doesn't work in Romanian:

0th
to my knowledge doesn't exist, but maaaybe among friends you could say "al 0-lea" (m); maybe; no (f) though;
1st
"prima" (f); "primul" (m);
2nd
"a 2-a" (f); "al 2-lea" (m);
3rd
"a 3-a" (f); "al 3-lea" (m);
23rd
"a 23-a" (f); "al 23-lea" (m).

So to give it a chance to translate at least the possible strings, they would need to interpolate the value.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

issue 中没有指定文件或测试。首先定位序数格式化器及其翻译或插值路径;完成的标准是罗马尼亚语序数能够表达文档中说明的阴性和阳性形式,包括 23rd 等值,同时不假定只有 0–9 的后缀映射。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
internationalization, localization
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
活跃
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。