Repository navigation
i18n: Turkish Draw labels use the drawing verb instead of a tied game - #7437
Merged
Merged
Conversation
The Turkish catalog translated the toolbar's Draw category and the freeform gradient's Draw: row as "Beraberlik", which means a tied game. Both now read "Çiz", the verb the catalog already uses for Draw Behind, Draw Inside and Draw Normal. The Turkish "unknown control" message also listed the control names as "colouring,drawMode": it now lists "coloring, drawMode", the names the command accepts. The two dimension scale rows read the English word order wrongly. The hint under the Dimension dialog's scale field now says that 1:10 labels 1 unit on the page as 10, and the scale error keeps "çizim:gerçek" as one form instead of splitting it around the verb.
Contributor
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 27 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
3 of 4 tasks
3 of 4 tasks
Member
|
Merged, thanks @dotCooCoo! It passed its CI checks. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
The Turkish catalog (
crates/ui-egui/src/i18n/tr.tsv) translatedDrawas "Beraberlik", which means a tied game. The label is the toolbar's Draw category (crates/ui-egui/src/toolbar.rs:47, the group that holds Pencil, Paintbrush and Pen) and, asDraw:, the Points/Lines row of the freeform gradient (crates/ui-egui/src/panels/gradient.rs:157and:527).Drawnow reads "Çiz" andDraw:reads "Çiz:", the verb the catalog already uses for Draw Behind (Arkaya Çiz), Draw Inside (İçini Çiz) and Draw Normal (Normal Çiz).crates/ui-egui/src/dialogs/dimension.rs:154) read "labels" as a noun and garbled the sentence. It now says that 1:10 labels 1 unit on the page as 10.Scale must be drawing:real, for example 1:10split "çizim:gerçek" around the verb. It now keeps "çizim:gerçek" as one form.The other Turkish rows whose English holds draw, drawn, drawing or drawer already use the right sense (
Drawer menuis "Çekmece menüsü", the furniture sense) and are unchanged. Only Turkish text changes; no other language and no behavior changes.How it was tested
New test
i18n::tests::turkish_draw_labels_use_the_drawing_verb(crates/ui-egui/src/i18n/tests.rs):DrawandDraw:translate to "Çiz" and "Çiz:", no Turkish row contains "beraber", the unknown-control message listscoloring, drawMode, and the two scale rows read as fixed. It fails without the change, on each of the four fixes.The branch is one commit on
mainat1e4e3534f5, which was the currentmainwhen this was opened. Focused checks on the final tree, onmainat1e4e3534f5:cargo test -p vectorcraft-ui-egui --lib i18n: 116 passed, 0 failed.cargo clippy -p vectorcraft-ui-egui --all-targets -- -D warningsandcargo check --workspace --testspass.cargo xtask brands,cargo xtask layers(30 crates) andcargo xtask assets(337 files) pass.cargo fmt --all -- --checkreports onlycrates/svg/src/lib.rs:491, which this pull request does not touch and whichmainat1e4e3534f5already has.cargo xtask ciruns in this pull request's CI.Checklist
cargo xtask cipasses (fmt, clippy, tests, assets, brands, layers, wasm).unwrap(),expect(),panic!,unreachable!,todo!orunimplemented!outside tests, and no unchecked indexing on data from files, parameters ormessages. Errors are returned as
Resultand shown to the user(why and how).
ASSETS.md.