Collect localized resources from the game's Data Model objects using annotations #10991
shitake2333
started this conversation in
Editor
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Godot's existing system can collect texts that need to be internationalized from code and other places.
However, in game development, more resources that need to be internationalized exist on data model objects. These objects may eventually exist in the form of binary data or json or csv files. The existing system cannot collect resources that need to be internationalized from these places.
RPG Maker Database Editor

The
name
anddescription
properties of theItem
object contain international resources that need to be collected.Assume this is the definition of the item object:
We can define new
i18n_model
andi18n_property
annotations to mark objects and properties that need to be internationalized.When the engine generates files such as pot, it will obtain all registered
i18n_model
types, then load the specific files corresponding to these models throughi18n_file_reader
, and collect resources that need to be internationalized from them according to thei18n_property
information.Reference: This is a unity example
Beta Was this translation helpful? Give feedback.
All reactions