Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Sourcemod plugin for No More Room in Hell and Zombie Panic Source that allows map objectives and other miscellaneous text to be translated via auto-generated configs

License

NotificationsYou must be signed in to change notification settings

dysphie/sm-map-translator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

4150650 (1)

[SM] Map Translator

Provides a way to translate map text through config files, allowing players to view messages in their steam language.
Note that the plugindoes not automatically translate content, it only offers a framework for manual translations.

The following text entities are supported:

Installation

Usage

  • Navigate tocfg/sourcemod and openplugin.map-translator.cfg

    Note: it'splugin.nmrih-map-translator.cfg in NMRiH for backward compatibility

  • Setmt_autolearn_langs to a space-separated list of language codes you wish to generate translations for.

    // Example for English, Spanish and Korean mt_autolearn_langs"en es ko"

    Note: You can see the full list of language codes ataddons/sourcemod/configs/languages.cfg

  • The plugin will now create translation files for maps as they're loaded.They're stored inaddons/sourcemod/translations/_maps

    "Phrases" {"edf566344eb9f2cb892e073e70c70181" {"en""Destroy the puppet""es""Destroy the puppet""ko""Destroy the puppet" } }

    You can then edit these files to change the message printed for each language.

    "Phrases" {"edf566344eb9f2cb892e073e70c70181" {"en""Get rid of the puppet""es""Destruye la marioneta""ko""인형을 파괴해" } }

Commands

CommandDescriptionRequired Flags
mt_forcelangForces perceived language to a given language code.ADMFLAG_ROOT
mt_bulk_learn_nmoGenerate translations for all .nmo files in NMRiH without loading the maps.ADMFLAG_ROOT
mt_force_exportForce export learned translations immediately.ADMFLAG_ROOT
mt_debug_clientsPrint perceived language code for each client.ADMFLAG_ROOT

CVars

CVars are read fromcfg/sourcemod/plugin.map-translator.cfg

ConVarDescriptionDefault Value
mt_ignore_numericalDon't translate or learn fully numerical messages such as codes, countdowns, etc.1
mt_autolearn_langsSpace-separated list of language entries to include in auto generated translation files, for example:en es koen
mt_fallback_langClients whose language is not translated will see messages in this languageen
mt_extended_learningWhether the game will learn text entities that have been modified during gameplay. This can improve detection on maps with VScript, but it can also increase memory usage and the size of the generated translation file0

Notes

  • You must escape quotes with a backslash (\) to prevent parsing errors.

    // Example"en""Destroy\"Robert\" the puppet"
  • This plugin is incompatible withMultilingual Objectives andMultilingual Objective Beta.

  • You are not expected to manually add new entries, only edit existing — if a specific text is not getting picked up, pleasecreate an issue.However, nothing will break if you do, the section name (e.g.edf566344eb9f2cb892e073e70c70181) is just anMD5 hash of the original text.

About

Sourcemod plugin for No More Room in Hell and Zombie Panic Source that allows map objectives and other miscellaneous text to be translated via auto-generated configs

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

    Packages

    No packages published

    [8]ページ先頭

    ©2009-2025 Movatter.jp