Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 1.88 KB

CONTRIBUTING.md

File metadata and controls

42 lines (28 loc) · 1.88 KB

How to Contribute

Thank you for helping improve the project!

Introduction

The software is developed in MFC on Microsoft Visual Studio 2017.

There are 2 projects in 暗黑II.sln:

  • Diablo Edit2: Main project for the editor.
  • Generate Data: Helper poject to generate language and game data for the editor.

Language Support

The editor supports 3 languages: English, Traditional and Simplified Chinese.

All language data are in Diablo Edit2\language.dat which is generated from Generate Data\language.txt.

Add Translations

Currently, Traditional and Simplified Chinese translations are incomplete. If you want to add translations, here are the steps:

  • Open Generate Data\language.txt via Microsoft Excel.

    • *LANG: File tag. DO NOT MODIFY!
    • First column: String index. If empty, it'll start from 0 and increase automatically.
    • Remaining columns: Translations of all languages.
    • Other lines starting with *: Section headers. A section is a group of translations, e.g. all skill names. image
  • Find the string(s) you want to translate, and add missing translations image

  • Save the file and KEEP the original format.

  • Compile and run Generate Data project. It'll refresh all data files for the editor, including Diablo Edit2\language.dat.

  • Compile and run Diablo Edit2 project, and check your translations on UI.

    • Compile under x86 arch

    image

    • Select language via menu: View => Language
    • Confirm your changes image