Showcase
Showcase your work that you have created in the Skyline Game Engine.

Polyglot and Skyline

Polyglot and Skyline

Postby Shando » 05 Oct 2015, 04:25

Hi All,

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 ;)), and the relevant fonts.

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
Ryzen 7 4800H 16GB GTX1650 Win 11 64
Love, Hope, Strength http://www.lovehopestrength.co.uk
User avatar
Shando
Skyline Moderator
Skyline Moderator
 
Posts: 560
Joined: 06 Mar 2013, 22:35
Location: Moffat Beach, Queensland
Skill: Programmer
Skill: Scripter
Skill: Level Designer

Re: Polyglot and Skyline

Postby Shando » 08 Oct 2015, 06:15

I have also written a simple stand-alone converter for converting the Polyglot csv file to both JSON & XML.

Available here:

http://1drv.ms/1jawIfQ

The Polyglot project already has a converter, but this generates individual files for each language. My converter generates a single file containing ALL languages (2MB for JSON and 2.5MB for XML) which I believe will be easier to integrate by loading the whole lot into a Lua Table and then using normal Lua commands to get the translation, meaning you can have almost real time language changes :)

If you want any info, let me know.

Regards

Shando
Ryzen 7 4800H 16GB GTX1650 Win 11 64
Love, Hope, Strength http://www.lovehopestrength.co.uk
User avatar
Shando
Skyline Moderator
Skyline Moderator
 
Posts: 560
Joined: 06 Mar 2013, 22:35
Location: Moffat Beach, Queensland
Skill: Programmer
Skill: Scripter
Skill: Level Designer

Re: Polyglot and Skyline

Postby StarFire » 16 Oct 2015, 13:22

Thanks Shando :D
Dream the Journey, Live the Experience!
User avatar
StarFire
Skyline Founder
Skyline Founder
 
Posts: 1678
Joined: 03 Jan 2012, 18:50
Location: UK
Skill: Great creative
Skill: Programmer
Skill: 3D Modeller
Skill: 2D Artist
Skill: Level Designer


Return to Showcase

Who is online

Users browsing this forum: No registered users and 2 guests

cron