diff --git a/config/lang_en.cfg b/config/lang_en.cfg new file mode 100644 index 00000000..621d783d --- /dev/null +++ b/config/lang_en.cfg @@ -0,0 +1,77 @@ +//main menu, when the game is first opened +uistr_main_0 = "Server Browser" +uistr_main_1 = "Map Browser" +uistr_main_2 = "Player Setup" +uistr_main_3 = "Options" +uistr_main_4 = "Credits" +uistr_main_5 = "Quit" + +//main menu shown when escape is pressed during a game +uistr_main_ingame_0 = "Play" +uistr_main_ingame_1 = "Spectate" +//the team names have to be included in translation because the order +//of the team names and the words around them could differ depending +//on language +uistr_main_ingame_2 = "Join ^f3Rojo" +uistr_main_ingame_3 = "Join ^f1Azul" +uistr_main_ingame_4 = "Master" +uistr_main_ingame_5 = "Bots" +uistr_main_ingame_6 = "Disconnect" + +//player setup +uistr_player_setup_0 = "Name" +uistr_player_setup_1 = "Solo" +uistr_player_setup_2 = "Player Setup" + +//credits +uistr_credits_0 = "Imprimis Game" +uistr_credits_1 = "Libprimis Engine" +uistr_credits_2 = "Tesseract & Cube" +uistr_credits_3 = "Imprimis Contributors" + +//master +uistr_master_0 = "Relinquish Master" +uistr_master_1 = "Claim Master" +uistr_master_2 = "open" +uistr_master_3 = "veto" +uistr_master_4 = "locked" +uistr_master_5 = "private" +uistr_master_6 = "Master" + +//client lists - manage clients in a solo or multiplayer game +uistr_clientlistsolo_0 = "Kick" +uistr_clientlistsolo_1 = "Spec" +uistr_clientlistsolo_2 = "Admin" +uistr_clientlistsolo_3 = "Auth" +uistr_clientlistsolo_4 = "Master" + +uistr_clientlistteam_0 = "Kick" +uistr_clientlistteam_1 = "Spec" +uistr_clientlistteam_2 = "Team" +uistr_clientlistteam_3 = "Admin" +uistr_clientlistteam_4 = "Auth" +uistr_clientlistteam_5 = "Master" + +//bots +uistr_bots_0 = "Bots" +uistr_bots_1 = "Skill Level" +uistr_bots_2 = "Add Bot" +uistr_bots_3 = "Add" +uistr_bots_4 = "Delete Bot" +uistr_bots_5 = "Clear Bots" + +//changes menu (confirms that user wants to apply changes) +uistr_changes_0 = "Apply changes for:" +uistr_changes_1 = "Yes" +uistr_changes_2 = "No" + +//error message in copymapcfg +//this is all one sentence +uistr_copymapcfg_0 = "Map config" +uistr_copymapcfg_1 = "does not exist!" + +//cmc_confirm (copy map config confirmation dialog) +UItitle [uitext 0.6] 0 0.03 +uistr_cmc_confirm_0 = "Copy map config:" +uistr_cmc_confirm_1 = "Proceed" +uistr_cmc_confirm_2 = "Cancel" diff --git a/config/ui.cfg b/config/ui.cfg index 7dc37613..8039260b 100644 --- a/config/ui.cfg +++ b/config/ui.cfg @@ -9,6 +9,7 @@ exec "config/ui/fkey.cfg" // F# Key Menus exec "config/ui/serverbrowser.cfg" // Server Browser exec "config/ui/options.cfg" // Options Menu exec "config/ui/class.cfg" // Class Menu +exec "config/lang_en.cfg" // Language Strings reui = [ exec "config/ui.cfg" @@ -25,16 +26,16 @@ UImenu "main" [ uieschide (! $mainmenu) uihlist 0 [ uivlist 0 [ - UIbutton "hold2" [uitext "Server Browser" 0.65] 0.2 0.04 [hideui "main" ; showui "server_browser"] - UIbutton "hold2" [uitext "Map Browser" 0.65] 0.2 0.04 [hideui "main" ; showui "map_browser"] + UIbutton "hold2" [uitext $uistr_main_0 0.65] 0.2 0.04 [hideui "main" ; showui "server_browser"] + UIbutton "hold2" [uitext $uistr_main_1 0.65] 0.2 0.04 [hideui "main" ; showui "map_browser"] uifill 0.2 0.02 [UIbar 1] - UIbutton "hold2" [uitext "Player Setup" 0.65] 0.2 0.04 [hideui "main" ; showui "player_setup"] - UIbutton "hold2" [uitext "Options" 0.65] 0.2 0.04 [hideui "main" ; showui "options"] + UIbutton "hold2" [uitext $uistr_main_2 0.65] 0.2 0.04 [hideui "main" ; showui "player_setup"] + UIbutton "hold2" [uitext $uistr_main_3 0.65] 0.2 0.04 [hideui "main" ; showui "options"] if $mainmenu [ - UIbutton "hold2" [uitext "Credits" 0.65] 0.2 0.04 [hideui "main" ; showui "credits"] + UIbutton "hold2" [uitext $uistr_main_4 0.65] 0.2 0.04 [hideui "main" ; showui "credits"] ] uifill 0.2 0.02 [UIbar 1] - UIbutton "hold2" [uitext "Quit" 0.65] 0.2 0.04 [quit] + UIbutton "hold2" [uitext $uistr_main_5 0.65] 0.2 0.04 [quit] ] if (! $mainmenu) [ uifill 0.02 0.24 [UIbar 0 1] @@ -42,34 +43,34 @@ UImenu "main" [ if (isspectator $getclientnum) [ if $scoreboardmultiplayer [ if (ismaster $getclientnum) [ - UIbutton "hold2" [uitext "Play" 0.65] 0.2 0.04 [hideui "main" ; spectator 0] + UIbutton "hold2" [uitext $uistr_main_ingame_0 0.65] 0.2 0.04 [hideui "main" ; spectator 0] ] [ if (> $getmastermode 1) [ - uifill 0 0.04 [uitext "^f4Play" 0.65] + uifill 0 0.04 [uitext (concatword "^f4" $uistr_main_ingame_0) 0.65] ] [ - UIbutton "hold2" [uitext "Play" 0.65] 0.2 0.04 [hideui "main" ; spectator 0] + UIbutton "hold2" [uitext $uistr_main_ingame_0 0.65] 0.2 0.04 [hideui "main" ; spectator 0] ] ] ] [ - UIbutton "hold2" [uitext "Play" 0.65] 0.2 0.04 [hideui "main" ; spectator 0] + UIbutton "hold2" [uitext $uistr_main_ingame_0 0.65] 0.2 0.04 [hideui "main" ; spectator 0] ] ] [ - UIbutton "hold2" [uitext "Spectate" 0.65] 0.2 0.04 [hideui "main" ; spectator 1] + UIbutton "hold2" [uitext $uistr_main_ingame_1 0.65] 0.2 0.04 [hideui "main" ; spectator 1] ] case $getteam [ 0] [uifill 0 0.04] [ - 1] [UIbutton "hold2" [uitext "Join ^f3Rojo" 0.65] 0.2 0.04 [team rojo]] [ - 2] [UIbutton "hold2" [uitext "Join ^f1Azul" 0.65] 0.2 0.04 [team azul]] + 1] [UIbutton "hold2" [uitext $uistr_main_ingame_2 0.65] 0.2 0.04 [team rojo]] [ + 2] [UIbutton "hold2" [uitext $uistr_main_ingame_3 0.65] 0.2 0.04 [team azul]] uifill 0.2 0.02 [UIbar 1] if $scoreboardmultiplayer [ - UIbutton "hold2" [uitext "Master" 0.65] 0.2 0.04 [hideui "main" ; showui "master"] - UIbutton "hold2" [uitext "Bots" 0.65] 0.2 0.04 [hideui "main" ; showui "bots"] + UIbutton "hold2" [uitext $uistr_main_ingame_4 0.65] 0.2 0.04 [hideui "main" ; showui "master"] + UIbutton "hold2" [uitext $uistr_main_ingame_5 0.65] 0.2 0.04 [hideui "main" ; showui "bots"] ] [ uifill 0 0.04 - UIbutton "hold2" [uitext "Bots" 0.65] 0.2 0.04 [hideui "main" ; showui "bots"] + UIbutton "hold2" [uitext $uistr_main_ingame_5 0.65] 0.2 0.04 [hideui "main" ; showui "bots"] ] uifill 0.2 0.02 [UIbar 1] - UIbutton "hold2" [uitext "Disconnect" 0.65] 0.2 0.04 [disconnect] + UIbutton "hold2" [uitext $uistr_main_ingame_6 0.65] 0.2 0.04 [disconnect] ] ] ] @@ -86,7 +87,7 @@ UImenu "player_setup" [ uivlist 0.01 [ uialign -2 -1 uivlist 0.0037 [ - uitext "Name" 0.7 + uitext $uistr_player_setup_0 0.7 uifield name 15 [] 0.7 [uioutline (uifocus? $c_focus $c_line); uiclamp- 1 1 1 1] ] uihlist 0.01 [ @@ -99,7 +100,7 @@ UImenu "player_setup" [ uitext "^f8Azul" 0.7 ] 2 [ uitext "^f3Rojo" 0.7 - ] () [uitext "Solo" 0.7] + ] () [uitext $uistr_player_setup_1 0.7] uigrid (? (< $t 1) 3 2) 0.005 0.005 [ local color uihover [UI_pteam = $t] @@ -116,7 +117,7 @@ UImenu "player_setup" [ ] ] ] -] [] [] [] "Player Setup" +] [] [] [] $uistr_player_setup_2 /////////////////////////////////////////////////////////////////////////////// // Credits // @@ -158,13 +159,13 @@ UImenu "credits" [ uiclamp 1 1 uialign -2 -1 // Alphabetized by alias - UI_creditlist "Imprimis Game" [ + UI_creditlist $uistr_credits_0 [ [ Alex Foster "@no-lex" ] [ Kamil Zelech "@azkoon" ] [ Maxim Therrien "@acerspyro" ] [ NoNo "@nonoesimposible" ] ] - UI_creditlist "Libprimis Engine" [ + UI_creditlist $uistr_credits_1 [ [ Alex Foster "@no-lex"] [ Kamil Zelech "@azkoon"] [ Maxim Therrien "@acerspyro"] @@ -172,7 +173,7 @@ UImenu "credits" [ [ beam brain "@OlRabiesAbe"] [ NoNo "@nonoesimposible"] ] - UI_creditlist "Tesseract & Cube" [ + UI_creditlist $uistr_credits_0 [ [Lee "eihrul" Salzman] [Benjamin Segovia] [Kevin "Hirato Kirata" Meyer] @@ -195,7 +196,7 @@ UImenu "credits" [ ] UIvscroll 0.02 0.8 2.0 ] -] [] [] [] "Imprimis Contributors" +] [] [] [] $uistr_credits_3 /////////////////////////////////////////////////////////////////////////////// // Master // @@ -207,19 +208,19 @@ UImenu "master" [ uivlist 0 [ uihlist 0.01 [ if (ismaster $getclientnum) [ - UIbutton "" [uitext "Relinquish Master" 0.65] 0.24 0.06 [setmaster 0] + UIbutton "" [uitext $uistr_master_0 0.65] 0.24 0.06 [setmaster 0] ] [ if (issomeoneelsemaster) [ - UIbutton "" [uitext "^f4Claim Master" 0.65] 0.24 0.06 [] + UIbutton "" [uitext (concatword "^f4" $uistr_master_1) 0.65] 0.24 0.06 [] ] [ - UIbutton "" [uitext "Claim Master" 0.65] 0.24 0.06 [setmaster 1] + UIbutton "" [uitext $uistr_master_1 0.65] 0.24 0.06 [setmaster 1] ] ] if (ismaster $getclientnum) [ uigrid 2 0 0 [ looplist2 n i [ - "^f0open ^f4(0)" 0 "^f0veto ^f4(1)" 1 - "^f2locked ^f4(2)" 2 "^f3private ^f4(3)" 3 + (concatword "^f0" $uistr_master_2 " ^f4(0)") 0 (concatword "^f0" $uistr_master_3 " ^f4(1)") 1 + (concatword "^f2" $uistr_master_4 " ^f4(2)") 2 (concatword "^f3" $uistr_master_5 " ^f4(3)") 3 ] [ UIbutton "" [ UIradio [= $getmastermode $i] 0.016 @@ -239,7 +240,7 @@ UImenu "master" [ ] ] ] -] [] [] [] "Master" +] [] [] [] $uistr_master_6 UI_clientlistsolo = [ uihlist 0 [ @@ -262,16 +263,16 @@ UI_clientlistsolo = [ ] [ UIbutton "hold2" [ UItriangle 0xCCCCCC 0.01 0.01 270 - uitext "Kick" 0.57 + uitext $uistr_clientlistsolo_0 0.57 ] 0.077 0.026 [kick @cn] -1 ] UIbutton "hold2" [ UIradio [= (isspectator $cn) 1] 0.016 - uitext "Spec" 0.57 + uitext $uistr_clientlistsolo_1 0.57 ] 0.087 0.026 [spectator @(= (isspectator $cn) 0) @cn] -1 UIbutton "hold2" [ UIradio [= (ismaster $cn) 1] 0.016 - uitext (concatword (? (isadmin $cn) "Admin" (? (isauth $cn) "Auth" "Master"))) 0.57 + uitext (concatword (? (isadmin $cn) $uistr_clientlistsolo_2 (? (isauth $cn) $uistr_clientlistsolo_3 $uistr_clientlistsolo_4))) 0.57 ] 0.105 0.026 [setmaster (? (ismaster $cn) 0 1) @cn] -1 ] [ UI_mlc = (! $UI_mlc) @@ -317,20 +318,20 @@ UI_clientlistteam = [ ] [ UIbutton "hold2" [ UItriangle 0xCCCCCC 0.01 0.01 270 - uitext "Kick" 0.57 + uitext $uistr_clientlistteam_0 0.57 ] 0.077 0.026 [kick @cn] -1 ] UIbutton "hold2" [ UItriangle 0xCCCCCC 0.01 0.01 270 - uitext "Team" 0.57 + uitext $uistr_clientlistteam_1 0.57 ] 0.0875 0.026 [setteam @cn @(? (=s (getclientteam $cn) "1") "2" "1")] -1 UIbutton "hold2" [ UIradio [= (isspectator $cn) 1] 0.016 - uitext "Spec" 0.57 + uitext $uistr_clientlistteam_2 0.57 ] 0.087 0.026 [spectator @(= (isspectator $cn) 0) @cn] -1 UIbutton "hold2" [ UIradio [= (ismaster $cn) 1] 0.016 - uitext (concatword (? (isadmin $cn) "Admin" (? (isauth $cn) "Auth" "Master"))) 0.57 + uitext (concatword (? (isadmin $cn) $uistr_clientlistteam_3 (? (isauth $cn) $uistr_clientlistteam_4 $uistr_clientlistteam_5))) 0.57 ] 0.105 0.026 [setmaster (? (ismaster $cn) 0 1) @cn] -1 ] [ UI_mlc = (! $UI_mlc) @@ -364,20 +365,20 @@ UI_clientlistteam = [ ] [ UIbutton "hold2" [ UItriangle 0 0.01 0.01 270 - uitext "Kick" 0.57 + uitext $uistr_clientlistteam_0 0.57 ] 0.077 0.026 [kick @cn] -1 ] UIbutton "hold2" [ UItriangle 0 0.01 0.01 270 - uitext "Team" 0.57 + uitext $uistr_clientlistteam_1 0.57 ] 0.0875 0.026 [setteam @cn @(? (=s (getclientteam $cn) "1") "2" "1")] -1 UIbutton "hold2" [ UIradio [= (isspectator $cn) 1] 0.016 - uitext "Spec" 0.57 + uitext $uistr_clientlistteam_2 0.57 ] 0.087 0.026 [spectator @(= (isspectator $cn) 0) @cn] -1 UIbutton "hold2" [ UIradio [= (ismaster $cn) 1] 0.016 - uitext (concatword (? (isadmin $cn) "Admin" (? (isauth $cn) "Auth" "Master"))) 0.57 + uitext (concatword (? (isadmin $cn) $uistr_clientlistteam_3 (? (isauth $cn) $uistr_clientlistteam_4 $uistr_clientlistteam_5))) 0.57 ] 0.105 0.026 [setmaster (? (ismaster $cn) 0 1) @cn] -1 ] [ UI_mlc = (! $UI_mlc) @@ -409,10 +410,10 @@ UI_botaddnum = 9 UImenu "bots" [ uifill 0.65 0.27 [ uivlist 0.01 [ - uitext (concatword "Bots: " (numbots)) 0.6 + uitext (concatword $uistr_bots_0 ": " (numbots)) 0.6 uifill 0 0.01 uihlist 0.01 [ - uialign 1 ; uitext "Skill Level" 0.6 ; UIhslider UI_botskill 1 100 1 0.5 0.032 [uitext $UI_botskill 0.6] + uialign 1 ; uitext $uistr_bots_1 0.6 ; UIhslider UI_botskill 1 100 1 0.5 0.032 [uitext $UI_botskill 0.6] ] uihlist 0.01 [ uialign 1 ; uitext "#" 0.6 ; UIhslider UI_botaddnum 2 32 1 0.5 0.032 [uitext $UI_botaddnum 0.6] @@ -420,17 +421,17 @@ UImenu "bots" [ uifill 0 0.015 uihlist 0.05 [ uivlist 0.01 [ - UIbutton "" [uitext "Add Bot" 0.65 ; UI_keyref 1 0.027 0.027 "Ins" "" 0.4] 0.2 0.04 [addbot $UI_botskill] - UIbutton "" [uitext (concatword "Add " $UI_botaddnum " Bots") 0.65] 0.2 0.04 [loop a (UI_botaddnum) [addbot $UI_botskill]] + UIbutton "" [uitext $uistr_bots_2 0.65 ; UI_keyref 1 0.027 0.027 "Ins" "" 0.4] 0.2 0.04 [addbot $UI_botskill] + UIbutton "" [uitext (concat $uistr_bots_3 $UI_botaddnum $uistr_bots_0) 0.65] 0.2 0.04 [loop a (UI_botaddnum) [addbot $UI_botskill]] ] uivlist 0.01 [ - UIbutton "" [uitext "Delete Bot" 0.65 ; UI_keyref 1 0.027 0.027 "Del" "" 0.4] 0.2 0.04 [delbot] - UIbutton "" [uitext "Clear Bots" 0.65] 0.2 0.04 [clearbots] + UIbutton "" [uitext $uistr_bots_4 0.65 ; UI_keyref 1 0.027 0.027 "Del" "" 0.4] 0.2 0.04 [delbot] + UIbutton "" [uitext $uistr_bots_5 0.65] 0.2 0.04 [clearbots] ] ] ] ] -] [] [] [] "Bots" +] [] [] [] $uistr_bots_0 /////////////////////////////////////////////////////////////////////////////// // Display Changes // @@ -438,7 +439,7 @@ UImenu "bots" [ UImenu "changes" [ uivlist 0.02 [ uiclamp 1 1 - UItitle [uitext "Apply changes for:" 0.6] 0 0.03 + UItitle [uitext $uistr_changes_0 0.6] 0 0.03 uiclamp- 1 1 uivlist 0.01 [ loop i $pendingchanges [ @@ -446,8 +447,8 @@ UImenu "changes" [ ] ] uihlist 0 [ - UIbutton "hold2" [uitext "Yes" 0.6] 0.18 0.032 [applychanges] - UIbutton "hold2" [uitext "No" 0.6] 0.18 0.032 [hideui "changes"] + UIbutton "hold2" [uitext $uistr_changes_1 0.6] 0.18 0.032 [applychanges] + UIbutton "hold2" [uitext $uistr_changes_2 0.6] 0.18 0.032 [hideui "changes"] ] ] ] [if (= $pendingchanges 0) [hideui "changes"]] @@ -507,7 +508,7 @@ copymapcfg = [ textsave (concatword "media/map/" $UI_cmc_to ".cfg") ] ] [ - echo (concatword "^f7Map config "^f8^" $UI_cmc_from "^f7^" does not exist!") + echo (concatword "^f7" $uistr_copymapcfg_0 " "^f8^" $UI_cmc_from "^f7^" " $uistr_copymapcfg_1) UI_cmc_from = "" ; UI_cmc_to = "" ] ] @@ -516,7 +517,7 @@ copymapcfg = [ UImenu "cmc_confirm" [ uivlist 0.02 [ uiclamp 1 1 - UItitle [uitext "Copy map config:" 0.6] 0 0.03 + UItitle [uitext $uistr_cmc_confirm_0 0.6] 0 0.03 uiclamp- 1 1 uivlist 0.01 [ uitext (concatword "^f2" $UI_cmc_from) 0.6 @@ -524,16 +525,15 @@ UImenu "cmc_confirm" [ uitext (concatword "^f2" $UI_cmc_to) 0.6 ] uihlist 0 [ - UIbutton "hold2" [uitext "Proceed" 0.6] 0.18 0.032 [ + UIbutton "hold2" [uitext $uistr_cmc_confirm_1 0.6] 0.18 0.032 [ textfocus "#copymapcfg" textload (concatword "media/map/" $UI_cmc_from ".cfg") textsave (concatword "media/map/" $UI_cmc_to ".cfg") hideui "cmc_confirm" ] - UIbutton "hold2" [uitext "Cancel" 0.6] 0.18 0.032 [hideui "cmc_confirm"] + UIbutton "hold2" [uitext $uistr_cmc_confirm_2 0.6] 0.18 0.032 [hideui "cmc_confirm"] ] ] ] [ if (|| [=s $UI_cmc_from ""] [=s $UI_cmc_to ""]) [hideui "cmc_confirm"] ] [UI_cmc_from = "" ; UI_cmc_to = ""] -