[Localization] Improve the Simplified Chinese Translation

Open Beginner friendly
#2,515 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
70/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
csharp
Domain
localization

Research direction

Start from the Simplified Chinese string resources (zh-CN/zh-Hans-CN .resw files) that feed the unit converter's '约等于' (approximately equals) list, reached via the burger menu categories 体积, 长度, 重量, 能量, 面积, 速度, 功率, 数据. Locate the non-standard unit labels (e.g. soccer field area) and add the missing measure word between the numeral and the unit, applying the special '[unit]速度的 X 倍' pattern for speed. Done when each category's last approximation entry reads grammatically in Simplified Chinese and the app builds and displays it correctly.

Written by the indexing model from the issue text.

Description

Area: World-Readiness

Describe the bug

In Chinese, if numerals modify something to indicate quantity, a measure word is needed between them unless the thing itself is a measure word. Standard units are measure words, but non-standard units—such as (the area of) a soccer field—are not measure words and need a measure word preceding them to separate them from the numeral. This is missing in the reported version of the calculator. This omission may be a stylistic choice (presenting non-standard units as if they were standard units), or it may be unintentional, especially considering that when translating these non-standard units, the fact that they follow the numerical result of a calculation may not be obvious, seemingly as isolated words.

In Simplified Chinese:

中文中,如果数词修饰事物表示数量,除非该事物是量词,否则它们之间需要量词。标准的单位是量词,但非标准的单位,例如足球场(的面积)不是量词,前面需要量词将其与数词隔开,而这在所报告版本的计算器中缺失。这一缺失可能是风格选择(选择将非标准单位像标准单位一样呈现),也可能是无意为之,尤其是考虑到翻译这些非标准单位时,它们在计算结果的数值之后一事可能并不明显,显得像是孤立的词。

Steps To Reproduce

  1. Go to the burger menu
  2. Click on '体积,' '长度,' '重量,' '能量,' '面积,' '速度,' '功率' or '数据'
  3. See the error in the last item of the '约等于' list

Expected behavior

The numerical result of the calculation be separated from the non-standard unit by a measure word.

In Simplified Chinese:

计算结果的数值与非标准单位间以量词隔开。

Screenshots

Image

Device and Application Information

  • OS Build:
    Major Minor Build Revision
    10 0 19045 0
  • Architecture: X64
  • Application Version: 11.2607.0.0
  • Region: zh-CN
  • Dev Version Installed: False

Additional context

This revision strategy does not apply to speed because, for example, 2 times the speed of a jet aircraft is different from the speed of 2 jet aircraft, whereas the above strategy would render it as “2 jet aircraft.” In the case of speed, it can be specifically translated as “{the non-standard unit}速度的 {the numerical result of the calculation} 倍,” such as “喷气式飞机速度的 2 倍.”

In Simplified Chinese:

前面的修订方案不适用于速度,因为,例如,喷气式飞机的速度的2倍不同于2架喷气式飞机的速度,而前面的方案会将其呈现为“2架喷气式飞机”。就速度的情况,可特别译为“{非标准单位}速度的 {计算结果的数值} 倍”,例如“喷气式飞机速度的 2 倍”。

Dominant language
C#
Stars
31.1k
Forks
5.8k
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/calculator

All issues in microsoft/calculator

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.