-
Notifications
You must be signed in to change notification settings - Fork 114
Дополнение и исправление английских вариантов лексем #1533
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Дополнение и исправление английских вариантов лексем #1533
Conversation
WalkthroughThis change introduces English aliases to various context methods and enum values across several classes, supplementing the existing Russian identifiers. The modifications are limited to attributes and annotations, providing bilingual support for method and enum access without altering any underlying logic or control flow. Changes
Possibly related PRs
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
Если я не ошибаюсь, когда синоним не указан, он берется из имени метода. Т.е. если имя C# метода совпадает с английским названием в языке - то синоним указывать не обязательно. Это, конечно, может не работать, но в этих классах синонимы пропущены намеренно. |
Тогда вопрос только в 'КаталогПрограммы' и 'ПозицияВПотоке' |
| } | ||
|
|
||
| [EnumerationType("ПозицияВПотоке", "StreamPosition")] | ||
| [ContextMethod("StreamPosition", IsDeprecated = true)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Зачем атрибут ContextMethod на енуме?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ага, проглядел. А у EnumerationType есть возможность установить IsDeprecated = true?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
По-моему нет. Но, очевидно, он нужен и на енуме и на классе
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Просто добавить public bool IsDeprecated { get; set; } недостаточно будет, да?
Нет, ведь нужна будет еще ответная часть, которая будет обрабатывать это свойство.
|
@Bayselonarrend там не собирается билд, исправь, пожалуйста: https://build.oscript.io/job/1Script/view/change-requests/job/PR-1533/6/ |
|
@EvilBeaver он не собирается, потому что я поставил EnumerationType с IsDepricated, а такого атрибута там нет. Не допилил по последнему комменту, что мы обсуждали |
Или падает. Что-то я ничего не понял |
|
@EvilBeaver вроде так |

Поправил/дописал английские варианты в ContextMethod-ы, ContextClass-ы, EnumerationType-ы и пр. где ловил ошибки или видел пропущенные переводы. Надеюсь, я правильно понял, как это работает)
Summary by CodeRabbit
New Features
Style