Added more ped components (#23)

- 4 tabs indent
- add Polish translation (from deviljin112)
- add more components (eyes color / arms 2 / watches / bracelets / blemishes / ageing / blush / complexion / sun damages / freckles / chest hair / body blemishes)
- increment version
This commit is contained in:
Delduwaht
2018-09-24 17:50:00 +02:00
committed by Samuel
parent 36cba555a1
commit 4f6a40199d
10 changed files with 627 additions and 320 deletions
+10 -10
View File
@@ -2,20 +2,20 @@ Locales = {}
function _(str, ...) -- Translate string
if Locales[Config.Locale] ~= nil then
if Locales[Config.Locale] ~= nil then
if Locales[Config.Locale][str] ~= nil then
return string.format(Locales[Config.Locale][str], ...)
else
return 'Translation [' .. Config.Locale .. '][' .. str .. '] does not exist'
end
if Locales[Config.Locale][str] ~= nil then
return string.format(Locales[Config.Locale][str], ...)
else
return 'Translation [' .. Config.Locale .. '][' .. str .. '] does not exist'
end
else
return 'Locale [' .. Config.Locale .. '] does not exist'
end
else
return 'Locale [' .. Config.Locale .. '] does not exist'
end
end
function _U(str, ...) -- Translate string first char uppercase
return tostring(_(str, ...):gsub("^%l", string.upper))
return tostring(_(str, ...):gsub("^%l", string.upper))
end