[RMMV Plugin] Localization and String Table

Version: v1.01

Introduction

This plugin allows your game to use string table for each language stored in data\Strings.json, and the player can select language in Options menu to use. The string table contains strings for the game terms that override the ones defined in the database, and some user-defined strings. Additionally you can use escape notation for the strings on dialog messages.

Contact me for support/bug report:

listra92@gmail.com
https://www.facebook.com/don.listRA92

Strings.json

data\Strings.json stores strings for each language in the following format:

[{"langName":"value",
"locale":"value",
"term_mes_Language":"value",
"term_command_NewGame":"value",
"yourString":"value",
...},
...]

The string langName and term_mes_Language are required to display the 'Language' option item in Options menu. The string locale is necessary to determine locale used in the game (e.g. en_US, zh, jp, ru, etc). The strings for the game terms are optional, if not present the terms data in the database will be used.

Message Escape Notation

For dialog messages, scrolling texts, item and skill descriptions, and anything in window boxes, you can use escape notation in the text: \str[yourString]. The string yourString itself can contain escape notations to be processed.

Notes

The complete sample of Strings.json can be downloaded alongside with this plugin. Currently it doesn't include many languages yet, you can add more and suggest if you want.

This plugin doesn't handle item, skill, class, enemy and type names, and also terms defined and used in other plugins unless they allow escape notations to be processed.

Download Plugin

MK_Localization.js
Sample file Strings.json

2 comments:

  1. biar lebih mudah bikin video tutorial cara pakenya ??????

    ReplyDelete
    Replies
    1. Sorry no videos, instruksi2nya aja udah cukup menurutku.

      Delete