]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Hardcode keybind definitions so they can be translated like any other string in the...
authorterencehill <piuntn@gmail.com>
Sun, 30 Aug 2015 17:23:58 +0000 (19:23 +0200)
committerterencehill <piuntn@gmail.com>
Sun, 30 Aug 2015 17:23:58 +0000 (19:23 +0200)
keybinds.txt [deleted file]
keybinds.txt.de [deleted file]
keybinds.txt.es [deleted file]
keybinds.txt.fr [deleted file]
keybinds.txt.hu [deleted file]
keybinds.txt.it [deleted file]
keybinds.txt.ru [deleted file]
keybinds.txt.uk [deleted file]
qcsrc/menu/xonotic/keybinder.qc

diff --git a/keybinds.txt b/keybinds.txt
deleted file mode 100644 (file)
index c57cb64..0000000
+++ /dev/null
@@ -1,98 +0,0 @@
-""                                      "Moving"
-"+forward"                              "forward"
-"+back"                                 "backpedal"
-"+moveleft"                             "strafe left"
-"+moveright"                            "strafe right"
-"+jump"                                 "jump / swim"
-"+crouch"                               "crouch / sink"
-"+hook"                                 "off-hand hook"
-"+jetpack"                              "jet pack"
-""                                      ""
-""                                      "Attacking"
-"+fire"                                 "primary fire"
-"+fire2"                                "secondary fire"
-""                                      ""
-""                                      "Weapon switching"
-"weapprev"                              "previous"
-"weapnext"                              "next"
-"weaplast"                              "previously used"
-"weapbest"                              "best"
-"reload"                                "reload"
-"weapon_group_1"                        "Blaster"
-"weapon_group_2"                        "Shotgun"
-"weapon_group_3"                        "Machine Gun / Arc"
-"weapon_group_4"                        "Mortar / Mine Layer"
-"weapon_group_5"                        "Electro"
-"weapon_group_6"                        "Crylink / HLAC"
-"weapon_group_7"                        "Vortex / Rifle"
-"weapon_group_8"                        "Hagar / Seeker"
-"weapon_group_9"                        "Devastator / Fireball"
-"weapon_group_0"                        "Port-O-Launch / Hook"
-""                                      ""
-""                                      "View"
-"+zoom"                                 "hold zoom"
-"togglezoom"                            "toggle zoom"
-"+showscores"                           "show scores"
-"screenshot"                            "screen shot"
-"+hud_panel_radar_maximized"            "maximize radar"
-"cl_cmd hud minigame"                   "toggle minigame menu"
-""                                      ""
-""                                      "Communicate"
-"messagemode"                           "public chat"
-"messagemode2"                          "team chat"
-"+con_chat_maximize"                    "show chat history"
-"vyes"                                  "vote YES"
-"vno"                                   "vote NO"
-"ready"                                 "ready"
-""                                      ""
-""                                      "Client"
-"quickmenu"                             "quick menu"
-"+show_info"                            "server info"
-"toggleconsole"                         "enter console"
-"disconnect"                            "disconnect"
-"menu_showquitdialog"                   "quit"
-""                                      ""
-""                                      "Teamplay"
-"messagemode2"                          "team chat"
-"team_auto"                             "auto-join team"
-"menu_showteamselect"                   "team menu"
-"menu_showsandboxtools"                 "sandbox menu"
-"spec"                                  "enter spectator mode"
-"dropweapon"                            "drop weapon"
-"+use"                                  "drop key / drop flag"
-"+button8"                              "drag object"
-"toggle chase_active"                   "3rd person view"
-""                                      ""
-""                                      "User defined"
-"+userbind 1"                           "$userbind1"
-"+userbind 2"                           "$userbind2"
-"+userbind 3"                           "$userbind3"
-"+userbind 4"                           "$userbind4"
-"+userbind 5"                           "$userbind5"
-"+userbind 6"                           "$userbind6"
-"+userbind 7"                           "$userbind7"
-"+userbind 8"                           "$userbind8"
-"+userbind 9"                           "$userbind9"
-"+userbind 10"                          "$userbind10"
-"+userbind 11"                          "$userbind11"
-"+userbind 12"                          "$userbind12"
-"+userbind 13"                          "$userbind13"
-"+userbind 14"                          "$userbind14"
-"+userbind 15"                          "$userbind15"
-"+userbind 16"                          "$userbind16"
-"+userbind 17"                          "$userbind17"
-"+userbind 18"                          "$userbind18"
-"+userbind 19"                          "$userbind19"
-"+userbind 20"                          "$userbind20"
-"+userbind 21"                          "$userbind21"
-"+userbind 22"                          "$userbind22"
-"+userbind 23"                          "$userbind23"
-"+userbind 24"                          "$userbind24"
-"+userbind 25"                          "$userbind25"
-"+userbind 26"                          "$userbind26"
-"+userbind 27"                          "$userbind27"
-"+userbind 28"                          "$userbind28"
-"+userbind 29"                          "$userbind29"
-"+userbind 30"                          "$userbind30"
-"+userbind 31"                          "$userbind31"
-"+userbind 32"                          "$userbind32"
diff --git a/keybinds.txt.de b/keybinds.txt.de
deleted file mode 100644 (file)
index 0f30ce2..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-""                                      "Bewegung"
-"+forward"                              "vorwärts"
-"+back"                                 "rückwärts"
-"+moveleft"                             "links"
-"+moveright"                            "rechts"
-"+jump"                                 "springen / schwimmen"
-"+crouch"                               "ducken / sinken"
-"+hook"                                 "Enterhaken"
-"+jetpack"                              "Jetpack"
-""                                      ""
-""                                      "Angriff"
-"+fire"                                 "1. Feuermodus"
-"+fire2"                                "2. Feuermodus"
-""                                      ""
-""                                      "Waffe wechseln"
-"weapprev"                              "vorherige"
-"weapnext"                              "nächste"
-"weaplast"                              "zuletzt benutzte"
-"weapbest"                              "beste"
-"reload"                                "nachladen"
-"weapon_group_1"                        "Blaster"
-"weapon_group_2"                        "Schrotgewehr"
-"weapon_group_3"                        "Maschinengewehr / Arc"
-"weapon_group_4"                        "Mortar / Mine Layer"
-"weapon_group_5"                        "Electro"
-"weapon_group_6"                        "Crylink / HLAC"
-"weapon_group_7"                        "Vortex / Gewehr"
-"weapon_group_8"                        "Hagar / Seeker"
-"weapon_group_9"                        "Devastator / Fireball"
-"weapon_group_0"                        "Port-O-Launch / Enterhaken"
-""                                      ""
-""                                      "Anzeige"
-"+zoom"                                 "Vergrößern (festhalten)"
-"togglezoom"                            "Vergrößern (umschalten)"
-"+showscores"                           "Tabelle anzeigen"
-"screenshot"                            "Bildschirmfoto"
-"+hud_panel_radar_maximized"            "Radar maximieren"
-"cl_cmd hud minigame"                   "Minispiel-Menu an- und ausschalten"
-""                                      ""
-""                                      "Kommunikation"
-"messagemode"                           "Nachricht an alle"
-"messagemode2"                          "Nachricht ans Team"
-"+con_chat_maximize"                    "Chat-Historie zeigen"
-"vyes"                                  "Abstimmung: JA"
-"vno"                                   "Abstimmung: Nein"
-"ready"                                 "Bereitschaft signalisieren"
-""                                      ""
-""                                      "Client"
-"+show_info"                            "Serverinfo anzeigen"
-"toggleconsole"                         "Konsole öffnen"
-"disconnect"                            "Verbindung trennen"
-"menu_showquitdialog"                                  "Beenden"
-""                                      ""
-""                                      "Teamplay"
-"messagemode2"                          "Nachricht ans Team"
-"team_auto"                             "Team automatisch wählen"
-"menu_showteamselect"                   "Team auswählen"
-"menu_showsandboxtools"                 "Sandkasten menu"
-"spec"                                  "Zuschauen"
-"dropweapon"                            "Waffe wegwerfen"
-"+use"                                  "Schlüssel oder Flagge wegwerfen"
-"+button8"                              "Objekt ziehen"
-"toggle chase_active"                   "Schultercamera"
-""                                      ""
-""                                      "Benutzerdefiniert"
-"+userbind 1"                           "$userbind1"
-"+userbind 2"                           "$userbind2"
-"+userbind 3"                           "$userbind3"
-"+userbind 4"                           "$userbind4"
-"+userbind 5"                           "$userbind5"
-"+userbind 6"                           "$userbind6"
-"+userbind 7"                           "$userbind7"
-"+userbind 8"                           "$userbind8"
-"+userbind 9"                           "$userbind9"
-"+userbind 10"                          "$userbind10"
-"+userbind 11"                          "$userbind11"
-"+userbind 12"                          "$userbind12"
-"+userbind 13"                          "$userbind13"
-"+userbind 14"                          "$userbind14"
-"+userbind 15"                          "$userbind15"
-"+userbind 16"                          "$userbind16"
-"+userbind 17"                          "$userbind17"
-"+userbind 18"                          "$userbind18"
-"+userbind 19"                          "$userbind19"
-"+userbind 20"                          "$userbind20"
-"+userbind 21"                          "$userbind21"
-"+userbind 22"                          "$userbind22"
-"+userbind 23"                          "$userbind23"
-"+userbind 24"                          "$userbind24"
-"+userbind 25"                          "$userbind25"
-"+userbind 26"                          "$userbind26"
-"+userbind 27"                          "$userbind27"
-"+userbind 28"                          "$userbind28"
-"+userbind 29"                          "$userbind29"
-"+userbind 30"                          "$userbind30"
-"+userbind 31"                          "$userbind31"
-"+userbind 32"                          "$userbind32"
diff --git a/keybinds.txt.es b/keybinds.txt.es
deleted file mode 100644 (file)
index 79c3124..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-""                                      "Movimiento"
-"+forward"                              "adelante"
-"+back"                                 "atrás"
-"+moveleft"                             "izquierda"
-"+moveright"                            "derecha"
-"+jump"                                 "saltar / nadar"
-"+crouch"                               "agacharse / bajar"
-"+hook"                                 "gancho"
-"+jetpack"                              "jet pack"
-""                                      ""
-""                                      "Ataque"
-"+fire"                                 "ataque primario"
-"+fire2"                                "ataque secundario"
-""                                      ""
-""                                      "Cambio de arma"
-"weapprev"                              "anterior"
-"weapnext"                              "siguiente"
-"weaplast"                              "anteriormente usado"
-"weapbest"                              "mejor"
-"reload"                                "recargar"
-"weapon_group_1"                        "Blaster"
-"weapon_group_2"                        "Shotgun"
-"weapon_group_3"                        "Machine Gun / Arc"
-"weapon_group_4"                        "Mortar / Mine Layer"
-"weapon_group_5"                        "Electro"
-"weapon_group_6"                        "Crylink / HLAC"
-"weapon_group_7"                        "Vortex / Rifle"
-"weapon_group_8"                        "Hagar / Seeker"
-"weapon_group_9"                        "Devastator / Fireball"
-"weapon_group_0"                        "Port-O-Launch / Hook"
-""                                      ""
-""                                      "Vista"
-"+zoom"                                 "mantener zoom"
-"togglezoom"                            "cambiar zoom"
-"+showscores"                           "mostrar puntaje"
-"screenshot"                            "captura de pantalla"
-"+hud_panel_radar_maximized"            "maximize radar (FIXME)"
-"cl_cmd hud minigame"                   "toggle minigame menu (FIXME)"
-""                                      ""
-""                                      "Communicación"
-"messagemode"                           "chat público"
-"messagemode2"                          "chat de equipo"
-"+con_chat_maximize"                    "mostrar historial del chat"
-"vyes"                                  "votar SI"
-"vno"                                   "votar NO"
-"ready"                                 "preparado"
-""                                      ""
-""                                      "Cliente"
-"+show_info"                            "información del servidor"
-"toggleconsole"                         "entrar en la consola"
-"disconnect"                            "desconectar"
-"menu_showquitdialog"                   "salir"
-""                                      ""
-""                                      "Juego en equipo"
-"messagemode2"                          "chat de equipo"
-"team_auto"                             "unirse al equipo automáticamente"
-"menu_showteamselect"                   "menu de equipo"
-"menu_showsandboxtools"                 "sandbox menu (FIXME)"
-"spec"                                  "entrar al modo espectador"
-"dropweapon"                            "soltar arma"
-"+use"                                  "soltar llave / soltar bandera"
-"+button8"                              "drag object (FIXME)"
-"toggle chase_active"                   "3rd person view (FIXME)"
-""                                      ""
-""                                      "Definido por el usuario"
-"+userbind 1"                           "$userbind1"
-"+userbind 2"                           "$userbind2"
-"+userbind 3"                           "$userbind3"
-"+userbind 4"                           "$userbind4"
-"+userbind 5"                           "$userbind5"
-"+userbind 6"                           "$userbind6"
-"+userbind 7"                           "$userbind7"
-"+userbind 8"                           "$userbind8"
-"+userbind 9"                           "$userbind9"
-"+userbind 10"                          "$userbind10"
-"+userbind 11"                          "$userbind11"
-"+userbind 12"                          "$userbind12"
-"+userbind 13"                          "$userbind13"
-"+userbind 14"                          "$userbind14"
-"+userbind 15"                          "$userbind15"
-"+userbind 16"                          "$userbind16"
-"+userbind 17"                          "$userbind17"
-"+userbind 18"                          "$userbind18"
-"+userbind 19"                          "$userbind19"
-"+userbind 20"                          "$userbind20"
-"+userbind 21"                          "$userbind21"
-"+userbind 22"                          "$userbind22"
-"+userbind 23"                          "$userbind23"
-"+userbind 24"                          "$userbind24"
-"+userbind 25"                          "$userbind25"
-"+userbind 26"                          "$userbind26"
-"+userbind 27"                          "$userbind27"
-"+userbind 28"                          "$userbind28"
-"+userbind 29"                          "$userbind29"
-"+userbind 30"                          "$userbind30"
-"+userbind 31"                          "$userbind31"
-"+userbind 32"                          "$userbind32"
diff --git a/keybinds.txt.fr b/keybinds.txt.fr
deleted file mode 100644 (file)
index 2f0ae6a..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-""                                      "Mouvement"
-"+forward"                              "avancer"
-"+back"                                 "reculer"
-"+moveleft"                             "gauche"
-"+moveright"                            "droite"
-"+jump"                                 "sauter / nager"
-"+crouch"                               "s'accroupir / couler"
-"+hook"                                 "grappin"
-"+jetpack"                              "jet pack"
-""                                      ""
-""                                      "Attaque"
-"+fire"                                 "tir primaire"
-"+fire2"                                "tir secondaire"
-""                                      ""
-""                                      "Changement d'armes"
-"weapprev"                              "arme précédente"
-"weapnext"                              "arme suivante"
-"weaplast"                              "dernière utilisée"
-"weapbest"                              "meilleure arme"
-"reload"                                "recharger"
-"weapon_group_1"                        "Blaster"
-"weapon_group_2"                        "Fusil"
-"weapon_group_3"                        "Mitrailleuse / Arc"
-"weapon_group_4"                        "Mortier / Poseur de Mines"
-"weapon_group_5"                        "Electro"
-"weapon_group_6"                        "Crylink / HLAC"
-"weapon_group_7"                        "Vortex / Fusil de précision"
-"weapon_group_8"                        "Hagar / Seeker"
-"weapon_group_9"                        "Devastator / Fireball"
-"weapon_group_0"                        "Port-O-Launch / Grappin"
-""                                      ""
-""                                      "Vue"
-"+zoom"                                 "zoom"
-"togglezoom"                            "zoom 2 clics"
-"+showscores"                           "afficher les scores"
-"screenshot"                            "capture d'écran"
-"+hud_panel_radar_maximized"            "agrandir le radar"
-"cl_cmd hud minigame"                   "activer/désactiver le menu de mini-jeu"
-""                                      ""
-""                                      "Communication"
-"messagemode"                           "tchat public"
-"messagemode2"                          "tchat d'équipe"
-"+con_chat_maximize"                    "historique du tchat"
-"vyes"                                  "voter OUI"
-"vno"                                   "voter NON"
-"ready"                                 "prêt"
-""                                      ""
-""                                      "Client"
-"+show_info"                            "information serveur"
-"toggleconsole"                         "ouvrir la console"
-"disconnect"                            "se déconnecter"
-"menu_showquitdialog"                   "quitter"
-""                                      ""
-""                                      "Équipe"
-"messagemode2"                          "tchat d'équipe"
-"team_auto"                             "auto-joindre une équipe"
-"menu_showteamselect"                   "sélection d'équipe"
-"menu_showsandboxtools"                 "menu bac à sable"
-"spec"                                  "mode spectateur"
-"dropweapon"                            "lâcher l'arme"
-"+use"                                  "lâcher la clef / drapeau"
-"+button8"                              "traîner l'objet"
-"toggle chase_active"                   "vue à la 3ème personne"
-""                                      ""
-""                                      "Raccourcis personnalisés"
-"+userbind 1"                           "$userbind1"
-"+userbind 2"                           "$userbind2"
-"+userbind 3"                           "$userbind3"
-"+userbind 4"                           "$userbind4"
-"+userbind 5"                           "$userbind5"
-"+userbind 6"                           "$userbind6"
-"+userbind 7"                           "$userbind7"
-"+userbind 8"                           "$userbind8"
-"+userbind 9"                           "$userbind9"
-"+userbind 10"                          "$userbind10"
-"+userbind 11"                          "$userbind11"
-"+userbind 12"                          "$userbind12"
-"+userbind 13"                          "$userbind13"
-"+userbind 14"                          "$userbind14"
-"+userbind 15"                          "$userbind15"
-"+userbind 16"                          "$userbind16"
-"+userbind 17"                          "$userbind17"
-"+userbind 18"                          "$userbind18"
-"+userbind 19"                          "$userbind19"
-"+userbind 20"                          "$userbind20"
-"+userbind 21"                          "$userbind21"
-"+userbind 22"                          "$userbind22"
-"+userbind 23"                          "$userbind23"
-"+userbind 24"                          "$userbind24"
-"+userbind 25"                          "$userbind25"
-"+userbind 26"                          "$userbind26"
-"+userbind 27"                          "$userbind27"
-"+userbind 28"                          "$userbind28"
-"+userbind 29"                          "$userbind29"
-"+userbind 30"                          "$userbind30"
-"+userbind 31"                          "$userbind31"
-"+userbind 32"                          "$userbind32"
diff --git a/keybinds.txt.hu b/keybinds.txt.hu
deleted file mode 100644 (file)
index e22299a..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-""                                      "Mozgás"
-"+forward"                              "előre"
-"+back"                                 "hátra"
-"+moveleft"                             "balra lépés"
-"+moveright"                            "jobbra lépés"
-"+jump"                                 "ugrás / úszás"
-"+crouch"                               "guggolás / süllyedés"
-"+hook"                                 "kézi kampó"
-"+jetpack"                              "rakéta puttony"
-""                                      ""
-""                                      "Tüzelés"
-"+fire"                                 "Elsődleges"
-"+fire2"                                "Másodlagos"
-""                                      ""
-""                                      "Fegyverváltás"
-"weapprev"                              "előző"
-"weapnext"                              "következő"
-"weaplast"                              "előzőleg használt"
-"weapbest"                              "legjobb"
-"reload"                                "újratöltés"
-"weapon_group_1"                        "Lézer"
-"weapon_group_2"                        "Vadászpuska"
-"weapon_group_3"                        "Géppuska / Arc"
-"weapon_group_4"                        "Mortar / Aknavető"
-"weapon_group_5"                        "Electro"
-"weapon_group_6"                        "Crylink / HLAC"
-"weapon_group_7"                        "Vortex / Puska"
-"weapon_group_8"                        "Hagar / Seeker"
-"weapon_group_9"                        "Rakétavető / Tűzlabda"
-"weapon_group_0"                        "Port-O-Launch / Kampó"
-""                                      ""
-""                                      "Nézet"
-"+zoom"                                 "nagyítás tartás"
-"togglezoom"                            "nagyítás váltás"
-"+showscores"                           "pontszámok"
-"screenshot"                            "kép mentés"
-"+hud_panel_radar_maximized"            "maximize radar (FIXME)"
-"cl_cmd hud minigame"                   "toggle minigame menu (FIXME)"
-""                                      ""
-""                                      "Kommunikáció"
-"messagemode"                           "nyilvános beszélgetés"
-"messagemode2"                          "csapat beszélgetés"
-"+con_chat_maximize"                    "beszélgetés történet"
-"vyes"                                  "IGEN szavazat"
-"vno"                                   "NEM szavazat"
-"ready"                                 "kész"
-""                                      ""
-""                                      "Kliens"
-"+show_info"                            "kiszolgáló info"
-"toggleconsole"                         "belépés a konzolba"
-"disconnect"                            "lekapcsolodás"
-"menu_showquitdialog"                   "kilépés"
-""                                      ""
-""                                      "Csapatjáték"
-"messagemode2"                          "csapat beszélgetés"
-"team_auto"                             "automatikus csapatválasztás"
-"menu_showteamselect"                   "csapat menü"
-"menu_showsandboxtools"                 "sandbox menu (FIXME)"
-"spec"                                  "néző módba váltás"
-"dropweapon"                            "fegyver eldobás"
-"+use"                                  "zászló eldobás, kiszállás"
-"+button8"                              "drag object"
-"toggle chase_active"                   "3rd person view (FIXME)"
-""                                      ""
-""                                      "Felhasználói hozzárendelések"
-"+userbind 1"                           "$userbind1"
-"+userbind 2"                           "$userbind2"
-"+userbind 3"                           "$userbind3"
-"+userbind 4"                           "$userbind4"
-"+userbind 5"                           "$userbind5"
-"+userbind 6"                           "$userbind6"
-"+userbind 7"                           "$userbind7"
-"+userbind 8"                           "$userbind8"
-"+userbind 9"                           "$userbind9"
-"+userbind 10"                          "$userbind10"
-"+userbind 11"                          "$userbind11"
-"+userbind 12"                          "$userbind12"
-"+userbind 13"                          "$userbind13"
-"+userbind 14"                          "$userbind14"
-"+userbind 15"                          "$userbind15"
-"+userbind 16"                          "$userbind16"
-"+userbind 17"                          "$userbind17"
-"+userbind 18"                          "$userbind18"
-"+userbind 19"                          "$userbind19"
-"+userbind 20"                          "$userbind20"
-"+userbind 21"                          "$userbind21"
-"+userbind 22"                          "$userbind22"
-"+userbind 23"                          "$userbind23"
-"+userbind 24"                          "$userbind24"
-"+userbind 25"                          "$userbind25"
-"+userbind 26"                          "$userbind26"
-"+userbind 27"                          "$userbind27"
-"+userbind 28"                          "$userbind28"
-"+userbind 29"                          "$userbind29"
-"+userbind 30"                          "$userbind30"
-"+userbind 31"                          "$userbind31"
-"+userbind 32"                          "$userbind32"
diff --git a/keybinds.txt.it b/keybinds.txt.it
deleted file mode 100644 (file)
index 069f9df..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-""                                      "Movimento"
-"+forward"                              "avanti"
-"+back"                                 "indietro"
-"+moveleft"                             "a sinistra"
-"+moveright"                            "a destra"
-"+jump"                                 "salta / risalire in acqua"
-"+crouch"                               "abbassarsi / scendere in acqua"
-"+hook"                                 "hook immediato"
-"+jetpack"                              "jet pack"
-""                                      ""
-""                                      "Attacco"
-"+fire"                                 "fuoco primario"
-"+fire2"                                "fuoco secondario"
-""                                      ""
-""                                      "Cambio d'arma"
-"weapprev"                              "precedente"
-"weapnext"                              "successiva"
-"weaplast"                              "ultima usata"
-"weapbest"                              "migliore"
-"reload"                                "ricarica"
-"weapon_group_1"                        "Blaster"
-"weapon_group_2"                        "Shotgun"
-"weapon_group_3"                        "Machine Gun / Arc"
-"weapon_group_4"                        "Mortar / Mine Layer"
-"weapon_group_5"                        "Electro"
-"weapon_group_6"                        "Crylink / HLAC"
-"weapon_group_7"                        "Vortex / Rifle"
-"weapon_group_8"                        "Hagar / Seeker"
-"weapon_group_9"                        "Devastator / Fireball"
-"weapon_group_0"                        "Port-O-Launch / Hook"
-""                                      ""
-""                                      "Vista"
-"+zoom"                                 "tieni zoom"
-"togglezoom"                            "attiva/disattiva zoom"
-"+showscores"                           "mostra punteggi"
-"screenshot"                            "screenshot"
-"+hud_panel_radar_maximized"            "massimizza radar"
-"cl_cmd hud minigame"                   "attiva/disattiva il menù dei giochini"
-""                                      ""
-""                                      "Comunicazione"
-"messagemode"                           "chat pubblica"
-"messagemode2"                          "chat di squadra"
-"+con_chat_maximize"                    "mostra storia chat"
-"vyes"                                  "vota SÌ"
-"vno"                                   "vota NO"
-"ready"                                 "pronto"
-""                                      ""
-""                                      "Client"
-"+show_info"                            "info del server"
-"toggleconsole"                         "apri console"
-"disconnect"                            "disconnetti"
-"menu_showquitdialog"                   "esci"
-""                                      ""
-""                                      "Gioco a squadre"
-"messagemode2"                          "chat di squadra"
-"team_auto"                             "auto-scegli squadra"
-"menu_showteamselect"                   "menu scelta squadra"
-"menu_showsandboxtools"                 "menu sandbox"
-"spec"                                  "modalità spettatore"
-"dropweapon"                            "abbandona arma"
-"+use"                                  "abbandona chiave / bandiera"
-"+button8"                              "trascina oggetto"
-"toggle chase_active"                   "vista terza persona"
-""                                      ""
-""                                      "Definiti dall'utente"
-"+userbind 1"                           "$userbind1"
-"+userbind 2"                           "$userbind2"
-"+userbind 3"                           "$userbind3"
-"+userbind 4"                           "$userbind4"
-"+userbind 5"                           "$userbind5"
-"+userbind 6"                           "$userbind6"
-"+userbind 7"                           "$userbind7"
-"+userbind 8"                           "$userbind8"
-"+userbind 9"                           "$userbind9"
-"+userbind 10"                          "$userbind10"
-"+userbind 11"                          "$userbind11"
-"+userbind 12"                          "$userbind12"
-"+userbind 13"                          "$userbind13"
-"+userbind 14"                          "$userbind14"
-"+userbind 15"                          "$userbind15"
-"+userbind 16"                          "$userbind16"
-"+userbind 17"                          "$userbind17"
-"+userbind 18"                          "$userbind18"
-"+userbind 19"                          "$userbind19"
-"+userbind 20"                          "$userbind20"
-"+userbind 21"                          "$userbind21"
-"+userbind 22"                          "$userbind22"
-"+userbind 23"                          "$userbind23"
-"+userbind 24"                          "$userbind24"
-"+userbind 25"                          "$userbind25"
-"+userbind 26"                          "$userbind26"
-"+userbind 27"                          "$userbind27"
-"+userbind 28"                          "$userbind28"
-"+userbind 29"                          "$userbind29"
-"+userbind 30"                          "$userbind30"
-"+userbind 31"                          "$userbind31"
-"+userbind 32"                          "$userbind32"
diff --git a/keybinds.txt.ru b/keybinds.txt.ru
deleted file mode 100644 (file)
index 7be181d..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-""                                      "Движение"
-"+forward"                              "вперёд"
-"+back"                                 "назад"
-"+moveleft"                             "влево"
-"+moveright"                            "вправо"
-"+jump"                                 "прыжок / плыть"
-"+crouch"                               "пригнуться / погрузиться"
-"+hook"                                 "крюк"
-"+jetpack"                              "реактивный ранец"
-""                                      ""
-""                                      "Нападение"
-"+fire"                                 "основной огонь"
-"+fire2"                                "дополнительный огонь"
-""                                      ""
-""                                      "Переключение оружия"
-"weapprev"                              "предыдущее"
-"weapnext"                              "следующее"
-"weaplast"                              "ранее использованное"
-"weapbest"                              "лучшее"
-"reload"                                "перезарядить"
-"weapon_group_1"                        "Blaster"
-"weapon_group_2"                        "Shotgun"
-"weapon_group_3"                        "Machine Gun / Arc"
-"weapon_group_4"                        "Mortar / Mine Layer"
-"weapon_group_5"                        "Electro"
-"weapon_group_6"                        "Crylink / HLAC"
-"weapon_group_7"                        "Vortex / Rifle"
-"weapon_group_8"                        "Hagar / Seeker"
-"weapon_group_9"                        "Rocket Launcher / Fireball"
-"weapon_group_0"                        "Port-O-Launch / Hook"
-""                                      ""
-""                                      "Вид"
-"+zoom"                                 "увеличение"
-"togglezoom"                            "переключить увеличение"
-"+showscores"                           "показать очки"
-"screenshot"                            "снимок экрана"
-"+hud_panel_radar_maximized"            "maximize radar (FIXME)"
-"cl_cmd hud minigame"                   "toggle minigame menu (FIXME)"
-""                                      ""
-""                                      "Общение"
-"messagemode"                           "общий чат"
-"messagemode2"                          "чат команды"
-"+con_chat_maximize"                    "показать историю чата"
-"vyes"                                  "голосовать ДА"
-"vno"                                   "голосовать НЕТ"
-"ready"                                 "готовность"
-""                                      ""
-""                                      "Клиент"
-"+show_info"                            "сведения о сервере"
-"toggleconsole"                         "открыть консоль"
-"disconnect"                            "отключиться"
-"menu_showquitdialog"                   "выйти"
-""                                      ""
-""                                      "Командная игра"
-"messagemode2"                          "чат команды"
-"team_auto"                             "авто-выбор команды"
-"menu_showteamselect"                   "меню команды"
-"menu_showsandboxtools"                 "sandbox menu (FIXME)"
-"spec"                                  "стать наблюдателем"
-"dropweapon"                            "бросить оружие"
-"+use"                                  "бросить ключ или флаг"
-"+button8"                              "drag object"
-"toggle chase_active"                   "3rd person view (FIXME)"
-""                                      ""
-""                                      "Определенно пользователем"
-"+userbind 1"                           "$userbind1"
-"+userbind 2"                           "$userbind2"
-"+userbind 3"                           "$userbind3"
-"+userbind 4"                           "$userbind4"
-"+userbind 5"                           "$userbind5"
-"+userbind 6"                           "$userbind6"
-"+userbind 7"                           "$userbind7"
-"+userbind 8"                           "$userbind8"
-"+userbind 9"                           "$userbind9"
-"+userbind 10"                          "$userbind10"
-"+userbind 11"                          "$userbind11"
-"+userbind 12"                          "$userbind12"
-"+userbind 13"                          "$userbind13"
-"+userbind 14"                          "$userbind14"
-"+userbind 15"                          "$userbind15"
-"+userbind 16"                          "$userbind16"
-"+userbind 17"                          "$userbind17"
-"+userbind 18"                          "$userbind18"
-"+userbind 19"                          "$userbind19"
-"+userbind 20"                          "$userbind20"
-"+userbind 21"                          "$userbind21"
-"+userbind 22"                          "$userbind22"
-"+userbind 23"                          "$userbind23"
-"+userbind 24"                          "$userbind24"
-"+userbind 25"                          "$userbind25"
-"+userbind 26"                          "$userbind26"
-"+userbind 27"                          "$userbind27"
-"+userbind 28"                          "$userbind28"
-"+userbind 29"                          "$userbind29"
-"+userbind 30"                          "$userbind30"
-"+userbind 31"                          "$userbind31"
-"+userbind 32"                          "$userbind32"
diff --git a/keybinds.txt.uk b/keybinds.txt.uk
deleted file mode 100644 (file)
index 07812de..0000000
+++ /dev/null
@@ -1,96 +0,0 @@
-""                                      "Рух"
-"+forward"                              "вперед"
-"+back"                                 "назад"
-"+moveleft"                             "крок ліворуч"
-"+moveright"                            "крок праворуч"
-"+jump"                                 "стрибок / плисти нагору"
-"+crouch"                               "присідання / занурення"
-"+hook"                                 "гак"
-"+jetpack"                              "реактивний ранець"
-""                                      ""
-""                                      "Бій"
-"+fire"                                 "основний вогонь"
-"+fire2"                                "альтернативний вогонь"
-""                                      ""
-""                                      "Вибір зброї"
-"weapprev"                              "попередня"
-"weapnext"                              "наступна"
-"weaplast"                              "використана раніше"
-"weapbest"                              "найкраща"
-"reload"                                "перезарядити"
-"weapon_group_1"                        "Лазер"
-"weapon_group_2"                        "Рушниця"
-"weapon_group_3"                        "Автомат / Arc"
-"weapon_group_4"                        "Мортира / Міноукладчик"
-"weapon_group_5"                        "Електро"
-"weapon_group_6"                        "Крайлінк / ВЛШГ"
-"weapon_group_7"                        "Некс / Гвинтівка"
-"weapon_group_8"                        "Хейгар / Шукач"
-"weapon_group_9"                        "Ракетна гармата / Метеор"
-"weapon_group_0"                        "Портал-О-Пуск / Гак"
-""                                      ""
-""                                      "Вид"
-"+zoom"                                 "утримувати для зуму"
-"togglezoom"                            "увімк / вимк зум"
-"+showscores"                           "показати рахунок"
-"screenshot"                            "скриншот"
-"+hud_panel_radar_maximized"            "maximize radar (FIXME)"
-""                                      ""
-""                                      "Спілкування"
-"messagemode"                           "публічний чат"
-"messagemode2"                          "командний чат"
-"+con_chat_maximize"                    "показувати історію чату"
-"vyes"                                  "проголосувати ТАК"
-"vno"                                   "проголосувати НІ"
-"ready"                                 "готовий"
-""                                      ""
-""                                      "Клієнт"
-"+show_info"                            "відомості про сервер"
-"toggleconsole"                         "увійти в консоль"
-"disconnect"                            "роз'єднатися"
-"menu_showquitdialog"                   "вийти"
-""                                      ""
-""                                      "Командна гра"
-"messagemode2"                          "командний чат"
-"team_auto"                             "автовибір команди"
-"menu_showteamselect"                   "командне меню"
-"menu_showsandboxtools"                 "sandbox menu (FIXME)"
-"spec"                                  "увійти в режим спостерігача"
-"dropweapon"                            "викинути зброю"
-"+use"                                  "викинути ключ / прапор"
-"+button8"                              "drag object"
-"toggle chase_active"                   "3rd person view (FIXME)"
-""                                      ""
-""                                      "Визначені користувачем"
-"+userbind 1"                           "$userbind1"
-"+userbind 2"                           "$userbind2"
-"+userbind 3"                           "$userbind3"
-"+userbind 4"                           "$userbind4"
-"+userbind 5"                           "$userbind5"
-"+userbind 6"                           "$userbind6"
-"+userbind 7"                           "$userbind7"
-"+userbind 8"                           "$userbind8"
-"+userbind 9"                           "$userbind9"
-"+userbind 10"                          "$userbind10"
-"+userbind 11"                          "$userbind11"
-"+userbind 12"                          "$userbind12"
-"+userbind 13"                          "$userbind13"
-"+userbind 14"                          "$userbind14"
-"+userbind 15"                          "$userbind15"
-"+userbind 16"                          "$userbind16"
-"+userbind 17"                          "$userbind17"
-"+userbind 18"                          "$userbind18"
-"+userbind 19"                          "$userbind19"
-"+userbind 20"                          "$userbind20"
-"+userbind 21"                          "$userbind21"
-"+userbind 22"                          "$userbind22"
-"+userbind 23"                          "$userbind23"
-"+userbind 24"                          "$userbind24"
-"+userbind 25"                          "$userbind25"
-"+userbind 26"                          "$userbind26"
-"+userbind 27"                          "$userbind27"
-"+userbind 28"                          "$userbind28"
-"+userbind 29"                          "$userbind29"
-"+userbind 30"                          "$userbind30"
-"+userbind 31"                          "$userbind31"
-"+userbind 32"                          "$userbind32"
index a510a757c9cec36bafbff07d26476a12891fc1d8..ebf4a5da48d64479b926fd7d8354e541fb28bfe8 100644 (file)
@@ -45,24 +45,105 @@ int Xonotic_KeyBinds_Count = -1;
 
 void Xonotic_KeyBinds_Read()
 {
-       int fh;
-       string s;
-
        Xonotic_KeyBinds_Count = 0;
-       fh = fopen(language_filename("keybinds.txt"), FILE_READ);
-       if(fh < 0)
-               return;
-       while((s = fgets(fh)))
+
+       #define KEYBIND_DEF(func, desc) do { \
+               if((Xonotic_KeyBinds_Count < MAX_KEYBINDS)) { \
+                       Xonotic_KeyBinds_Functions[Xonotic_KeyBinds_Count] = strzone(func); \
+                       Xonotic_KeyBinds_Descriptions[Xonotic_KeyBinds_Count] = strzone(desc); \
+                       ++Xonotic_KeyBinds_Count; \
+               } \
+       } while(0)
+
+       KEYBIND_DEF(""                                      , _("Moving"));
+       KEYBIND_DEF("+forward"                              , _("forward"));
+       KEYBIND_DEF("+back"                                 , _("backpedal"));
+       KEYBIND_DEF("+moveleft"                             , _("strafe left"));
+       KEYBIND_DEF("+moveright"                            , _("strafe right"));
+       KEYBIND_DEF("+jump"                                 , _("jump / swim"));
+       KEYBIND_DEF("+crouch"                               , _("crouch / sink"));
+       KEYBIND_DEF("+hook"                                 , _("off-hand hook"));
+       KEYBIND_DEF("+jetpack"                              , _("jet pack"));
+       KEYBIND_DEF(""                                      , "");
+       KEYBIND_DEF(""                                      , _("Attacking"));
+       KEYBIND_DEF("+fire"                                 , _("primary fire"));
+       KEYBIND_DEF("+fire2"                                , _("secondary fire"));
+       KEYBIND_DEF(""                                      , "");
+       KEYBIND_DEF(""                                      , _("Weapon switching"));
+       KEYBIND_DEF("weapprev"                              , _("previous"));
+       KEYBIND_DEF("weapnext"                              , _("next"));
+       KEYBIND_DEF("weaplast"                              , _("previously used"));
+       KEYBIND_DEF("weapbest"                              , _("best"));
+       KEYBIND_DEF("reload"                                , _("reload"));
+
+       int i;
+
+       #define ADD_TO_W_LIST(pred) do { \
+               for(i = WEP_FIRST; i <= WEP_LAST; ++i) \
+               { \
+                       wep = get_weaponinfo(i); \
+                       if(wep.impulse == imp && (pred)) \
+                               w_list = strcat(w_list, WEP_NAME(i), " / "); \
+               } \
+       } while(0)
+
+       int imp;
+       entity wep;
+       string w_list = "";
+       for(imp = 1; imp <= 9; ++imp)
        {
-               if(tokenize_console(s) != 2)
-                       continue;
-               Xonotic_KeyBinds_Functions[Xonotic_KeyBinds_Count] = strzone(argv(0));
-               Xonotic_KeyBinds_Descriptions[Xonotic_KeyBinds_Count] = strzone(argv(1));
-               ++Xonotic_KeyBinds_Count;
-               if(Xonotic_KeyBinds_Count >= MAX_KEYBINDS)
+               ADD_TO_W_LIST(!(wep.flags & WEP_FLAG_MUTATORBLOCKED) && !(wep.flags & WEP_FLAG_SUPERWEAPON));
+               ADD_TO_W_LIST(wep.flags & WEP_FLAG_SUPERWEAPON);
+               ADD_TO_W_LIST(wep.flags & WEP_FLAG_MUTATORBLOCKED);
+               if(w_list)
+                       KEYBIND_DEF(strcat("weapon_group_", itos(imp)), substring(w_list, 0, -4));
+               w_list = "";
+               if(imp == 0)
                        break;
+               if(imp == 9)
+                       imp = -1;
        }
