RE-SS3D / SS3D

Space Station 3D, another remake of SS13, but with an extra D.
https://ss3d.space/
252 stars 139 forks source link

Initial game localization implementation #1448

Closed Ryan089 closed 4 weeks ago

Ryan089 commented 1 month ago

Summary

Implements a bare-bones localization framework, and demonstrates the concept using the Examine system.

This feature includes:

PR checklist

Pictures/Videos

image ("Steel Wall" viewed when French language is selected)

image (This Floor Tile does not have localization data, so we inform user)

image (Change your selected region via the dropdown near the Stamina Bar)

Testing

Play the game, hover over some of the objects in the default scene to see their name appear in English. Then change language to French or Portuguese, and do the same. Notice that they are different.

To view the localization tables in the editor, go to Windows > Asset Management > Localization Tables. In the Edit Table Collection tab, select the desired Table Collection (currently Tiles, Items or Misc). Tiles is the most populated currently. Check the translations provided in the columns below.

Changes

Updated Examine Data to include a localization table. Aiming to keep these tables pretty high-level. E.g. Tiles, Items, UI etc.

Examine Data Name Key and Description Key are used to refer to an entry in the localization table. They are not intended as the actual display name.

Examine UI now uses the localization tables rather than the key directly.

Known issues

Related issues/PRs

Closes #1393