Skip to content

Commit

Permalink
feat(interface): add locales for progress and radial menu (#509)
Browse files Browse the repository at this point in the history
  • Loading branch information
antond15 authored Mar 15, 2024
1 parent abb2868 commit 591fb02
Show file tree
Hide file tree
Showing 30 changed files with 92 additions and 38 deletions.
2 changes: 2 additions & 0 deletions locales/al.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"confirm": "Konfirmo",
"more": "More..."
},
"open_radial_menu": "Open radial menu",
"cancel_progress": "Cancel current progress bar",
"txadmin_announcement": "Server announcement by %s",
"txadmin_dm": "Direct Message from %s",
"txadmin_warn": "You have been warned by %s",
Expand Down
29 changes: 15 additions & 14 deletions locales/ar.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{
"language": "العربية",
"ui": {
"cancel": "إلغاء",
"close": "إغلاق",
"confirm": "تأكيد",
"more": "المزيد ..."
},
"txadmin_announcement": "إعلان من قبل %s",
"txadmin_dm": "رسالة من %s",
"txadmin_warn": "تم تحذيرك من قبل %s",
"txadmin_warn_content": "%s \nأيدي: %s",
"txadmin_scheduledrestart": "تحديد ريستارت للسرفر"
}

"language": "العربية",
"ui": {
"cancel": "إلغاء",
"close": "إغلاق",
"confirm": "تأكيد",
"more": "المزيد ..."
},
"open_radial_menu": "Open radial menu",
"cancel_progress": "Cancel current progress bar",
"txadmin_announcement": "إعلان من قبل %s",
"txadmin_dm": "رسالة من %s",
"txadmin_warn": "تم تحذيرك من قبل %s",
"txadmin_warn_content": "%s \nأيدي: %s",
"txadmin_scheduledrestart": "تحديد ريستارت للسرفر"
}
2 changes: 2 additions & 0 deletions locales/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"confirm": "Potvrdit",
"more": "Více..."
},
"open_radial_menu": "Otevřít kruhové menu",
"cancel_progress": "Zrušit aktuální progress bar",
"txadmin_announcement": "Serverové oznámení od %s",
"txadmin_dm": "Soukromá zpráva od %s",
"txadmin_warn": "Byl jsi varován od %s",
Expand Down
26 changes: 14 additions & 12 deletions locales/da.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
{
"language": "Dansk",
"ui": {
"cancel": "Annuller",
"close": "Luk",
"confirm": "Bekræft",
"more": "Mere..."
},
"txadmin_announcement": "Servermeddelelse af %s",
"txadmin_dm": "Direkte besked fra %s",
"txadmin_warn": "Du er blevet advaret af %s",
"txadmin_warn_content": "%s \nHandlings-id: %s",
"txadmin_scheduledrestart": "Planlagt genstart"
"language": "Dansk",
"ui": {
"cancel": "Annuller",
"close": "Luk",
"confirm": "Bekræft",
"more": "Mere..."
},
"open_radial_menu": "Open radial menu",
"cancel_progress": "Cancel current progress bar",
"txadmin_announcement": "Servermeddelelse af %s",
"txadmin_dm": "Direkte besked fra %s",
"txadmin_warn": "Du er blevet advaret af %s",
"txadmin_warn_content": "%s \nHandlings-id: %s",
"txadmin_scheduledrestart": "Planlagt genstart"
}
2 changes: 2 additions & 0 deletions locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"confirm": "Bestätigen",
"more": "Mehr..."
},
"open_radial_menu": "Open radial menu",
"cancel_progress": "Cancel current progress bar",
"txadmin_announcement": "Serverankündigung von %s",
"txadmin_dm": "Direktnachricht von %s",
"txadmin_warn": "Du wurdest von %s gewarnt",
Expand Down
2 changes: 2 additions & 0 deletions locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"confirm": "Confirm",
"more": "More..."
},
"open_radial_menu": "Open radial menu",
"cancel_progress": "Cancel current progress bar",
"txadmin_announcement": "Server announcement by %s",
"txadmin_dm": "Direct Message from %s",
"txadmin_warn": "You have been warned by %s",
Expand Down
2 changes: 2 additions & 0 deletions locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"confirm": "Confirmar",
"more": "Más..."
},
"open_radial_menu": "Open radial menu",
"cancel_progress": "Cancel current progress bar",
"txadmin_announcement": "Anuncio de servidor de %s",
"txadmin_dm": "Mensaje directo de %s",
"txadmin_warn": "Has sido advertido por %s",
Expand Down
2 changes: 2 additions & 0 deletions locales/et.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"confirm": "Kinnita",
"more": "Rohkem..."
},
"open_radial_menu": "Open radial menu",
"cancel_progress": "Cancel current progress bar",
"txadmin_announcement": "Serveri teadaanne kasutajalt %s",
"txadmin_dm": "Sulle saadeti sõnum kasutajalt %s",
"txadmin_warn": "Sind hoiatati kasutaja %s poolt",
Expand Down
2 changes: 2 additions & 0 deletions locales/fi.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"confirm": "Vahvista",
"more": "Lisää..."
},
"open_radial_menu": "Open radial menu",
"cancel_progress": "Cancel current progress bar",
"txadmin_announcement": "Ilmoitus palvelimen ylläpitäjältä %s",
"txadmin_dm": "Sait viestin henkilöltä %s",
"txadmin_warn": "Sinua on varoitettu henkilön %s toimesta",
Expand Down
2 changes: 2 additions & 0 deletions locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"confirm": "Confirmer",
"more": "Plus..."
},
"open_radial_menu": "Open radial menu",
"cancel_progress": "Cancel current progress bar",
"txadmin_announcement": "Server announcement by %s",
"txadmin_dm": "Direct Message from %s",
"txadmin_warn": "You have been warned by %s",
Expand Down
2 changes: 2 additions & 0 deletions locales/he.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"confirm": "אישור",
"more": "...עוד"
},
"open_radial_menu": "Open radial menu",
"cancel_progress": "Cancel current progress bar",
"txadmin_announcement": "Server announcement by %s",
"txadmin_dm": "Direct Message from %s",
"txadmin_warn": "You have been warned by %s",
Expand Down
2 changes: 2 additions & 0 deletions locales/hr.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"confirm": "Potvrdi",
"more": "Više..."
},
"open_radial_menu": "Open radial menu",
"cancel_progress": "Cancel current progress bar",
"txadmin_announcement": "Server announcement by %s",
"txadmin_dm": "Direct Message from %s",
"txadmin_warn": "You have been warned by %s",
Expand Down
2 changes: 2 additions & 0 deletions locales/hu.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"confirm": "Megerősít",
"more": "Tovább..."
},
"open_radial_menu": "Open radial menu",
"cancel_progress": "Cancel current progress bar",
"txadmin_announcement": "Szerver bejelentés által %s",
"txadmin_dm": "Közvetlen üzenet a %s",
"txadmin_warn": "Figyelmeztetett %s",
Expand Down
2 changes: 2 additions & 0 deletions locales/id.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"confirm": "Konfirmasi",
"more": "More..."
},
"open_radial_menu": "Open radial menu",
"cancel_progress": "Cancel current progress bar",
"txadmin_announcement": "Server announcement by %s",
"txadmin_dm": "Direct Message from %s",
"txadmin_warn": "You have been warned by %s",
Expand Down
2 changes: 2 additions & 0 deletions locales/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"confirm": "Conferma",
"more": "Altro..."
},
"open_radial_menu": "Open radial menu",
"cancel_progress": "Cancel current progress bar",
"txadmin_announcement": "Annuncio server da %s",
"txadmin_dm": "Messaggio diretto da %s",
"txadmin_warn": "Sei stato richiamato da %s",
Expand Down
2 changes: 2 additions & 0 deletions locales/lt.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"confirm": "Patvirtinti",
"more": "Daugiau..."
},
"open_radial_menu": "Open radial menu",
"cancel_progress": "Cancel current progress bar",
"txadmin_announcement": "Server announcement by %s",
"txadmin_dm": "Direct Message from %s",
"txadmin_warn": "You have been warned by %s",
Expand Down
2 changes: 2 additions & 0 deletions locales/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"confirm": "Bevestigen",
"more": "Meer..."
},
"open_radial_menu": "Open radial menu",
"cancel_progress": "Cancel current progress bar",
"txadmin_announcement": "Server mededeling door %s",
"txadmin_dm": "Bericht van %s",
"txadmin_warn": "Je hebt een waarschuwing gekregen van %s",
Expand Down
20 changes: 11 additions & 9 deletions locales/no.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
{
"language": "Norsk",
"ui": {
"language": "Norsk",
"ui": {
"cancel": "Avbryt",
"close": "Lukk",
"confirm": "Bekreft",
"more": "Mer..."
},
"txadmin_announcement": "Server announcement by %s",
"txadmin_dm": "Direct Message from %s",
"txadmin_warn": "You have been warned by %s",
"txadmin_warn_content": "%s \nAction ID: %s",
"txadmin_scheduledrestart": "Scheduled Restart"
}
},
"open_radial_menu": "Open radial menu",
"cancel_progress": "Cancel current progress bar",
"txadmin_announcement": "Server announcement by %s",
"txadmin_dm": "Direct Message from %s",
"txadmin_warn": "You have been warned by %s",
"txadmin_warn_content": "%s \nAction ID: %s",
"txadmin_scheduledrestart": "Scheduled Restart"
}
2 changes: 2 additions & 0 deletions locales/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"confirm": "Potwierdź",
"more": "Więcej..."
},
"open_radial_menu": "Open radial menu",
"cancel_progress": "Cancel current progress bar",
"txadmin_announcement": "Ogłoszenie serwerowe od %s",
"txadmin_dm": "Prywatna wiadomość od %s",
"txadmin_warn": "Otrzymano ostrzeżenie od %s",
Expand Down
2 changes: 2 additions & 0 deletions locales/pt-br.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"confirm": "Confirmar",
"more": "Mais..."
},
"open_radial_menu": "Open radial menu",
"cancel_progress": "Cancel current progress bar",
"txadmin_announcement": "Server announcement by %s",
"txadmin_dm": "Direct Message from %s",
"txadmin_warn": "You have been warned by %s",
Expand Down
2 changes: 2 additions & 0 deletions locales/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"confirm": "Подтвердить",
"more": "Ещё..."
},
"open_radial_menu": "Open radial menu",
"cancel_progress": "Cancel current progress bar",
"txadmin_announcement": "Server announcement by %s",
"txadmin_dm": "Direct Message from %s",
"txadmin_warn": "You have been warned by %s",
Expand Down
2 changes: 2 additions & 0 deletions locales/sk.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"confirm": "Potvrdiť",
"more": "More..."
},
"open_radial_menu": "Open radial menu",
"cancel_progress": "Cancel current progress bar",
"txadmin_announcement": "Server announcement by %s",
"txadmin_dm": "Direct Message from %s",
"txadmin_warn": "You have been warned by %s",
Expand Down
2 changes: 2 additions & 0 deletions locales/sl.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"confirm": "Potrdi",
"more": "More..."
},
"open_radial_menu": "Open radial menu",
"cancel_progress": "Cancel current progress bar",
"txadmin_announcement": "Server announcement by %s",
"txadmin_dm": "Direct Message from %s",
"txadmin_warn": "You have been warned by %s",
Expand Down
2 changes: 2 additions & 0 deletions locales/sv.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"confirm": "Acceptera",
"more": "Mer..."
},
"open_radial_menu": "Open radial menu",
"cancel_progress": "Cancel current progress bar",
"txadmin_announcement": "Server announcement by %s",
"txadmin_dm": "Direct Message from %s",
"txadmin_warn": "You have been warned by %s",
Expand Down
2 changes: 2 additions & 0 deletions locales/th.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"confirm": "ยืนยัน",
"more": "เพิ่มเติม..."
},
"open_radial_menu": "Open radial menu",
"cancel_progress": "Cancel current progress bar",
"txadmin_announcement": "Server announcement by %s",
"txadmin_dm": "Direct Message from %s",
"txadmin_warn": "You have been warned by %s",
Expand Down
2 changes: 2 additions & 0 deletions locales/tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"confirm": "Onayla",
"more": "Daha Fazla..."
},
"open_radial_menu": "Open radial menu",
"cancel_progress": "Cancel current progress bar",
"txadmin_announcement": "Server announcement by %s",
"txadmin_dm": "Direct Message from %s",
"txadmin_warn": "You have been warned by %s",
Expand Down
2 changes: 2 additions & 0 deletions locales/zh-cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"confirm": "确认",
"more": "更多..."
},
"open_radial_menu": "Open radial menu",
"cancel_progress": "Cancel current progress bar",
"txadmin_announcement": "来自 %s 的服务器通告",
"txadmin_dm": "来自 %s 的信息",
"txadmin_warn": "您被 %s 警告了",
Expand Down
2 changes: 2 additions & 0 deletions locales/zh-tw.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"confirm": "確認",
"more": "更多..."
},
"open_radial_menu": "Open radial menu",
"cancel_progress": "Cancel current progress bar",
"txadmin_announcement": "來自 %s 的伺服器通告",
"txadmin_dm": "來自 %s 的訊息",
"txadmin_warn": "您被 %s 警告了",
Expand Down
2 changes: 1 addition & 1 deletion resource/interface/client/progress.lua
Original file line number Diff line number Diff line change
Expand Up @@ -221,4 +221,4 @@ RegisterCommand('cancelprogress', function()
if progress?.canCancel then progress = false end
end)

RegisterKeyMapping('cancelprogress', 'Cancel current progress bar', 'keyboard', 'x')
RegisterKeyMapping('cancelprogress', locale('cancel_progress'), 'keyboard', 'x')
3 changes: 1 addition & 2 deletions resource/interface/client/radial.lua
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ function lib.clearRadialItems()
if isOpen then
refreshRadial()
end

end

RegisterNUICallback('radialClick', function(index, cb)
Expand Down Expand Up @@ -299,7 +298,7 @@ end

lib.addKeybind({
name = 'ox_lib-radial',
description = 'Open radial menu',
description = locale('open_radial_menu'),
defaultKey = 'z',
onPressed = function()
if isDisabled then return end
Expand Down

0 comments on commit 591fb02

Please sign in to comment.