[ANY] Map Translator (Multilingual map texts)
https://i.imgur.com/f0mqJEq.png Map Translator Translates map texts via translation files, allowing players to see messages in their preferred language. The following texts are supported: - [ANY] game_text - [ANY] env_hudhint - [ZPS] Objective text - [NMRiH] Objective text - [NMRiH] point_message_multiplayer - [TF2] game_text_tf Installation - Install Sourcemod 1.11.6924 or higher. - Grab the latest release ZIP and extract to `addons/sourcemod`. - Refresh your plugins (`sm plugins refresh` in server console) Usage - Navigate to `cfg/sourcemod` and open `plugin.map-translator.cfg` Note: it's `plugin.nmrih-map-translator.cfg` in NMRiH for backward compatibility - Set `mt_autolearn_langs` to a space-separated list of language codes you wish to generate translations for. PHP Code:
- The plugin will now create translation files for maps as they're loaded. They're stored in `addons/sourcemod/translations/_maps` PHP Code:
PHP Code:
Admin Commands PHP Code:
CVars CVars are read from `cfg/sourcemod/plugin.map-translator.cfg` PHP Code:
- You must escape quotes with a backslash (`\`) to prevent parsing errors. PHP Code:
- You are not expected to manually add new entries, only edit existing — if a specific text is not getting picked up, please create an issue. However, nothing will break if you do, the section name (e.g. `edf566344eb9f2cb892e073e70c70181`) is just an MD5 hash of the original text. Full info: https://github.com/dysphie/sm-map-translator#readme Download: https://github.com/dysphie/sm-map-translator/releases Source code: https://github.com/dysphie/sm-map-translator |
Re: [NMRiH] Map Translator (v0.2.1 - 2-Aug-2021)
1 Attachment(s)
awesome
Found a problem After multiple loading Information will become misplaced ERROR PHP Code:
PHP Code:
Two pieces of the same information will be saved in one map Contains the above error message and the untranslated message PHP Code:
|
Re: [NMRiH] Map Translator (v0.2.1 - 2-Aug-2021)
The translated map is reloaded and sometimes the information will be duplicated and misplaced
Untranslated maps, this problem will not occur |
Re: [NMRiH] Map Translator (v0.2.1 - 2-Aug-2021)
Quote:
This normally happens when extra quotes are added to a translation phrase without proper escaping. Escaping a character means adding \ before it. Examples of bad phrases: - "en" "Water deals damage"" instead of "en" "Water deals damage" - "en" "Ported by "Merz" for NMRiH" instead of "en" "Ported by \"Merz\" for NMRiH" These can happen due to human error, or a bug with the plugin's export function. I've shipped a speculative fix for the latter in 0.2.2. I suggest removing the faulty phrases before upgrading. |
Re: [NMRiH] Map Translator (v0.2.1 - 2-Aug-2021)
Quote:
very good :bacon!::bacon!::bacon!::bacon!: I will upgrade now Then to test |
Re: [NMRiH] Map Translator (v0.2.2 - 7-Aug-2021)
Deleted old files
The plugin regenerates a new file After the translation, the problem remains unchanged. map https://steamcommunity.com/sharedfil...?id=2518000778 |
Re: [NMRiH] Map Translator (v0.2.2 - 7-Aug-2021)
Quote:
Are you sure you didn't accidentally add this extra quotation mark? https://cdn.discordapp.com/attachmen...ew_Project.png Could you provide me with a copy of the file with the Chinese translations before the server corrupts it? |
Re: [NMRiH] Map Translator (v0.2.2 - 7-Aug-2021)
Quote:
Everything is normal after I remove this symbol thanks |
Re: [NMRiH] Map Translator (v0.2.2 - 7-Aug-2021)
nmrih-map-translator.smx ([NMRiH] Map Translator): Native "StringMap.ContainsKey" was not found
:下: |
Re: [NMRiH] Map Translator (v0.2.2 - 7-Aug-2021)
Quote:
Quote:
|
All times are GMT -4. The time now is 02:15. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.