Repository navigation
gui.style: accept schema Persian words for solid and double; sema: typed components are not unused - #3704
Merged
Conversation
The layout schema and the translator write یکپارچه and دوتایی, while the style table only knew توپر and دوخطی, so a Persian border = ۲، یکپارچه، ... failed E018. Both spellings are accepted now; neither collides with another keyword.
Such a component is lowered to a function of the same name that page uses inline, so check reported E066 for it in both languages.
box shadow is not part of the style standard any more and its list value fails on its own; padding and border still cover value lists.
|
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 13 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. |
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.
Two bugs found while translating pages, plus the last stale test from that work.
gui.styleaccepts the Persian spellings the layout schema and the translator use forsolidanddouble(یکپارچه,دوتایی), next to its ownتوپرandدوخطی. Before,کادر = ۲، یکپارچه، #3366aafailed E018 even though the schema documents that word; the Persiantests/fa/translate/value_lists.salamsource failedcheckon main for this reason. Neither new word collides with another keyword's English or Persian name, andKeywordFaNamestill returns the original spelling.salam checkreported E066 "unused function" for it in both English and Persian whenever the file had an entry point.sema_check_unused_funcsnow skips names that belong to a component.tests/en/translate/value_listsdrops itsbox shadowline:box shadowis no longer part of the style standard and the line failed on its own;paddingandborderstill cover value lists. Its.outis regenerated; markup and printed values match the old file.Checked on a build of this branch: the two repro files fail on main and pass here;
errors779 of 779;translate34 of 35 (the last one,fa/struct_rules, needs multi-word names made of contextual keywords).Not done: the style table and the schema disagree on 19 more Persian keywords (for example
true/false,column,start,inset); each needs its own collision check before it can be added the same way. The translator also does not know style-standard-only properties such asshadow.