Some of you may have heard of the Polyglot Gamedev project, which is trying to create a list of regular expressions used in Game Dev across multiple languages allowing for easy translation of UIs etc.
To date, there are about 640 simple phrases etc. across 29 languages (with about 26 fully populated). The Polyglot Google Docs spreadsheet can be found here for those that are interested:
https://docs.google.com/spreadsheets/d/17f0dQawb-s_Fd7DHgmVvJoEGDMH_yoSd8EYigrb0zmM/edit#gid=310116733
Why am I writing all this?? Well, subject to a bit more work, Skyline will soon be able to take advantage of this simply by installing a .lua file, a .json file (thanks SP for getting the JSON functionality integrated

At the moment, I'm looking at providing the following commands (please let me know if there are any others you would like):
- Code: Select all
-- Initialise Polyglot Variables and populate Lua Table
-- params: string containing path to polyglot.json file
-- returns: boolean indicating success, or not
function initialisePolyglot ( inFile )
-- Set Default Translation Language
-- params: inLanguage = string containing Language Code
-- returns: boolean indicating success, or not
function setPolyglotLanguage ( inLanguage )
-- Get Translation of [inCode] code
-- params: inCode = string containing Text Code
-- inLanguage (optional) = string containing Language Code
-- returns: Translation and boolean indicating success,
-- or empty string and boolean indicating failure
function getPolyglotTranslation ( inCode, inLanguage )
-- Get Current Translation Language
-- returns: string containing Language Code
function getPolyglotLanguage ( )
-- Get Current Language Direction
-- returns: string containing Language Direction
function getPolyglotDirection ( )
I'll be releasing the final files (including a short manual) onto the Store (for FREE, $0, nil, nothing, nada - in keeping with the CC0 licence of Polyglot) once a couple of issues have been ironed out (hopefully within the next week??).
Let me know if you'd like more info.
Regards
Shando