2013-04-21, 00:09
This may be a little Pie In The Sky, but is anyone familiar with the Web2Py framework?
It would be really nice if the language translation in XBMC worked the same. Basically, the framework defines a T() function. You pass any strings to be translated into the T() function at runtime and they're automatically replaced with the appropriate language if available. A pseudo example would be:
So instead of passing in an ID, pass in a string, the back end looks up the ID, then the translated string and returns it.
It would be really nice if the language translation in XBMC worked the same. Basically, the framework defines a T() function. You pass any strings to be translated into the T() function at runtime and they're automatically replaced with the appropriate language if available. A pseudo example would be:
Code:
control.setLabel(T("My Button"))
So instead of passing in an ID, pass in a string, the back end looks up the ID, then the translated string and returns it.