-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathauto_layout_localizing_script.lua
32 lines (29 loc) · 1.15 KB
/
auto_layout_localizing_script.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
function plugindef()
finaleplugin.RequireDocument = false
finaleplugin.MinJWLuaVersion = 0.71
finaleplugin.ExecuteHttpsCalls = true
end
local localization = require("library.localization")
--
-- this table was copied from "auto_layout.lua" for the purpose of translating it
--
localization.en =
{
["Action Button"] = "Action Button",
["Choices"] = "Choices",
["First Option"] = "First Option",
["Fourth Option"] = "Fourth Option",
["Left Checkbox Option 1"] = "Left Checkbox Option 1",
["Left Checkbox Option 2"] = "Left Checkbox Option 2",
["Menu"] = "Menu",
["Right Three-State Option"] = "Right Three-State Option",
["Second Option"] = "Second Option",
["Short "] = "Short ",
["Test Autolayout With Localisation"] = "Test Autolayout With Localisation",
["Third Option"] = "Third Option",
["This is long menu text "] = "This is long menu text ",
["This is long text choice "] = "This is long text choice ",
["This is longer option text "] = "This is longer option text ",
}
local ldev = require('library.localization_developer')
ldev.translate_localized_table_string(localization.en, "en", "en_GB")