Asimmimx opened a new pull request, #21870:
URL: https://github.com/apache/echarts/pull/21870
## Brief Information
This pull request is in the type of:
- [x] bug fixing
- [ ] new feature
- [ ] others
### What does this PR do?
Fixes typos, wrong meanings and broken screen reader sentences in the
Turkish locale (`src/i18n/langTR.ts`).
### Fixed issues
None.
## Details
### Before: What was the problem?
**Screen reader (aria) labels.** The aria strings produced broken Turkish,
and one of them reversed the meaning. With a titled pie chart and a chart with
two series, the generated `aria-label` was:
```
Bu grafik "Satışlar" içindir. Grafik Türü Pasta Grafiği ve 2025
gösteriyor.Veriler Aşağıdaki Gibidir: 12 için Ocak, 9 için Şubat.
Bu Bir Grafiktir.. 2 kadar grafik sayısından oluşur. 0.serisi Gelir adını
temsil eden bir Çubuk Grafik temsil eder.İlk 2 öğesi: 5, 7. ...
```
- `data.withName` was `' {value} için {name}'` ("{name} for {value}"), the
reverse of the English `the data for {name} is {value}`.
- `general.withoutTitle` ends with a period and `series.multiple.prefix`
starts with one, which gives `..`.
- "Grafik Türü X ve Y gösteriyor" ("chart type X and shows Y"), "kadar
grafik sayısından oluşur" and "adını temsil eden bir ... temsil eder" are
ungrammatical.
**Other strings.**
| Key | Before | After | Why |
| --- | --- | --- | --- |
| `time.monthAbbr[7]` | `Agu` | `Ağu` | Missing `ğ` (August is Ağustos) |
| `time.dayOfWeekAbbr` | `Çrş`, `Prş`, `Cts` | `Çar`, `Per`, `Cmt` |
Standard Turkish abbreviations, as in CLDR |
| `series.typeNames.sunburst` | `Güeş Patlaması Tablosu` | `Güneş Patlaması
Grafiği` | Typo (`Güneş`), and it is a chart, not a table |
| `series.typeNames.chart` | `Grafiği` | `Grafik` | `Grafiği` is the
possessive/accusative form, not the noun |
| `series.typeNames.heatmap` | `Sıcaklık Haritası` | `Isı Haritası` |
`Sıcaklık` means temperature; the usual term is `ısı haritası` |
| `series.typeNames.candlestick` | `Şamdan Grafik` | `Mum Grafiği` | Turkish
finance uses `mum grafiği` |
| `series.typeNames.sankey` | `Sankey Diagramı` | `Sankey Diyagramı` |
Spelling (`diyagram`) |
| `series.typeNames.parallel` | `Paralel Koordinat Haritası` | `Paralel
Koordinat Grafiği` | It is not a map |
| `series.typeNames.funnel`, `custom` | `Huni Grafik`, `Özel grafik` | `Huni
Grafiği`, `Özel Grafik` | Consistent with the other type names |
| `toolbox.magicType.title.line`, `bar` | `... Grafiğe Çevir` | `Çizgi
Grafiğe Geç`, `Çubuk Grafiğe Geç` | "Switch to ..." |
| `toolbox.magicType.title.stack`, `tiled` | `Yığın`, `Blok` | `Yığılmış`,
`Yan Yana` | `Yığın` (a pile) and `Blok` (a block) do not describe stacked /
side-by-side bars |
| `toolbox.brush.title.clear` | `Seçimi Sil` | `Seçimi Temizle` | Clearing a
selection does not delete anything |
| `toolbox.saveAsImage.lang` | `Resim Olarak Kaydetmek için Sağ Tıklayın` |
`Resim olarak kaydetmek için sağ tıklayın` | Sentence case for a sentence |
### After: How does it behave after the fixing?
The same two charts now give:
```
Bu, "Satışlar" hakkında bir grafiktir. Türü Pasta Grafiği, adı 2025. Veriler
şöyle: Ocak verisi 12, Şubat verisi 9.
Bu bir grafiktir. 2 seriden oluşur. 0. seri, Gelir adlı bir Çubuk Grafik.
İlk 2 öğe: 5, 7. ...
```
`data.allData` and `data.partialData` now start with a space, so the data
part does not stick to the previous sentence.
The outputs above were produced by a small script that fills the locale
strings in the same order as `src/visual/aria.ts`, not by rendering a chart in
a browser. `npx eslint src/i18n/langTR.ts` and `npx tsc --noEmit` pass. Only
`src/i18n/langTR.ts` is changed; `i18n/langTR*.js` are left to the release
build, as in #21785.
## Document Info
One of the following should be checked.
- [x] This PR doesn't relate to document changes
- [ ] The document should be updated later
- [ ] The document changes have been made in apache/echarts-doc#xxx
## Misc
### Security Checking
- [ ] This PR uses security-sensitive Web APIs.
### ZRender Changes
- [ ] This PR depends on ZRender changes (ecomfe/zrender#xxx).
### Related test cases or examples to use the new APIs
N.A.
### Merging options
- [ ] Please squash the commits into a single one when merging.
### Other information
Prepared with AI assistance and reviewed by me.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]