fix(cli): correct timeout argument help text#1295
fix(cli): correct timeout argument help text#1295Gauravsharma2040 wants to merge 4 commits intoOWASP:masterfrom
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
WalkthroughFixed the CLI help text for the timeout option and added a Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
nettacker/locale/hi.yaml (1)
1-123:⚠️ Potential issue | 🟡 MinorAdd missing
timeouttranslation and address broader localization gap in hi.yaml.The app will not crash at startup when Hindi is selected because
nettacker/core/messages.pyhas robust fallback handling—it automatically fills missing keys with English values during initialization. However,timeoutis indeed absent fromhi.yamlalong with 16 other keys (apsw_connection_error,apsw_ill_configuration,database_error,database_lock_issue,database_query_fail,database_retries_exhausted,error_passwords,error_wordlist,exclude_ports,http_header,read_report_fail,remove_logs_fail,report_insertion_fail,report_retrieval_fail,search_results_end,user_wordlist).This creates a localization gap where these 17 keys will display in English for Hindi-speaking users. Consider adding translations, starting with:
+timeout: सेकंड में अनुरोध टाइमआउट🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@nettacker/locale/hi.yaml` around lines 1 - 123, The hi.yaml is missing the translation for timeout (and 16 other keys) causing fallback to English; open nettacker/locale/hi.yaml and add Hindi translations for the exact keys: timeout, apsw_connection_error, apsw_ill_configuration, database_error, database_lock_issue, database_query_fail, database_retries_exhausted, error_passwords, error_wordlist, exclude_ports, http_header, read_report_fail, remove_logs_fail, report_insertion_fail, report_retrieval_fail, search_results_end, user_wordlist; preserve any placeholders like {0}/{1}, keep YAML quoting/indentation consistent with surrounding entries, and verify selection via nettacker/core/messages.py by switching the locale to Hindi to confirm no English fallback remains.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Outside diff comments:
In `@nettacker/locale/hi.yaml`:
- Around line 1-123: The hi.yaml is missing the translation for timeout (and 16
other keys) causing fallback to English; open nettacker/locale/hi.yaml and add
Hindi translations for the exact keys: timeout, apsw_connection_error,
apsw_ill_configuration, database_error, database_lock_issue,
database_query_fail, database_retries_exhausted, error_passwords,
error_wordlist, exclude_ports, http_header, read_report_fail, remove_logs_fail,
report_insertion_fail, report_retrieval_fail, search_results_end, user_wordlist;
preserve any placeholders like {0}/{1}, keep YAML quoting/indentation consistent
with surrounding entries, and verify selection via nettacker/core/messages.py by
switching the locale to Hindi to confirm no English fallback remains.
|
@Gauravsharma2040- please keep changes in this PR in scope of the goal of this PR. For this change, the only update to |
Thanks for pointing that out. I already have a separate PR open that contains the broader Hindi translation refinements. I’ll revert the unrelated changes from this PR and keep it strictly scoped to the timeout string. |
1206272 to
1c018fe
Compare
|
@Gauravsharma2040 please create an issue with a screenshot showing the incorrect text |
The --timeout / -T argument was incorrectly using the "read_passwords"
help key.
This PR:
No behavioral changes introduced.