Skip to content

🐛 fix Japanese labels for regex descriptive token names - #2604

Merged
arnaudroques merged 1 commit into
plantuml:masterfrom
45deg:fix-i18n-ja
Mar 19, 2026
Merged

arnaudroques merged 1 commit into
plantuml:masterfrom
45deg:fix-i18n-ja

Conversation

@45deg

@45deg 45deg commented Mar 19, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR corrects the Japanese localization (ja) for regular expression and EBNF descriptive token names in i18n_ja.properties.

Previously, these entries incorrectly contained Traditional Chinese vocabulary due to duplicated translation strings.

Before / After

Key Before (Traditional Chinese) After (Japanese)
ebnf.wordBoundary 單語邊界 単語境界
ebnf.nonWordBoundary 非單語邊界 非単語境界
ebnf.digit 數字 数字
ebnf.nonDigit 非數字 非数字
ebnf.word 單語 単語
ebnf.nonWord 非單語 非単語
ebnf.whitespace 空白字元 空白文字
ebnf.nonWhitespace 非空白字元 非空白文字
ebnf.anyChar 任意字元 任意文字

Validation

@startregex
!option language ja
!option useDescriptiveNames true
\d?\D+\w*\W{1,2}|\s.\S
@endregex

Rendered Result:

regex-ja-check

Notes

  • This is a localization-only fix and does not change any regex parsing or core rendering logic.
  • This issue was initially identified on the official documentation (https://plantuml.com/regex). This PR is expected to correct the rendered diagrams in the official documentation upon the next release.

@arnaudroques
arnaudroques merged commit 2951ead into plantuml:master Mar 19, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants