Minor changes in VIetnamese translation (#1020)
* Update * Minor changes
This commit is contained in:
committed by
GitHub
parent
86c673ee51
commit
e1a9222b1f
@@ -12,7 +12,6 @@ local localeFile -- Language file name, used for force reload
|
||||
|
||||
local lastTickInput
|
||||
local searchWait -- Searching animation timer
|
||||
local defaultSearchWait -- Default time to wait from the last key before searching
|
||||
|
||||
local lastSearch -- Last searched string
|
||||
local lastSelected -- Last selected item
|
||||
@@ -108,13 +107,9 @@ end
|
||||
local function _search()
|
||||
local input=inputBox:getText()
|
||||
local pos
|
||||
_clearResult()
|
||||
local first
|
||||
if needLowerUTF8 then
|
||||
input=STRING.lowerUTF8(input)
|
||||
else
|
||||
input=input:lower()
|
||||
end
|
||||
_clearResult()
|
||||
input=needLowerUTF8 and STRING.lowerUTF8(input) or input:lower()
|
||||
for i=1,#dict do
|
||||
pos=find(dict[i].titleLowered,input,nil,true) or find(STRING.lowerUTF8(dict[i].keywordsLowered),input,nil,true)
|
||||
if pos==1 and not first then
|
||||
@@ -170,7 +165,6 @@ function scene.enter()
|
||||
'en'
|
||||
)
|
||||
needLowerUTF8=SETTING.locale:find'vi'
|
||||
defaultSearchWait=(MOBILE and needLowerUTF8) and 2.6 or 0.8
|
||||
|
||||
dict=require(localeFile)
|
||||
_scanDict(dict)
|
||||
@@ -290,7 +284,7 @@ function scene.update(dt)
|
||||
_clearResult()
|
||||
listBox:setList(_getList())
|
||||
else
|
||||
searchWait=defaultSearchWait
|
||||
searchWait=0.8
|
||||
end
|
||||
lastTickInput=input
|
||||
end
|
||||
|
||||
@@ -86,7 +86,7 @@ local function _sliderShow(S)
|
||||
return S.."F "..math.floor(S*16.67).."ms"
|
||||
end
|
||||
scene.widgetList={
|
||||
WIDGET.newText{name='title', x=100, y=50,lim=500,font=70,align='L'},
|
||||
WIDGET.newText{name='title', x=100, y=50,lim=626,font=70,align='L'},
|
||||
WIDGET.newText{name='preview', x=520, y=610,font=40,align='R'},
|
||||
|
||||
WIDGET.newSlider{name='das', x=250, y=190,lim=230,w=600,axis={0,20,1},disp=SETval('das'), show=_sliderShow,code=SETsto('das')},
|
||||
|
||||
Reference in New Issue
Block a user