Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Managing app locales with spread sheet and a Perl script — Gideros Forum

Managing app locales with spread sheet and a Perl script

chipster123chipster123 Member
edited December 2013 in Code snippets
Here is a simple Perl script I put together to help me manage locales.
The basic approach is to define string CONSTANTS in the spread sheet and then populate them with locale-specific text.
Then you write your app to reference the CONSTANTS and the run time output will use the strings based on the locale.
It still requires your app to use Locale.lua https://github.com/ar2rsawseen/Localize
or
BhLocale.lua http://giderosmobile.com/forum/discussion/comment/6142#Comment_6142

The Perl script parses the Excel file and generates the local files .lua for each locale defined.

The attached zip file also has a sample Gideros project to let you mess around and test the generateLocalesFiles.pl script.

The zip file also contains @ar2rsawseen Locale system to allow demonstration.
Please refer to https://github.com/ar2rsawseen/Localize for the latest version.

Hope someone else finds it useful too.
+1 -1 (+5 / -0 )Share on Facebook

Comments

Sign In or Register to comment.