Skip to content

Improve Indonesian locale translations (id.yaml)#1329

Open
imraflip wants to merge 1 commit intoOWASP:masterfrom
imraflip:fix-indonesian-translations
Open

Improve Indonesian locale translations (id.yaml)#1329
imraflip wants to merge 1 commit intoOWASP:masterfrom
imraflip:fix-indonesian-translations

Conversation

@imraflip
Copy link

This PR improves the Indonesian locale file (id.yaml):

  • Refined several translations to match common cybersecurity terminology better
  • Replaced literal translations with more natural technical wording
  • Synchronized missing keys with en.yaml to maintain consistency

Copilot AI review requested due to automatic review settings February 28, 2026 09:11
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 28, 2026

Summary by CodeRabbit

  • Documentation
    • Updated and expanded Indonesian translations throughout the application. Improvements include enhanced messaging for API operations, graph visualization, logging information, module processing status, and report generation. These comprehensive updates provide clearer, more consistent user-facing text to improve application usability for Indonesian-speaking users.

Walkthrough

Indonesian translation file updated with new API, graph, and logging-related keys while removing obsolete entries. User-facing text strings replaced with updated phrasing across multiple semantic categories.

Changes

Cohort / File(s) Summary
Indonesian Locale Translations
nettacker/locale/id.yaml
Adds new translation keys for API access, graph outputs, module processing status, and report handling. Removes and renames several deprecated keys. Updates existing translations with revised phrasing affecting user-facing messages.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title 'Improve Indonesian locale translations (id.yaml)' directly and clearly describes the main change - improving Indonesian translations in the id.yaml file.
Description check ✅ Passed The description is directly related to the changeset, providing specific context about refining translations, matching terminology, and synchronizing keys with en.yaml.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Tip

Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs).
Share your feedback on Discord.


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

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@nettacker/locale/id.yaml`:
- Line 140: The translation for the YAML key database_error has a typo
("databasse"); update the value for database_error in nettacker/locale/id.yaml
to the correct spelling "Error pada database!" by editing the string associated
with the database_error key.
- Line 119: The key wrong_hardware_usage in nettacker/locale/id.yaml contains an
English message; replace its value with an Indonesian translation such as "Anda
harus memilih salah satu profil penggunaan perangkat keras ini. (low, normal,
high, maximum)" so the locale file is fully localized while preserving the
profile tokens in parentheses.
- Around line 24-25: Keys choose_scan_method and cannot_run_api_server in the
Indonesian locale are still in English; update their values with proper
Indonesian translations (replace the English phrases after choose_scan_method:
and cannot_run_api_server: with fluent Indonesian strings) so the id.yaml locale
is fully translated and consistent with other entries.
- Around line 103-105: The YAML value for the key start_parallel_module_scan is
an invalid multi-line string; fix it by replacing the current lines with a
proper literal block scalar or a single-line/quoted string: for example, use
start_parallel_module_scan: | followed on the next indented line by the message
"proses-{0}|{1}|{2}| memulai modul dengan nomor thread {3} dari {4}" (preserving
placeholders and indentation), or alternatively put the whole message on one
line or wrap it in quotes; update the entry for start_parallel_module_scan
accordingly.

ℹ️ Review info

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between ed9c8ca and 00729ee.

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

Comment on lines +24 to +25
choose_scan_method: choose modules {0} to see full list use --show-all-modules
cannot_run_api_server: You can't run API Server through itself!
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Untranslated strings in Indonesian locale file.

These entries are still in English and should be translated to Indonesian for consistency:

  • Line 24: choose_scan_method
  • Line 25: cannot_run_api_server
Suggested Indonesian translations
-choose_scan_method: choose modules {0} to see full list use --show-all-modules
-cannot_run_api_server: You can't run API Server through itself!
+choose_scan_method: pilih modul {0} untuk melihat daftar lengkap gunakan --show-all-modules
+cannot_run_api_server: Anda tidak dapat menjalankan Server API melalui dirinya sendiri!
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
choose_scan_method: choose modules {0} to see full list use --show-all-modules
cannot_run_api_server: You can't run API Server through itself!
choose_scan_method: pilih modul {0} untuk melihat daftar lengkap gunakan --show-all-modules
cannot_run_api_server: Anda tidak dapat menjalankan Server API melalui dirinya sendiri!
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@nettacker/locale/id.yaml` around lines 24 - 25, Keys choose_scan_method and
cannot_run_api_server in the Indonesian locale are still in English; update
their values with proper Indonesian translations (replace the English phrases
after choose_scan_method: and cannot_run_api_server: with fluent Indonesian
strings) so the id.yaml locale is fully translated and consistent with other
entries.

Comment on lines +103 to +105
start_parallel_module_scan:
proses-{0}|{1}|{2}| memulai modul dengan nomor thread {3}
dari {4}
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🔴 Critical

YAML syntax error: invalid multi-line string format.

Static analysis (YAMLlint) reports a syntax error in this region. The multi-line string for start_parallel_module_scan is not properly formatted. YAML requires explicit multi-line indicators (| for literal or > for folded) or the content should be on a single line or properly quoted.

Proposed fix using literal block scalar
-start_parallel_module_scan:
-  proses-{0}|{1}|{2}| memulai modul dengan nomor thread {3}
-  dari {4}
+start_parallel_module_scan: "proses-{0}|{1}|{2}| memulai modul dengan nomor thread {3} dari {4}"

Or using a literal block scalar:

-start_parallel_module_scan:
-  proses-{0}|{1}|{2}| memulai modul dengan nomor thread {3}
-  dari {4}
+start_parallel_module_scan: |
+  proses-{0}|{1}|{2}| memulai modul dengan nomor thread {3}
+  dari {4}
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
start_parallel_module_scan:
proses-{0}|{1}|{2}| memulai modul dengan nomor thread {3}
dari {4}
start_parallel_module_scan: "proses-{0}|{1}|{2}| memulai modul dengan nomor thread {3} dari {4}"
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@nettacker/locale/id.yaml` around lines 103 - 105, The YAML value for the key
start_parallel_module_scan is an invalid multi-line string; fix it by replacing
the current lines with a proper literal block scalar or a single-line/quoted
string: for example, use start_parallel_module_scan: | followed on the next
indented line by the message "proses-{0}|{1}|{2}| memulai modul dengan nomor
thread {3} dari {4}" (preserving placeholders and indentation), or alternatively
put the whole message on one line or wrap it in quotes; update the entry for
start_parallel_module_scan accordingly.

username_from_file: baca username dari file
username_list: list username, pisahkan dengan ","
verbose_mode: mode verbose level (0-5) (default 0)
wrong_hardware_usage: "You must choose one of these profiles for hardware usage. (low, normal, high, maximum)"
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Untranslated string in Indonesian locale file.

This entry is still in English and should be translated to Indonesian for consistency with the rest of the file.

Suggested Indonesian translation
-wrong_hardware_usage: "You must choose one of these profiles for hardware usage. (low, normal, high, maximum)"
+wrong_hardware_usage: "Anda harus memilih salah satu dari profil ini untuk penggunaan perangkat keras. (low, normal, high, maximum)"
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
wrong_hardware_usage: "You must choose one of these profiles for hardware usage. (low, normal, high, maximum)"
wrong_hardware_usage: "Anda harus memilih salah satu dari profil ini untuk penggunaan perangkat keras. (low, normal, high, maximum)"
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@nettacker/locale/id.yaml` at line 119, The key wrong_hardware_usage in
nettacker/locale/id.yaml contains an English message; replace its value with an
Indonesian translation such as "Anda harus memilih salah satu profil penggunaan
perangkat keras ini. (low, normal, high, maximum)" so the locale file is fully
localized while preserving the profile tokens in parentheses.

report_retrieval_fail: Tidak dapat mengambil laporan
read_report_fail: Gagal untuk membaca file laporan {0}
search_results_end: Tidak ada hasil pencarian lagi
database_error: Error pada databasse!
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Typo in translation.

"databasse" should be "database".

Proposed fix
-database_error: Error pada databasse!
+database_error: Error pada database!
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
database_error: Error pada databasse!
database_error: Error pada database!
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@nettacker/locale/id.yaml` at line 140, The translation for the YAML key
database_error has a typo ("databasse"); update the value for database_error in
nettacker/locale/id.yaml to the correct spelling "Error pada database!" by
editing the string associated with the database_error key.

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 PR updates the Indonesian (id) message catalog to better match the current English (en.yaml) key set and to improve the wording of various user-facing CLI/API messages.

Changes:

  • Replaced the existing id.yaml content with a key set aligned to en.yaml (with runtime fallback for any missing keys).
  • Refined/added Indonesian translations for API, reporting, graph, database, and scanning-related messages.

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

Comment on lines +24 to +25
choose_scan_method: choose modules {0} to see full list use --show-all-modules
cannot_run_api_server: You can't run API Server through itself!
Copy link

Copilot AI Feb 28, 2026

Choose a reason for hiding this comment

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

Nilai untuk choose_scan_method dan cannot_run_api_server masih berbahasa Inggris, sehingga output UI/CLI untuk locale id akan campur bahasa. Sebaiknya terjemahkan kedua string ini ke Bahasa Indonesia (tetap pertahankan placeholder {0} jika ada).

Suggested change
choose_scan_method: choose modules {0} to see full list use --show-all-modules
cannot_run_api_server: You can't run API Server through itself!
choose_scan_method: pilih modul {0}; untuk melihat daftar lengkap gunakan --show-all-modules
cannot_run_api_server: Anda tidak dapat menjalankan Server API melalui dirinya sendiri!

Copilot uses AI. Check for mistakes.
username_from_file: baca username dari file
username_list: list username, pisahkan dengan ","
verbose_mode: mode verbose level (0-5) (default 0)
wrong_hardware_usage: "You must choose one of these profiles for hardware usage. (low, normal, high, maximum)"
Copy link

Copilot AI Feb 28, 2026

Choose a reason for hiding this comment

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

Nilai wrong_hardware_usage masih berbahasa Inggris, jadi pesan kesalahan untuk pengguna locale id tidak konsisten. Mohon terjemahkan string ini ke Bahasa Indonesia (tanpa mengubah daftar opsi di dalam tanda kurung).

Suggested change
wrong_hardware_usage: "You must choose one of these profiles for hardware usage. (low, normal, high, maximum)"
wrong_hardware_usage: "Anda harus memilih salah satu profil ini untuk penggunaan perangkat keras. (low, normal, high, maximum)"

Copilot uses AI. Check for mistakes.
report_retrieval_fail: Tidak dapat mengambil laporan
read_report_fail: Gagal untuk membaca file laporan {0}
search_results_end: Tidak ada hasil pencarian lagi
database_error: Error pada databasse!
Copy link

Copilot AI Feb 28, 2026

Choose a reason for hiding this comment

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

Ada typo pada pesan database_error: kata "databasse" salah eja.

Suggested change
database_error: Error pada databasse!
database_error: Error pada database!

Copilot uses AI. Check for mistakes.
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