Added translations
This commit is contained in:
parent
4b4412f37a
commit
82ebdb4ba9
19
index.php
19
index.php
@ -32,12 +32,25 @@
|
||||
<body>
|
||||
<div class="container">
|
||||
<?php
|
||||
$defaultlanguage = "de";
|
||||
|
||||
if($_GET["lang"] == "de") {
|
||||
echo "Du schaust das auf deutsch an!";
|
||||
# Get language from URL
|
||||
$language = $_GET["lang"];
|
||||
|
||||
#Check if Language Parameter is empty
|
||||
if(isset($language)) {} else {
|
||||
$language = $defaultlanguage;
|
||||
}
|
||||
|
||||
$files = glob("roles/*.php");
|
||||
#Check if Language folder exists
|
||||
if(file_exists('roles/'.$language.'/')) {} else {
|
||||
$language = $defaultlanguage;
|
||||
}
|
||||
|
||||
|
||||
#Get all files from the language folder
|
||||
$files = glob("roles/'.$language.'/*.php");
|
||||
|
||||
sort($files);
|
||||
|
||||
$count = 1;
|
||||
|
69
roles/de/accomplice.php
Normal file
69
roles/de/accomplice.php
Normal file
@ -0,0 +1,69 @@
|
||||
<?php
|
||||
#
|
||||
# COLORS
|
||||
#
|
||||
|
||||
# Text Color
|
||||
$tcolor = "white";
|
||||
# This is the color defined by https://materializecss.com/color.html
|
||||
$color = "red darken-5";
|
||||
|
||||
#
|
||||
# BASEINFO
|
||||
#
|
||||
|
||||
#The Name of the Role
|
||||
$name = "Accomplice (Komplize)";
|
||||
#The Description of the Role, HTML conform :)
|
||||
$description = "Der Komplize kennt seinen Meister nicht... finde und beschütze ihn!";
|
||||
|
||||
#
|
||||
# TABS
|
||||
#
|
||||
|
||||
#How To play
|
||||
$howtoplay = "The Accomplice is a partner of the Traitor. The Accomplice is visible to the Traitor. But the Accomplice doesn't know who is the Traitor. So,you have to find him by yourself. In other words in werewolf game, the Madman.
|
||||
<ul>
|
||||
<li> The Accomplice can't win alone. </li>
|
||||
<li> The Accomplice can't buy Items from the shop(Default). </li>
|
||||
<li> The Accomplice has radar for corpses. </li>
|
||||
<li> The Accomplice can't transfer to Traitors. </li>
|
||||
</ul>
|
||||
";
|
||||
#With what roles does this role play best?
|
||||
$playsbestwith = "
|
||||
<ul>
|
||||
<li>Survivalist</li>
|
||||
<li>Spy</li>
|
||||
<li>Hitman</li>
|
||||
<ul>
|
||||
";
|
||||
#Convars
|
||||
$convars = "# enable or disable this role
|
||||
ttt_accom_enabled [0/1] (default: 1)
|
||||
# the percentage of players that are spawned as this role
|
||||
ttt_accom_pct [0.0..1.0] (default: 0.17)
|
||||
# the limit of players that spawn as this role each round, this overwrites the percentage
|
||||
ttt_accom_max [0..n] (default: 1)
|
||||
# the probability each round of this role being spawned at all
|
||||
ttt_accom_random [0..100] (default: 50)
|
||||
# the amount of players needed for this role to spawn
|
||||
ttt_accom_min_players: [0..n] (default: 8)";
|
||||
|
||||
#
|
||||
# Credits
|
||||
#
|
||||
|
||||
#The Steam URL to your addon
|
||||
$steam = "https://steamcommunity.com/sharedfiles/filedetails/?id=2173367759";
|
||||
#The Source URL to your addon
|
||||
$source = "https://github.com/westooooo/ttt2-role_accom";
|
||||
|
||||
#Creator of the Addon
|
||||
$author = "JustSiro105";
|
||||
#Creatorlink
|
||||
$authorurl = "https://steamcommunity.com/profiles/76561198327487098";
|
||||
|
||||
# Credittext (can use the above variables)
|
||||
$ctext = " Westoon[JPN]: creator of this role addon <br> irokuma105: idear of this role addon";
|
||||
?>
|
56
roles/en/detective.php
Normal file
56
roles/en/detective.php
Normal file
@ -0,0 +1,56 @@
|
||||
<?php
|
||||
|
||||
#
|
||||
# COLORS
|
||||
#
|
||||
|
||||
# Text Color
|
||||
$tcolor = "white";
|
||||
# This is the color defined by https://materializecss.com/color.html
|
||||
$color = "indigo";
|
||||
|
||||
|
||||
|
||||
|
||||
#
|
||||
# BASEINFO
|
||||
#
|
||||
|
||||
#The Name of the Role
|
||||
$name = "Detective";
|
||||
#The Description of the Role, HTML conform :)
|
||||
$description = "Use your gadgets to find the enemies!";
|
||||
|
||||
|
||||
|
||||
|
||||
#
|
||||
# TABS
|
||||
#
|
||||
|
||||
#How To play
|
||||
$howtoplay = "The Detectives job and the purpose of the equipment is to find out who the Traitors are. A Detective is generally a high profile target to Traitors, due to the Detective's ability to use their DNA scanners to scan bodies which yields evidence. Detectives, when searching bodies, can find extra information, like who he last saw. The Detectives can retrieve unspent equipment credits from dead Detectives and Traitors. Also, all Detectives get a credit when a Traitor is confirmed to be dead.";
|
||||
#With what roles does this role play best?
|
||||
$playsbestwith = "Baseroles";
|
||||
#Convars
|
||||
$convars = "TBD";
|
||||
|
||||
|
||||
|
||||
#
|
||||
# Credits
|
||||
#
|
||||
|
||||
#The Steam URL to your addon
|
||||
$steam = "https://steamcommunity.com/sharedfiles/filedetails/?id=2004491494";
|
||||
#The Source URL to your addon
|
||||
$source = "https://github.com/Gensokian/ttt2-role_tra";
|
||||
|
||||
#Creator of the Addon
|
||||
$author = "Garry";
|
||||
#Creatorlink
|
||||
$authorurl = "";
|
||||
|
||||
# Credittext (can use the above variables)
|
||||
$ctext = "This is a base TTT Role";
|
||||
?>
|
55
roles/en/innocent.php
Normal file
55
roles/en/innocent.php
Normal file
@ -0,0 +1,55 @@
|
||||
<?php
|
||||
#
|
||||
# COLORS
|
||||
#
|
||||
|
||||
# Text Color
|
||||
$tcolor = "black";
|
||||
# This is the color defined by https://materializecss.com/color.html
|
||||
$color = "green darken-5";
|
||||
|
||||
|
||||
|
||||
|
||||
#
|
||||
# BASEINFO
|
||||
#
|
||||
|
||||
#The Name of the Role
|
||||
$name = "Innocent";
|
||||
#The Description of the Role, HTML conform :)
|
||||
$description = "(Chuckles) I'm in Danger :)";
|
||||
|
||||
|
||||
|
||||
|
||||
#
|
||||
# TABS
|
||||
#
|
||||
|
||||
#How To play
|
||||
$howtoplay = "As an innocent player, you are the most vulnerable. Innocent players risk being killed by Traitors and being wrongly accused of being a Traitor. They also cannot buy equipment. The player can pick up weapons and use them against would-be killers, but normally, players will be killed, due to the surprise nature of the attack.";
|
||||
#With what roles does this role play best?
|
||||
$playsbestwith = "Traitors :)";
|
||||
#Convars
|
||||
$convars = "TBD";
|
||||
|
||||
|
||||
|
||||
#
|
||||
# Credits
|
||||
#
|
||||
|
||||
#The Steam URL to your addon
|
||||
$steam = "https://steamcommunity.com/sharedfiles/filedetails/?id=2004491494";
|
||||
#The Source URL to your addon
|
||||
$source = "https://github.com/Gensokian/ttt2-role_tra";
|
||||
|
||||
#Creator of the Addon
|
||||
$author = "Garry";
|
||||
#Creatorlink
|
||||
$authorurl = "";
|
||||
|
||||
# Credittext (can use the above variables)
|
||||
$ctext = "This is a base TTT Role";
|
||||
?>
|
56
roles/en/traitor.php
Normal file
56
roles/en/traitor.php
Normal file
@ -0,0 +1,56 @@
|
||||
<?php
|
||||
#
|
||||
# COLORS
|
||||
#
|
||||
|
||||
# Text Color
|
||||
$tcolor = "white";
|
||||
# This is the color defined by https://materializecss.com/color.html
|
||||
$color = "red darken-2";
|
||||
|
||||
|
||||
|
||||
|
||||
#
|
||||
# BASEINFO
|
||||
#
|
||||
|
||||
#The Name of the Role
|
||||
$name = "Traitor";
|
||||
#The Description of the Role, HTML conform :)
|
||||
$description = "Have a plan to kill anyone you meet";
|
||||
|
||||
|
||||
|
||||
|
||||
#
|
||||
# TABS
|
||||
#
|
||||
|
||||
#How To play
|
||||
$howtoplay = "The Traitors job is to kill all of the Innocent players. Traitors have the toughest job because of how the Innocent normally group together. This disadvantage, however, can be their greatest strength, as when two or more Traitors team up, they can take down the entire group. Of course, other players will grow suspicious when players start disappearing. Be prepared to get scanned, killed, or have to do some killing. Traitors, like Detectives, can buy equipment, mostly weapons. Like Detectives, Traitors can retrieve unspent equipment credits from dead Detectives and Traitors, and will be rewarded with a credit when a Detective is confirmed to be dead.";
|
||||
#With what roles does this role play best?
|
||||
$playsbestwith = "Other Traitors";
|
||||
#Convars
|
||||
$convars = "TBD";
|
||||
|
||||
|
||||
|
||||
#
|
||||
# Credits
|
||||
#
|
||||
|
||||
#The Steam URL to your addon
|
||||
$steam = "https://steamcommunity.com/sharedfiles/filedetails/?id=2004491494";
|
||||
#The Source URL to your addon
|
||||
$source = "https://github.com/Gensokian/ttt2-role_tra";
|
||||
|
||||
#Creator of the Addon
|
||||
$author = "Garry";
|
||||
#Creatorlink
|
||||
$authorurl = "";
|
||||
|
||||
# Credittext (can use the above variables)
|
||||
$ctext = "This is a base TTT Role";
|
||||
|
||||
?>
|
Loading…
Reference in New Issue
Block a user