-       fclose(fh);
+       #undef ADD_TO_W_LIST
+
+       KEYBIND_DEF(""                                      , "");
+       KEYBIND_DEF(""                                      , _("View"));
+       KEYBIND_DEF("+zoom"                                 , _("hold zoom"));
+       KEYBIND_DEF("togglezoom"                            , _("toggle zoom"));
+       KEYBIND_DEF("+showscores"                           , _("show scores"));
+       KEYBIND_DEF("screenshot"                            , _("screen shot"));
+       KEYBIND_DEF("+hud_panel_radar_maximized"            , _("maximize radar"));
+       KEYBIND_DEF(""                                      , "");
+       KEYBIND_DEF(""                                      , _("Communicate"));
+       KEYBIND_DEF("messagemode"                           , _("public chat"));
+       KEYBIND_DEF("messagemode2"                          , _("team chat"));
+       KEYBIND_DEF("+con_chat_maximize"                    , _("show chat history"));
+       KEYBIND_DEF("vyes"                                  , _("vote YES"));
+       KEYBIND_DEF("vno"                                   , _("vote NO"));
+       KEYBIND_DEF("ready"                                 , _("ready"));
+       KEYBIND_DEF(""                                      , "");
+       KEYBIND_DEF(""                                      , _("Client"));
+       KEYBIND_DEF("+show_info"                            , _("server info"));
+       KEYBIND_DEF("toggleconsole"                         , _("enter console"));
+       KEYBIND_DEF("disconnect"                            , _("disconnect"));
+       KEYBIND_DEF("menu_showquitdialog"                   , _("quit"));
+       KEYBIND_DEF(""                                      , "");
+       KEYBIND_DEF(""                                      , _("Teamplay"));
+       KEYBIND_DEF("messagemode2"                          , _("team chat"));
+       KEYBIND_DEF("team_auto"                             , _("auto-join team"));
+       KEYBIND_DEF("menu_showteamselect"                   , _("team menu"));
+       KEYBIND_DEF("menu_showsandboxtools"                 , _("sandbox menu"));
+       KEYBIND_DEF("spec"                                  , _("enter spectator mode"));
+       KEYBIND_DEF("dropweapon"                            , _("drop weapon"));
+       KEYBIND_DEF("+use"                                  , _("drop key / drop flag"));
+       KEYBIND_DEF("+button8"                              , _("drag object"));
+       KEYBIND_DEF("toggle chase_active"                   , _("3rd person view"));
+       KEYBIND_DEF(""                                      , "");
+       KEYBIND_DEF(""                                      , _("User defined"));
+
+       for(i = 1; i <= 32; ++i)
+               KEYBIND_DEF(strcat("+userbind ", itos(i)), strcat("$", _("userbind"), itos(i)));
+
+       #undef KEYBIND_DEF
 }
 
 entity makeXonoticKeyBinder()