kikito / i18n.lua

A very complete i18n lib for Lua

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

i18n should be impervious to dots in certain cases

kikito opened this issue · comments

Example:

-- dots in the translation
i18n.set('en.pesky', 'This is pesky business. You may not want to use dots after all')
i18n('en.pesky') -- Should return the last phrase

-- dots in the params section
i18n.set('en.params', 'The param is %q')
i18n('en.params', 'This string has dots. That is crazy')

Proposed solution: apply splitDot only to the first parameter.