Skip to content

Conversation

@mirnumaan
Copy link

Proposed change

This pull request adds Kashmiri language localization support to the OWASP Nettacker project. All user-facing strings have been translated, allowing Kashmiri-speaking users to better understand and interact with the tool.

Type of change

  • New core framework functionality
  • Bugfix (non-breaking change which fixes an issue)
  • Code refactoring without any functionality changes
  • New or existing module/payload change
  • Localization improvement
  • Dependency upgrade
  • Documentation improvement

Checklist

  • I've followed the contributing guidelines
  • I've run make pre-commit, it didn't generate any changes
  • I've run make test, all tests passed locally

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Aug 30, 2025

Warning

Rate limit exceeded

@mirnumaan has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 5 minutes and 14 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between 42e54e6 and 7c1e2a5.

📒 Files selected for processing (1)
  • nettacker/locale/ka.yaml (1 hunks)

Note

Other AI code review bot(s) detected

CodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review.

Summary by CodeRabbit

  • Documentation
    • Added comprehensive Kashmiri language localization, providing translations for UI strings, error messages, system prompts, logs, graph outputs, API interactions, and other user-facing content throughout the application.

Walkthrough

Adds a new Kashmiri locale file nettacker/locale/ka.yml containing translations for many Nettacker UI strings, prompts, errors, logs, scan options, module messages, reports/graphs, and API texts, preserving placeholders and some multi-line entries.

Changes

Cohort / File(s) Summary
Localization
nettacker/locale/ka.yml
Adds a Kashmiri (ka) translation YAML mapping numerous UI/message keys (API, targets, scans, modules, reports, statuses, logs, errors) to localized strings; includes placeholder tokens (e.g., {0}, {1}) and multi-line messages.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

  • Review YAML syntax/encoding (UTF-8) and indentation.
  • Verify placeholder integrity and ordering (e.g., {0}, {1}) against source keys.
  • Spot-check multi-line entries for unintended line breaks or formatting issues.

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and accurately describes the main change: adding Kashmiri language localization support and related documentation improvements.
Description check ✅ Passed The description is directly related to the changeset, clearly explaining that Kashmiri localization support is being added with all user-facing strings translated.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 4

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
nettacker/locale/ka.yml (1)

1-123: Fix YAML syntax in nettacker/locale/ka.yml

YAML parser fails at line 34, column 66 with “mapping values are not allowed here.” Quote or escape the offending colons/special characters to produce valid YAML, then re-run your placeholder-parity and key-presence checks.

🧹 Nitpick comments (1)
nettacker/locale/ka.yml (1)

60-60: Quote URLs for consistency and future-proofing.

Not required syntactically here, but quoting avoids accidental parse issues if the line changes.

-license: "براہِ کرم لائسنس تہ معاہدہ پڑھو https://github.com/OWASP/Nettacker"
+license: "براہِ کرم لائسنس تہ معاہدہ پڑھو https://github.com/OWASP/Nettacker"
# (No content change; leave as-is if project style prefers unquoted. This is a heads-up.)
📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 1ff4258 and fe5c413.

📒 Files selected for processing (1)
  • nettacker/locale/ka.yml (1 hunks)
🧰 Additional context used
🪛 Checkov (3.2.334)
nettacker/locale/ka.yml

[MEDIUM] 68-69: Basic Auth Credentials

(CKV_SECRET_4)

🪛 YAMLlint (1.37.1)
nettacker/locale/ka.yml

[error] 99-99: trailing spaces

(trailing-spaces)


[error] 100-100: trailing spaces

(trailing-spaces)


[error] 34-34: syntax error: mapping values are not allowed here

(syntax)

🔇 Additional comments (2)
nettacker/locale/ka.yml (2)

87-90: YAML “\n” escapes become real newlines—verify downstream formatting
Per the YAML spec, double-quoted "\n" is parsed into actual newline characters, not literal \+n. Confirm that your logging/formatter correctly handles these embedded newlines for the messages in nettacker/locale/ka.yml (lines 87–90).


1-3: Rename locale code from “ka” to “ks”
The file nettacker/locale/ka.yml must be renamed to nettacker/locale/ks.yml (or a BCP-47 tag like ks-Arab.yml). No code references to “ka” locales were found in loader or app code—locale files are auto-discovered by filename—so no further changes are required.

Copy link
Collaborator

@arkid15r arkid15r left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @mirnumaan
Thanks for the l10n contribution! Could you address the suggestions and fix the pre-commit?

Thank you!

Copy link
Author

@mirnumaan mirnumaan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry about the late fix i have made changes . kindly let me know if anything else needed . Thank you

Copilot AI review requested due to automatic review settings November 15, 2025 01:45
Copilot finished reviewing on behalf of mirnumaan November 15, 2025 01:48
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request adds Kashmiri language localization support to the OWASP Nettacker project, enabling Kashmiri-speaking users to interact with the tool in their native language.

  • Adds a new Kashmiri (ka) locale file with 119 translated strings
  • Includes translations for API options, scan methods, error messages, and user interface elements
  • Extends the project's multilingual capabilities alongside existing 24+ language support

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between fe5c413 and 42e54e6.

📒 Files selected for processing (1)
  • nettacker/locale/ka.yml (1 hunks)
🧰 Additional context used
🪛 Checkov (3.2.334)
nettacker/locale/ka.yml

[medium] 67-68: Basic Auth Credentials

(CKV_SECRET_4)

🪛 YAMLlint (1.37.1)
nettacker/locale/ka.yml

[error] 34-34: syntax error: expected , but found ''

(syntax)

🔇 Additional comments (3)
nettacker/locale/ka.yml (3)

67-67: Credentials masking appears correct; verify static analysis false positive is resolved.

The credentials in the example are masked as USERNAME:PASSWORD to avoid triggering secret scanners. This aligns with the prior review feedback. However, the static analysis tool still flags lines 67–68 with CKV_SECRET_4. After merging and running the full CI pipeline, confirm that this false positive is suppressed or that linting rules are satisfied.


98-98: Multiline formatting appears resolved.

Line 98 is now a properly formatted single-line value for start_parallel_module_scan. The prior review flagged lines 99–101 for multiline issues and trailing spaces; those appear to have been corrected.


28-28: YAML parsing ambiguity resolved.

Line 28's value is properly quoted, preserving the ellipsis and brackets as a literal string. No parsing ambiguity.

@mirnumaan
Copy link
Author

Kindly review the fixes I have made, thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants