Skip to content

Commit

Permalink
Merge pull request #551 from v1s1t0r1sh3r3/chinese
Browse files Browse the repository at this point in the history
Chinese into dev
  • Loading branch information
OscarAkaElvis authored Aug 7, 2023
2 parents 31f3f76 + 3f50316 commit 98207b3
Show file tree
Hide file tree
Showing 4 changed files with 860 additions and 28 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
### 11.21
- Chinese language translation added (Thank you to "zcbxx")
- Fixed bug parsing cracked PIN on WPS reaver Pixie Dust attack for newer reaver versions
- Fixed error on PMKID capturing due hcxdumptool different params for newer versions using bpf filters

Expand Down Expand Up @@ -84,7 +85,7 @@

### 10.30
- Fixed error on internet interface selection menu when no number provided
- Fixed BeEF error due to forced config file changes for some versions
- Fixed BeEF error due forced config file changes for some versions
- Fixed weird error for endless loop while capturing handshake on some devices
- Fixed terminal freeze problem when Ctrl+C pressed on path prompt
- Fixed Network Manager problem on fake AP used for Evil Twin attacks
Expand Down
23 changes: 23 additions & 0 deletions airgeddon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ declare -A lang_association=(
["de"]="GERMAN"
["tr"]="TURKISH"
["ar"]="ARABIC"
["zh"]="CHINESE"
)

