Commit Graph
66 Commits
Author SHA1 Message Date
vangel76andClaude Sonnet 5.5 c1f2ae16b8 Merge upstream/main into docs/parity-refresh-2
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 21:51:14 +01:00
vangel76andClaude Opus 5.5 9a15c8e7ee Docs: align localization hours and tool-count changelog with the tables
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 20:22:08 +01:00
vangel76andClaude Opus 5.5 9206d181b8 Docs: re-measure localization coverage after merging main (2,449 keys)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 20:20:00 +01:00
Martin BallandClaude Opus 5.5 9dd39df78d feat(i18n): look up translations through the craft-i18n crate
The i18n module becomes a thin Lang wrapper over craft_i18n::I18n and the
catalogs embedded from craft-i18n. Plurals use trn_plain and PhotoCraft
keeps its own fmt; @id rows come only from PhotoCraft's own rows that keep
the label's shape. Detection, PHOTOCRAFT_LOCALE, tag bounds and the 35
offered languages are unchanged.

Serbian: sr, sr-RS, sr-Cyrl-RS and sr-ME reach sr-latn, the only Serbian
catalog, and a saved interface.language "sr" migrates to "sr-latn".

The menu completeness test becomes a report that never fails, and
`cargo xtask i18n-coverage` is replaced by `cargo xtask i18n-report`, which
reads CRAFT_I18N_DIR through the crate. Docs describe the new system.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 16:16:46 +00:00
vangel76andClaude Opus 5.5 0edca67199 Docs: re-measure localization at 2,431 keys, Xwayland tilt/eraser, pen right-click partial
Re-ran cargo xtask i18n-coverage on the merged tree: 2,431 keys, per-language
counts and catalog rows recounted; 35 registered languages (23 outside the
key-language table). Linux Wayland tilt and eraser end work through Xwayland
like pressure. The right-click Brush Preset picker row is partial while a pen
barrel right-click with Windows Ink on still paints (#5364).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 13:30:41 +01:00
vangel76andClaude Sonnet 5.5 457357b752 docs: re-measure localization parity on the merged tree (2,428 keys)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 01:32:28 +01:00
vangel76andClaude Sonnet 5.5 e103b00e37 Merge upstream/main into docs/parity-refresh-2
Conflict in docs/localization-parity.md: kept the re-measured numbers and re-measured them on the merged tree (2,400 keys, Georgian added).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 20:21:19 +01:00
vangel76andClaude Sonnet 5.5 bd4f62f989 Merge upstream/main into docs/parity-refresh-2
Keep main's rows; re-measure the localization counts on the merged tree.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 16:58:54 +01:00
vangel76andClaude Sonnet 5.5 26edfe8b18 Merge upstream/main into docs/parity-refresh-2
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 13:25:40 +01:00
Davit Matchakhelidze 20bbd27c84 Merge upstream main into ka-language 2026-11-07 02:53:58 +04:00
Taxperia 4019112d1d i18n: fix Turkic UI casing and remove unrelated parity edits 2026-11-06 16:09:08 +03:00
Taxperia f7ab833411 Merge latest main and complete Azerbaijani frame labels 2026-11-05 20:30:18 +03:00
Taxperia 25ed8e5cb8 Merge upstream main and verify Azerbaijani command translations 2026-11-05 19:49:51 +03:00
Davit Matchakhelidze 3f5785107e Merge upstream main into ka 2026-11-05 15:59:49 +04:00
vangel76andClaude Sonnet 5.5 04c3e604da Merge upstream/main into docs/parity-refresh-2
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 05:26:56 +01:00
a331258dff bs: Add Bosnian (bs) to the interface languages (#10290)
* Add Bosnian (bs) to the interface languages

bs.tsv: 4,552 rows, Latin script, Ijekavian, the same keys as the newest
catalogs. Wording shared with storytold/craft-i18n locales/bs/; the 306
strings craft-i18n doesn't have yet are new. Every Bosnian locale,
Cyrillic included, resolves to it, as for Serbian; plurals reuse the
one/few/other rule of plural_russian.

Locale and plural tests, live locale case, localization docs and an
ATTRIBUTION row (AI-assisted, not yet reviewed by a native speaker).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013Tayw8nmxoLLmKv13jK93z

* Add Bosnian to the translation license notice; document the locale test

LICENSE-translations.txt now lists the Bosnian catalog and its
provenance (shared with storytold/craft-i18n locales/bs/, AI-assisted,
not yet native-reviewed), as ATTRIBUTION.md points to it. The touched
live locale test gets a doc comment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013Tayw8nmxoLLmKv13jK93z

* bs: wording from the craft-i18n catalog review

The Bosnian catalog review (storytold/craft-i18n#72) asked for one word
per concept; this catalog follows: pan is "pomjeranje" (not
"pomicanje"), a spreadsheet is "proračunska tabela", Greek & Cyrillic
reads "Grčko pismo i ćirilica". Placeholders and ellipses are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013Tayw8nmxoLLmKv13jK93z

* bs: translate the 30 strings added on main; match Camera Raw labels

Main gained Path operations, the SVG smart object editor, Esc/Return pen
status messages and more since this catalog was written, so the
every-language tests (esc_ends_a_refused_draft_and_return_keeps_it) failed
on bs. Five cameraRaw-context entries (White Balance: As Shot, Tone
Histogram, Show Selected Region, Opened {name}, Loaded Camera Raw settings
from {file}) differed from the plain entries the panel actually draws, which
failed the Camera Raw localization test; they now match.

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: FredApps <FredApps@users.noreply.github.com>
2026-11-05 05:16:02 +01:00
Taxperia 081dd26d57 i18n: limit language contribution to Azerbaijani 2026-11-01 11:27:12 +03:00
Taxperia 349977449b i18n: refine az/ro translations and address review findings 2026-10-31 23:48:40 +03:00
Taxperia 5d54be710c i18n: add Azerbaijani and Romanian UI languages 2026-10-31 22:26:12 +03:00
vangel76andCodex 9a5fe71764 Merge upstream/main into docs/parity-refresh-2
Retain the expanded painting-menu limitations and refresh existing localization measurements from the merged tree.

Co-Authored-By: Codex <noreply@openai.com>
2026-10-31 11:21:47 +01:00
Davit MatchakhelidzeandClaude Opus 5.5 4a61951a37 i18n(ka): No matching fonts; parity row count
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YMTAbGNRxnMEzRvYnQGphF
2026-10-31 05:13:45 +04:00
vangel76andClaude Sonnet 5.5 83f5256268 Merge upstream/main into docs/parity-refresh-2
Re-measured i18n coverage (2,208 keys) and re-verified the conflicting parity rows against the code.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 01:35:37 +01:00
Davit MatchakhelidzeandClaude Opus 5.5 fbe7173e13 Merge origin/main into ka-language
Keeps Swedish, Finnish, Danish, Norwegian Bokmål and Georgian side by side.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YMTAbGNRxnMEzRvYnQGphF
2026-10-31 02:53:05 +04:00
vangel76 68a0612e78 Merge upstream/main into docs/parity-refresh-2 2026-10-29 20:51:04 +01:00
David MannandClaude Opus 5.5 29f37b2c40 Localization parity: the Swedish catalog has 4,552 rows
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 19:52:23 +01:00
c0fb32db24 Finnish, Danish and Norwegian Bokmål interface languages, combined from the community catalogs
Finnish (fi) combines #5666 and #6961, Danish (da) is based on #7267 and
completed for the current UI, Norwegian Bokmål (nb) combines #8072 and
#9025. Each catalog covers the same 4,552 keys as the Swedish one, with one
term per concept. `no` and `nn` locales resolve to Bokmål; `fi-FI` to
Finnish while `sv-FI` stays Swedish.

Co-authored-by: Janiz-zzz <267742026+Janiz-zzz@users.noreply.github.com>
Co-authored-by: metuuu <25014162+metuuu@users.noreply.github.com>
Co-authored-by: pechnikov2026-star <266495960+pechnikov2026-star@users.noreply.github.com>
Co-authored-by: nikolainyegaard <6809008+nikolainyegaard@users.noreply.github.com>
Co-authored-by: Bolla76 <200539769+Bolla76@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 19:34:10 +01:00
David Mann 601f2ed7f9 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	crates/ui-egui/src/i18n.rs
#	crates/ui-egui/src/i18n/LICENSE-translations.txt
#	crates/ui-egui/src/i18n/live_tests.rs
#	crates/ui-egui/src/i18n/system.rs
#	docs/localization-parity.md
2026-10-29 15:41:15 +01:00
Davit MatchakhelidzeandClaude Opus 5.5 4e5804cf77 Merge upstream main into ka-language (Arabic beside Georgian)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YMTAbGNRxnMEzRvYnQGphF
2026-10-29 06:08:09 +04:00
e7500777b5 Swedish catalog: contested terms follow a native speaker's answers
A native Swedish speaker answered the terminology questionnaire on #10021;
his choices now apply to every row that uses the term, so each concept
still has one Swedish word: arbetsyta (workspace), fjädring (feather),
ombilda (transform), rutnät (grid), förhandsgranskning (preview),
klippmask, skiva (slice), ta prov (sample), gradient, placera, snedställ,
rasterisera, Kombinera lager (Flatten Image), indefinite tool names
(Penselverktyg), and the blend modes Skärm, Överlägg, Färgskuggning,
Differens and Luminositet. 243 rows changed.

Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 00:29:17 +01:00
5ab3025bcf Swedish interface language, combined from the community catalogs
Adds Swedish (sv, Svenska) as an interface language. The catalog combines
the open Swedish catalogs of #5985 and #9536: each row takes the best of
their translations, with one Swedish term per concept across the UI and
the reference application's established Swedish terms where they are
unambiguous, and the strings added since are filled in. 4,537 rows, every
measured key; plural rule one|other.

Where the rows come from: 2,710 both catalogs agreed on, 979 from #5985,
655 from #9536, 193 written new; 177 of the taken rows
were edited for consistency.

The tests that used sv-SE as an unsupported locale now use sw-KE and
fi-FI, and sv-SE / sv_FI.UTF-8 are positive cases. macOS lists sv in
CFBundleLocalizations.

Fixes #10020.

Co-authored-by: kler <966132+kler@users.noreply.github.com>
Co-authored-by: davvarn <1687962+davvarn@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 22:35:59 +01:00
David MannandClaude Opus 5.5 15dc4092f8 Web build: served script fonts draw the interface too
The web build has no system fonts and embeds no craft fonts, so an Arabic
(or Japanese, Chinese, Korean, Hindi) interface had no font for its labels:
served fonts were registered only in the document text engine. A served
script fallback now also joins the end of every egui font family, and the
font stack theme::install_fonts rebuilds on a language change includes it
again. The web shell asks for the interface language's script font, not
only the browser languages'.

Review finding on #10006.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 22:18:28 +01:00
bd9590d060 Arabic interface language, combined from the community catalogs
Adds Arabic (ar, العربية) as an interface language. The catalog combines
the open Arabic catalogs of #2505, #4520, #4569, #5593, #5915, #6092 and
#6287: each row takes the best of their translations, with one Arabic
term per concept across the UI, and the strings added since are filled
in. Modern Standard Arabic, Western digits, the six CLDR plural forms
(zero|one|two|few|many|other).

The two tests that used ar-SA as an unsupported locale now use sw-KE, and
the direction test expects Arabic to be the one right-to-left catalog.

Co-authored-by: azizr12 <163084230+azizr12@users.noreply.github.com>
Co-authored-by: hicbest <213873494+hicbest@users.noreply.github.com>
Co-authored-by: hasan-sdaif <306196098+hasan-sdaif@users.noreply.github.com>
Co-authored-by: NibrasAz7 <34162952+NibrasAz7@users.noreply.github.com>
Co-authored-by: vfggf95565 <74471233+vfggf95565@users.noreply.github.com>
Co-authored-by: syrrevshin4202-prog <243624842+syrrevshin4202-prog@users.noreply.github.com>
Co-authored-by: test-bit-sys <336050374+test-bit-sys@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 21:22:26 +01:00
Davit MatchakhelidzeandClaude Opus 5.5 3136b11eb8 Georgian draws on its own: SF Georgian fallback on macOS, Geor served fallback on the web
The same scripts.rs/served.rs/tests.rs lines as #8812, so either merges first; the craft-fonts pin stays in #8812.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YMTAbGNRxnMEzRvYnQGphF
2026-10-24 15:52:06 +04:00
vangel76 bfa004ffa1 Merge upstream/main into docs/parity-refresh-2 2026-10-24 13:35:22 +02:00
Davit MatchakhelidzeandClaude Opus 5.5 3d0ec178c3 i18n(ka): translate main's new strings (update checks, Color panel modes, .asl styles, damaged PSD prompt)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YMTAbGNRxnMEzRvYnQGphF
2026-10-24 15:16:27 +04:00
Davit Matchakhelidze 5b2fc01284 Merge upstream main into ka-language 2026-10-24 15:13:46 +04:00
aiongg c3aa3f9e51 Tests: missing translations don't fail; xtask ci prints them
Delete the coverage tests, the per-language parity checks and the tests
of one language's exact wording. Catalog integrity, placeholder and
plural-form checks stay, as do the engine tests (locale resolution,
plural rules, fallback, language scoping, drawing in a language); those
compare against tr() or the plural rule rather than catalog wording.
Docs describe the report instead of a failing test.
2026-10-23 19:07:23 +00:00
vangel76 5e8a7f6b70 Merge upstream/main into docs/parity-refresh-2 2026-10-22 20:08:54 +02:00
Davit MatchakhelidzeandClaude Opus 5.5 7d6a26da70 Merge upstream main into ka-language
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YMTAbGNRxnMEzRvYnQGphF
2026-10-22 21:56:02 +04:00
a74b9a72a1 Integration: merge main, resolve conflicts (#6793)
The 20 i18n catalogs: main and the PR both appended a block at the end;
both kept, main's first. docs/gaps.md: main's text with the PR's
TYPE-218-2 change applied (G8 Missing, Evidence 5 done / 4 partial /
0 missing, revision row), dated 2026-10-22. docs/scorecard.md
regenerated with cargo xtask scorecard.

The TYPE-218-2 note now also says PSD doesn't store the paragraph
direction (crates/text psd.rs maps only the vertical WritingDirection),
so a direction set with the new buttons reopens from a PSD as Auto.

docs/localization-parity.md: the Arabic row said paragraph direction has
no UI (TYPE-218-2); it now has the buttons, the RTL caret is still missing.

Co-authored-by: tareqziad1998 <83318513+tareqziad1998@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 15:44:17 +00:00
aiongg d2656c2f26 Integration: #6974 Hindi native review column in docs/localization-parity.md is 'no' 2026-10-22 02:25:53 +00:00
aiongg 2d66820811 Merge PR #6974: feat(i18n): add Hindi (hi) language catalog and locale resolution
contributors/people.toml: union of both sides' entries.
2026-10-22 02:25:47 +00:00
aiongg f25f274aa3 Merge PR #6283: i18n(ru): translate the dynamic labels the Russian catalog was missing
crates/ui-egui/src/i18n/ru.tsv: both sides added rows at two places; kept both (union).
docs/gaps.md: header from main, change-log lines of both.
docs/localization-parity.md: change-log lines of both.
2026-10-22 02:24:48 +00:00
aiongg 2a277af23c Merge PR #5062: fix(i18n): Italian Screen blend mode is "Scherma", not "Schermo"
contributors/people.toml: union of both sides' new entries.
2026-10-22 02:22:06 +00:00
vangel76 8827846f6e Refresh translation measurements after merging current main 2026-10-21 20:03:09 +02:00
Davit MatchakhelidzeandClaude Opus 5.5 62a79594ec i18n(ka): Georgian rows for the strings main added (Content-Aware Fill workspace, memory settings, clipboard messages)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YMTAbGNRxnMEzRvYnQGphF
2026-10-20 09:06:43 +04:00
Davit MatchakhelidzeandClaude Opus 5.5 0adb5a2a23 docs(i18n): fix Georgian row count and language list in localization-parity
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YMTAbGNRxnMEzRvYnQGphF
2026-10-19 03:40:12 +04:00
Stepan Pavlenko e4bc5c25e8 i18n(ru): translate the dynamic labels the Russian catalog was missing
The Russian catalog passed `cargo xtask i18n-coverage` (100% of measured keys)
but lacked the runtime-only labels the other catalogs already carry, so they
showed in English: filter and adjustment parameter names and choices, gallery
names, Camera Raw panels (Balance/Clarity/Dehaze/Color Mixer/Texture/…),
History/Layers/paths/channels menu labels, metadata and File Info fields,
System Info and hardware status lines, rasterize prompts, composed status
templates and dialog text.

All of them are translated (1,229 keys added; the catalog is now 4,227 keys
against upstream's 2,998), written from the meaning of the English labels and
reusing the vocabulary the catalog already uses (Highlights → Света,
Midtones → Полутона, Feather → Растушёвка, Pattern → узор). Filter and gallery
names are aligned with the menu labels already in the catalog so a filter never
reads two ways (Texturizer → Текстуризатор, Unsharp Mask → Нерезкое
маскирование, Shape Blur → Размытие по фигуре, …).

Tests: `russian_covers_generated_filter_options_and_gallery_names`
(filter_dialog.rs, the Italian/Korean/Spanish check) and
`russian_dynamic_status_hardware_and_dialog_labels_are_translated` (i18n/mod.rs).
Docs: docs/localization-ru.md (terminology), localization-parity, gaps G13,
ROADMAP, ATTRIBUTION and LICENSE-translations.

Validated on a rebase onto upstream/main: `cargo test -p photocraft-ui-egui
--lib` 2,998 passed / 0 failed; clippy clean (the only lint is a pre-existing
`nonminimal_bool` in canvas.rs, untouched here and present on upstream main);
`xtask layers` OK; `xtask wasm` OK; `xtask i18n-coverage` ru 1,863 / 1,863;
offscreen `snapshot` in Russian checked.
2026-10-18 02:27:44 +03:00
Shubham Bhamare 1819e77c30 feat(i18n): add Hindi (hi) language catalog and locale resolution 2026-10-17 15:49:19 +05:30
Davit Matchakhelidze 5ecedce2a6 Merge upstream main into ka-language 2026-10-15 00:55:15 +04:00