You are viewing a potentially older version of this package. View all versions.
Muchaszewski-DSPTranslationPlugin-0.1.1 icon

DSPTranslationPlugin

Dyson sphere translation plugin! Translations download form crowdin https://crowdin.com/translate/dyson-sphere-program/14#

Date uploaded 5 years ago
Version 0.1.1
Download link Muchaszewski-DSPTranslationPlugin-0.1.1.zip
Downloads 659
Dependency string Muchaszewski-DSPTranslationPlugin-0.1.1

README

Support my work on Patreon

Dyson sphere translation plugin!

Licence: Project is under CC Attribution 4.0

This is very work in progress - expect bugs and issues!

Features

  • Adds possibility to add custom languages (text only)
  • Adds (currently hidden) French lanugage

Roadmap

  • Refactor code and add documentation
  • Add support for in images that can be translated (and game logo)
  • Add support for adjusting content size of in game UI to fit new text
  • Add *.po file (in addition to json for easier translations)
  • Create Nexus page for DSP and upload mod there
  • Add https://crowdl.io/ support

Installation

  1. Download and unpack BepInEx into game root directory
  2. Download mod files
  3. Extract zip file
  4. Paste DLLs under Dyson Sphere Program\BepInEx\plugins\DSPTranslationPlugin
  5. Add translations to

Dyson Sphere Program\BepInEx\plugins\DSPTranslationPlugin\Translation\{LanguageName}\translation_DysonSphereProgram.json.

You can find translations at Crowdin

  1. Select new translation in Menu of the Game
  2. Enjoy (Note: Restart is not required for full effect ;) )

InGameTranslation

How to add new translations

  1. Create folder under Dyson Sphere Program\BepInEx\plugins\DSPTranslationPlugin\Translation with the name of your translation eg: Polish

TranslationFolder

  1. Run game once - New file settings and translations files will be created.
  2. Translate

Translation file structure:

{ #CROWDIN
  "点击鼠标建造_1": "Click to build",
  "无法在此建造_2": "Cannot build here",
  "{NAME}_{ID}: "{TRANSLATION}",
  (...)
}
{ #LEGACY
  "TranslationTable": [
    {
      "IsValid": true,                          # Does translation exists in the game
      "Name": "点击鼠标建造",                    # Name used by the game for translation (READ ONLY)
      "ID": 1,                                  # Id of the translation (READ ONLY)
      "Original": "Click to build",             # Translation in English
      "Translation": "Kliknij, aby zbudować"    # Your translation here
    },
    (...)
    ]
}

Settings file structure:

{
  "Version": "0.1.0.0",                             # Plugin version
  "GameVersion": "0.6.15.5678",                     # Game version
  "OriginalLanguage": "ENUS",                       # Language in which empty new translation files will be generated, possible values: "ENUS", "FRFR", "ZHCN"
  "LanguageDisplayName": "Polish",                  # Language display name in the game
  "ImportFromLegacy": false,                        # Generate Legacy json format (defualt is Crowdin format)
  "CreateAndUpdateFromPlainTextDumpUnsafe": true    # Should create and import dump file (more below)
}

Dump file:

Simpler file structure where only Translation value is provided. Each new translation is separated by 5 dashes ----- this can speed up the translation process. Can cause error if ever game decide to change IDs or will add new ones, with JSON format there should be no such issue.

IMPORTANT! Disable dump file import when sending for production!

Kliknij, aby zbudować
-----
Nie można tutaj budować
-----
Brak przedmiotu
-----
(...)

Special Thanks to

BepInEx - for mod support

Modified hard fork of SimpleJSON - for simple json parser