]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't translate menu_cmd commands list (uninteresting commands for players and incons...
authorterencehill <piuntn@gmail.com>
Wed, 17 Mar 2021 14:11:30 +0000 (15:11 +0100)
committerterencehill <piuntn@gmail.com>
Wed, 17 Mar 2021 14:11:30 +0000 (15:11 +0100)
qcsrc/common/command/generic.qc
qcsrc/common/notifications/all.qh
qcsrc/common/turrets/all.qh
qcsrc/common/weapons/all.qh
qcsrc/menu/command/menu_cmd.qc

index 5e339e85c4e90f6435540ce10e2c80bba225c2b9..929d3765345084e1e85917705e498417e46563c0 100644 (file)
@@ -409,7 +409,7 @@ void GenericCommand_restartnotifs(int request)
                        Destroy_All_Notifications();
                        CALL_ACCUMULATED_FUNCTION(RegisterNotifications);
                        #else
-                       LOG_INFO(_("Notification restart command only works with cl_cmd and sv_cmd."));
+                       LOG_INFO("Notification restart command only works with cl_cmd and sv_cmd.");
                        #endif
                        return;
                }
index 0c23677ca903c1b35a675fb6e2b475c9d79fab76..5a7b0af0f3f76c356c8ae37a5ce94e113f771497 100644 (file)
@@ -193,7 +193,7 @@ GENERIC_COMMAND(dumpnotifs, "Dump all notifications into " DEFAULT_FILENAME, fal
                                LOG_INFOF("^1Error: ^7Could not open file '%s'!", filename);
                        }
                        #else
-                       LOG_INFO(_("Notification dump command only works with cl_cmd and sv_cmd."));
+                       LOG_INFO("Notification dump command only works with cl_cmd and sv_cmd.");
                        #endif
                        return;
                }
index ea3b0e31e801b677edeb149ef7ec477ff7ab9a9b..5bebc285db77fbcdc8c9fc5c75686601a3911ac0 100644 (file)
@@ -94,7 +94,7 @@ GENERIC_COMMAND(dumpturrets, "Dump all turrets into " DEFAULT_FILENAME, false)
                 LOG_INFOF("^1Error: ^7Could not open file '%s'!", filename);
             }
             #else
-            LOG_INFO(_("Turrets dump command only works with sv_cmd."));
+            LOG_INFO("Turrets dump command only works with sv_cmd.");
             #endif
             return;
         }
index 88a79224febab5f53524de1c39bd006e6d173caf..24057a0b8348209686ba56c3242df57f1889576e 100644 (file)
@@ -76,7 +76,7 @@ GENERIC_COMMAND(dumpweapons, "Dump all turrets into " DEFAULT_FILENAME, false) /
                 LOG_INFOF("^1Error: ^7Could not open file '%s'!", filename);
             }
             #else
-            LOG_INFO(_("Weapons dump command only works with sv_cmd."));
+            LOG_INFO("Weapons dump command only works with sv_cmd.");
             #endif
             return;
         }
index 4da853bd5e3929fe7308f446cf153563a0a1661d..c4593e87aa1a90181c8d555513c2bc89af92a8f4 100644 (file)
@@ -43,13 +43,14 @@ void GameCommand(string theCommand)
        int argc = tokenize_console(theCommand);
        string ss = strtolower(argv(0));
 
+       // TODO port these commands to the command system
        if (argv(0) == "help" || argc == 0)
        {
-               LOG_HELP(_("Usage:^3 menu_cmd <command> [<item>], where possible commands are:"));
-               LOG_HELP(_("  'sync' reloads all cvars on the current menu page"));
-               LOG_HELP(_("  'directmenu' shows the menu window named <item> (or the menu window containing an item named <item>)"));
-               LOG_HELP(_("   if <item> is not specified it shows the list of available items in the console"));
-               LOG_HELP(_("  'dumptree' dumps the state of the menu as a tree to the console"));
+               LOG_HELP("Usage:^3 menu_cmd <command> [<item>], where possible commands are:");
+               LOG_HELP("  'sync' reloads all cvars on the current menu page");
+               LOG_HELP("  'directmenu' shows the menu window named <item> (or the menu window containing an item named <item>)");
+               LOG_HELP("   if <item> is not specified it shows the list of available items in the console");
+               LOG_HELP("  'dumptree' dumps the state of the menu as a tree to the console");
 
                LOG_HELP("\nGeneric commands shared by all programs:");
                GenericCommand_macro_help();
@@ -78,7 +79,7 @@ void GameCommand(string theCommand)
 
                if (argc == 1)
                {
-                       LOG_HELP(_("Available items:"));
+                       LOG_HELP("Available items:");
 
                        FOREACH_ENTITY_ORDERED(it.name != "", {
                                if (it.classname == "vtbl") continue;
@@ -127,5 +128,5 @@ void GameCommand(string theCommand)
        if(MUTATOR_CALLHOOK(Menu_ConsoleCommand, ss, argc, theCommand)) // handled by a mutator
                return;
 
-       LOG_INFO(_("Invalid command. For a list of supported commands, try menu_cmd help."));
+       LOG_INFO("Invalid command. For a list of supported commands, try menu_cmd help.");
 }