rtl_languages=(
Expand Down Expand Up @@ -510,6 +511,7 @@ function language_strings_handling_messages() {
language_strings_no_file["GERMAN"]="Fehler. Die Übersetzungsdatei wurde nicht gefunden"
language_strings_no_file["TURKISH"]="Hata. Çeviri dosyası bulunamadı"
language_strings_no_file["ARABIC"]="خطأ. ملف اللغة غير موجود"
language_strings_no_file["CHINESE"]="错误。未找到语言支持文件"

declare -gA language_strings_file_mismatch
language_strings_file_mismatch["ENGLISH"]="Error. The language strings file found mismatches expected version"
Expand All @@ -524,6 +526,7 @@ function language_strings_handling_messages() {
language_strings_file_mismatch["GERMAN"]="Fehler. Die gefundene Übersetzungsdatei ist nicht die erwartete Version"
language_strings_file_mismatch["TURKISH"]="Hata. Bulunan çeviri dosyası beklenen sürüm değil"
language_strings_file_mismatch["ARABIC"]="خطأ. ملف اللغة غيرمتطابق مع الإصدار المتوقع"
language_strings_file_mismatch["CHINESE"]="错误。发现语言支持文件与预期版本不匹配"

declare -gA language_strings_try_to_download
language_strings_try_to_download["ENGLISH"]="airgeddon will try to download the language strings file..."
Expand All @@ -538,6 +541,7 @@ function language_strings_handling_messages() {
language_strings_try_to_download["GERMAN"]="airgeddon wird versuchen, die Übersetzungsdatei herunterzuladen..."
language_strings_try_to_download["TURKISH"]="airgeddon çeviri dosyasını indirmeye çalışacak..."
language_strings_try_to_download["ARABIC"]="سيحاول airgeddon تنزيل ملف سلاسل اللغة ..."
language_strings_try_to_download["CHINESE"]="airgeddon 将尝试下载语言支持文件..."

declare -gA language_strings_successfully_downloaded
language_strings_successfully_downloaded["ENGLISH"]="Language strings file was successfully downloaded"
Expand All @@ -552,6 +556,7 @@ function language_strings_handling_messages() {
language_strings_successfully_downloaded["GERMAN"]="Die Übersetzungsdatei wurde erfolgreich heruntergeladen"
language_strings_successfully_downloaded["TURKISH"]="Çeviri dosyası başarıyla indirildi"
language_strings_successfully_downloaded["ARABIC"]="تم تنزيل ملف سلاسل اللغة بنجاح"
language_strings_successfully_downloaded["CHINESE"]="语言支持文件已成功下载"

declare -gA language_strings_failed_downloading
language_strings_failed_downloading["ENGLISH"]="The language string file can't be downloaded. Check your internet connection or download it manually from ${normal_color}${urlgithub}"
Expand All @@ -566,6 +571,7 @@ function language_strings_handling_messages() {
language_strings_failed_downloading["GERMAN"]="Die Übersetzungsdatei konnte nicht heruntergeladen werden. Überprüfen Sie Ihre Internetverbindung oder laden Sie sie manuell von ${normal_color}${urlgithub} runter"
language_strings_failed_downloading["TURKISH"]="Çeviri dosyası indirilemedi. İnternet bağlantınızı kontrol edin veya manuel olarak indirin ${normal_color}${urlgithub}"
language_strings_failed_downloading["ARABIC"]="${normal_color}${urlgithub}${red_color} لا يمكن تنزيل ملف اللغة. تحقق من اتصالك بالإنترنت أو قم بتنزيله يدويًا من"
language_strings_failed_downloading["CHINESE"]="无法下载语言支持文件。检查您的互联网连接或从 手动下载 ${normal_color}${urlgithub}"

declare -gA language_strings_first_time
language_strings_first_time["ENGLISH"]="If you are seeing this message after an automatic update, don't be scared! It's probably because airgeddon has different file structure since version 6.1. It will be automatically fixed"
Expand All @@ -580,6 +586,7 @@ function language_strings_handling_messages() {
language_strings_first_time["GERMAN"]="Wenn Sie diese Nachricht nach einem automatischen Update sehen, haben Sie keine Angst! Das liegt vermutlich daran, dass ab Version 6.1 die Dateistruktur von airgeddon geändert wurde. Es wird automatisch repariert"
language_strings_first_time["TURKISH"]="Otomatik bir güncellemeden sonra bu mesajı görüyorsanız, korkmayın! muhtemelen 6.1 sürümünden itibaren airgeddon dosya yapısı değişmiştir. Otomatik olarak tamir edilecektir"
language_strings_first_time["ARABIC"]="إذا كنت ترى هذه الرسالة بعد التحديث التلقائي ، فلا تخف! ربما يرجع السبب في ذلك إلى أن airgeddon له بنية ملفات مختلفة منذ الإصدار 6.1. سيتم إصلاحه تلقائيًا "
language_strings_first_time["CHINESE"]="如果您在自动更新后看到此消息,请不要害怕!这可能是因为 airgeddon 从 6.1 版本开始有不同的文件结构。会自动修复"

declare -gA language_strings_exiting
language_strings_exiting["ENGLISH"]="Exiting airgeddon script v${airgeddon_version} - See you soon! :)"
Expand All @@ -594,6 +601,7 @@ function language_strings_handling_messages() {
language_strings_exiting["GERMAN"]="Sie verlassen airgeddon v${airgeddon_version} - Bis bald! :)"
language_strings_exiting["TURKISH"]="airgeddon yazılımından çıkış yapılıyor v${airgeddon_version} - Yakında görüşürüz! :)"
language_strings_exiting["ARABIC"]="الخروج من البرنامج airgeddon v${airgeddon_version}- نراكم قريبًا! :)"
language_strings_exiting["CHINESE"]="退出 airgeddon 脚本 v${airgeddon_version} - 待会见! :)"

declare -gA language_strings_key_to_continue
language_strings_key_to_continue["ENGLISH"]="Press [Enter] key to continue..."
Expand All @@ -608,6 +616,7 @@ function language_strings_handling_messages() {
language_strings_key_to_continue["GERMAN"]="Drücken Sie die [Enter]-Taste um fortzufahren..."
language_strings_key_to_continue["TURKISH"]="Devam etmek için [Enter] tuşuna basın..."
language_strings_key_to_continue["ARABIC"]="اضغط على مفتاح [Enter] للمتابعة ..."
language_strings_key_to_continue["CHINESE"]="按 [Enter] 键继续..."
}

#Generic toggle option function
Expand Down Expand Up @@ -2260,6 +2269,7 @@ function language_menu() {
language_strings "${language}" 331
language_strings "${language}" 519
language_strings "${language}" 687
language_strings "${language}" 717
print_hint ${current_menu}

read -rp "> " language_selected
Expand Down Expand Up @@ -2376,6 +2386,15 @@ function language_menu() {
fi
language_strings "${language}" 115 "read"
;;
13)
if [ "${language}" = "CHINESE" ]; then
language_strings "${language}" 251 "red"
else
language="CHINESE"
language_strings "${language}" 83 "yellow"
fi
language_strings "${language}" 115 "read"
;;
*)
invalid_language_selected
;;
Expand Down Expand Up @@ -8711,6 +8730,7 @@ function set_captive_portal_language() {
language_strings "${language}" 331
language_strings "${language}" 519
language_strings "${language}" 687
language_strings "${language}" 717
print_hint ${current_menu}

read -rp "> " captive_portal_language_selected
Expand Down Expand Up @@ -8756,6 +8776,9 @@ function set_captive_portal_language() {
12)
captive_portal_language="ARABIC"
;;
13)
captive_portal_language="CHINESE"
;;
*)
invalid_captive_portal_language_selected
;;
Expand Down
Loading

0 comments on commit 98207b3

Please sign in to comment.