Updated translations, converted the menu to use keyword defines instead of hardcoded names.

This commit is contained in:
Greyscale 2009-05-08 04:57:21 +02:00
parent f0a975b431
commit a6e55b6653
5 changed files with 22 additions and 25 deletions

View File

@ -140,37 +140,32 @@
"Menu main zadmin" "Menu main zadmin"
{ {
"en" "ZAdmin (!zadmin) - View Admin Menu" "en" "ZAdmin ({1}) - Open admin menu."
} }
"Menu main zclass" "Menu main zclass"
{ {
"en" "ZClass (!zclass) - Select a zombie class" "en" "ZClass ({1}) - Configure your class settings."
"ru" "ZClass (!zclass) - Выбор класса зомби"
} }
"Menu main zspawn" "Menu main zspawn"
{ {
"en" "ZSpawn (!zspawn) - Spawn into game" "en" "ZSpawn ({1}) - Join late? Use this to spawn."
"ru" "ZSpawn (!zspawn) - Заход в игру"
} }
"Menu main ztele" "Menu main ztele"
{ {
"en" "ZTele (!ztele) - Teleport to your spawnpoint" "en" "ZTele ({1}) - Teleport back to your spawn location."
"ru" "ZTele (!ztele) - Телепорт на место появления"
} }
"Menu main zhp" "Menu main zhp"
{ {
"en" "ZHP (!zhp) - Toggle real HP display when zombie" "en" "ZHP ({1}) - Toggle real HP display when infected."
"ru" "ZHP (!zhp) - Показ здоровья зомби"
} }
"Menu main zmarket" "Menu main zmarket"
{ {
"en" "ZMarket (!zmarket) - Custom weapon list" "en" "ZMarket ({1}) - Need a weapon? Buy them here."
"ru" "ZMarket (!zmarket) - Собственный набор оружия"
} }
// =========================== // ===========================
@ -376,7 +371,7 @@
"ZSpawn timelimit" "ZSpawn timelimit"
{ {
"#format" "{1:d}" "#format" "{1:d}"
"en" "The timelimit, to use ZSpawn, ({1} seconds) has already expired." "en" "The timelimit ({1} seconds), to use ZSpawn, has already expired."
} }
// =========================== // ===========================

View File

@ -27,6 +27,7 @@
#include "zr/cvars" #include "zr/cvars"
#include "zr/config" #include "zr/config"
#include "zr/translation" #include "zr/translation"
#include "zr/sayhooks"
#include "zr/tools" #include "zr/tools"
#include "zr/models" #include "zr/models"
#include "zr/playerclasses/playerclasses" #include "zr/playerclasses/playerclasses"
@ -35,8 +36,8 @@
#include "zr/roundend" #include "zr/roundend"
#include "zr/infect" #include "zr/infect"
#include "zr/damage" #include "zr/damage"
#include "zr/menu" #include "zr/menu"
#include "zr/sayhooks"
#include "zr/event" #include "zr/event"
#include "zr/zadmin" #include "zr/zadmin"
#include "zr/commands" #include "zr/commands"
@ -66,7 +67,7 @@
public Plugin:myinfo = public Plugin:myinfo =
{ {
name = "Zombie:Reloaded", name = "Zombie:Reloaded",
author = "Greyscale, Rhelgeby (Richard)", author = "Greyscale | Richard Helgeby",
description = "Infection/survival style gameplay", description = "Infection/survival style gameplay",
version = VERSION, version = VERSION,
url = "" url = ""

View File

@ -35,12 +35,12 @@ MenuMain(client)
decl String:zmarket[64]; decl String:zmarket[64];
// Translate each line into client's language. // Translate each line into client's language.
Format(zadmin, sizeof(zadmin), "%t", "Menu main zadmin"); Format(zadmin, sizeof(zadmin), "%t", "Menu main zadmin", SAYHOOKS_KEYWORD_ZMENU);
Format(zclass, sizeof(zclass), "%t", "Menu main zclass"); Format(zclass, sizeof(zclass), "%t", "Menu main zclass", SAYHOOKS_KEYWORD_ZADMIN);
Format(zspawn, sizeof(zspawn), "%t", "Menu main zspawn"); Format(zspawn, sizeof(zspawn), "%t", "Menu main zspawn", SAYHOOKS_KEYWORD_ZCLASS);
Format(ztele, sizeof(ztele), "%t", "Menu main ztele"); Format(ztele, sizeof(ztele), "%t", "Menu main ztele", SAYHOOKS_KEYWORD_ZTELE);
Format(zhp, sizeof(zhp), "%t", "Menu main zhp"); Format(zhp, sizeof(zhp), "%t", "Menu main zhp", SAYHOOKS_KEYWORD_ZHP);
Format(zmarket, sizeof(zmarket), "%t", "Menu main zmarket"); Format(zmarket, sizeof(zmarket), "%t", "Menu main zmarket", SAYHOOKS_KEYWORD_ZMARKET);
// Add items to menu. // Add items to menu.

View File

@ -67,8 +67,9 @@ public Action:SayHooksCmdSay(client, argc)
// Get client's command string (typically 'say "text"') // Get client's command string (typically 'say "text"')
GetCmdArgString(args, sizeof(args)); GetCmdArgString(args, sizeof(args));
// Strip away the quotes. // Strip away certain characters.
ReplaceString(args, sizeof(args), "\"", ""); ReplaceString(args, sizeof(args), "\"", ""); // Strip quotes
ReplaceString(args, sizeof(args), " ", ""); // Strip all whitespace.
new chatflag = SayHooksChatToFlag(args); new chatflag = SayHooksChatToFlag(args);

View File

@ -44,7 +44,7 @@ enum WpnRestrictQuery
RestrictInit() RestrictInit()
{ {
// Initialize weapon restrict array. // Initialize weapon restrict array.
gRestrictedWeapons = CreateArray(32, 0); gRestrictedWeapons = CreateArray(WEAPONS_MAX_LENGTH, 0);
// Hook buy command. // Hook buy command.
RegConsoleCmd("buy", RestrictBuyCommand); RegConsoleCmd("buy", RestrictBuyCommand);