
And i guess somebody alerady translated Territory and Date. (I can't find any names other than mine in contributors place)
Admicos, thanks so much for the help!Admicos wrote:(btw why there's 2 "Advanced settings" or similar things. Could'nt there just a General category or someting like that to have multiplied strings?)
Code: Select all
<category id="display">
<word id="resolution">
<string ver="long">Application display resolution</string>
<string ver="normal">Display resolution</string>
<string ver="short">Resolution</string>
</word>
</category>
Good point. Just add it as a string in the online doc.DanielOaks wrote:Could we add a standard string for something like 'Translation not found', 'No Translation', maybe 'No Translation Found'? I'd like to make that a default value that's returned if the given string is not found in this language.
Not a bad start. BTW, I have a little demo lib on the previous page of this thread that shows how to handle $1,$2,$3 flags in Lua.DanielOaks wrote:I'm also working on the Lua library now, will let you guys know once it's at a usable state!
Code: Select all
function CommonLocal:get(section, key, ...)
line = self.strings[section][key]
if line == '' or line == nil then
return 'Translation Not Found'
else
if ... ~= nil then
local arg={...}
for i, replacement in ipairs(arg) do
line = line:gsub('$' .. i, replacement)
end
end
return line
end
end
Code: Select all
line = trans:get('audio', 'audio.cardx', 'RealTrack AudioCool 143')
Users browsing this forum: Bing [Bot], Google [Bot] and 6 guests