Skip to content

Commit e47ab34

Browse files
committed
changed translatable strings to lower case
1 parent 1fd2ca2 commit e47ab34

File tree

9 files changed

+41
-41
lines changed

9 files changed

+41
-41
lines changed

examples/api_version.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ end
3939

4040
local result = dt.configuration.api_version_string
4141
dt.print_log("API Version: " .. result)
42-
dt.print(string.format(_("API Version: %s"), result))
42+
dt.print(string.format(_("API version: %s"), result))
4343

4444
-- set the destroy routine so that script_manager can call it when
4545
-- it's time to destroy the script and then return the data to

examples/darkroom_demo.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,13 @@ dt.gui.current_view(dt.gui.views.darkroom)
9191

9292
local max_images = 10
9393

94-
dt.print(_("Showing images, with a pause in between each"))
94+
dt.print(_("showing images, with a pause in between each"))
9595
sleep(1500)
9696

9797
-- display first 10 images of collection pausing for a second between each
9898

9999
for i, img in ipairs(dt.collection) do
100-
dt.print(string.format(_("Displaying image "), i))
100+
dt.print(string.format(_("displaying image "), i))
101101
dt.gui.views.darkroom.display_image(img)
102102
sleep(1500)
103103
if i == max_images then
@@ -107,7 +107,7 @@ end
107107

108108
-- return to lighttable view
109109

110-
dt.print(_("Restoring view"))
110+
dt.print(_("restoring view"))
111111
sleep(1500)
112112
dt.gui.current_view(current_view)
113113

examples/gettextExample.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ local function _(msgid)
7878
return gettext(msgid)
7979
end
8080

81-
dt.print_error(_("Hello World!"))
81+
dt.print_error(_("hello world!"))
8282

8383
-- set the destroy routine so that script_manager can call it when
8484
-- it's time to destroy the script and then return the data to

examples/lighttable_demo.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,12 @@ for n, layout in ipairs(layouts) do
149149
sleep(1500)
150150
for i = 1, 10 do
151151
dt.gui.libs.lighttable_mode.zoom_level(i)
152-
dt.print(string.format(_("Set zoom level to %d"), i))
152+
dt.print(string.format(_("set zoom level to %d"), i))
153153
sleep(1500)
154154
end
155155
for i = 9, 1, -1 do
156156
dt.gui.libs.lighttable_mode.zoom_level(i)
157-
dt.print(string.format(_("Set zoom level to %d"), i))
157+
dt.print(string.format(_("set zoom level to %d"), i))
158158
sleep(1500)
159159
end
160160
end

examples/moduleExample.lua

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ local function install_module()
7878
orientation = "vertical",
7979
dt.new_widget("button")
8080
{
81-
label = _("MyButton"),
81+
label = _("my button"),
8282
clicked_callback = function (_)
83-
dt.print(_("Button clicked"))
83+
dt.print(_("button clicked"))
8484
end
8585
},
8686
table.unpack(mE.widgets),
@@ -103,10 +103,10 @@ local function restart()
103103
end
104104

105105
-- https://www.darktable.org/lua-api/types_lua_check_button.html
106-
local check_button = dt.new_widget("check_button"){label = _("MyCheck_button"), value = true}
106+
local check_button = dt.new_widget("check_button"){label = _("my check_button"), value = true}
107107

108108
-- https://www.darktable.org/lua-api/types_lua_combobox.html
109-
local combobox = dt.new_widget("combobox"){label = _("MyCombobox"), value = 2, "8", "16", "32"}
109+
local combobox = dt.new_widget("combobox"){label = _("my combobox"), value = 2, "8", "16", "32"}
110110

111111
-- https://www.darktable.org/lua-api/types_lua_entry.html
112112
local entry = dt.new_widget("entry")
@@ -115,29 +115,29 @@ local entry = dt.new_widget("entry")
115115
placeholder = _("placeholder"),
116116
is_password = false,
117117
editable = true,
118-
tooltip = _("Tooltip Text"),
118+
tooltip = _("tooltip text"),
119119
reset_callback = function(self) self.text = "text" end
120120
}
121121

122122
-- https://www.darktable.org/lua-api/types_lua_file_chooser_button.html
123123
local file_chooser_button = dt.new_widget("file_chooser_button")
124124
{
125-
title = _("MyFile_chooser_button"), -- The title of the window when choosing a file
125+
title = _("my file_chooser_button"), -- The title of the window when choosing a file
126126
value = "", -- The currently selected file
127127
is_directory = false -- True if the file chooser button only allows directories to be selecte
128128
}
129129

130130
-- https://www.darktable.org/lua-api/types_lua_label.html
131131
local label = dt.new_widget("label")
132-
label.label = _("MyLabel") -- This is an alternative way to the "{}" syntax to set a property
132+
label.label = _("my label") -- This is an alternative way to the "{}" syntax to set a property
133133

134134
-- https://www.darktable.org/lua-api/types_lua_separator.html
135135
local separator = dt.new_widget("separator"){}
136136

137137
-- https://www.darktable.org/lua-api/types_lua_slider.html
138138
local slider = dt.new_widget("slider")
139139
{
140-
label = _("MySlider"),
140+
label = _("my slider"),
141141
soft_min = 10, -- The soft minimum value for the slider, the slider can't go beyond this point
142142
soft_max = 100, -- The soft maximum value for the slider, the slider can't go beyond this point
143143
hard_min = 0, -- The hard minimum value for the slider, the user can't manually enter a value beyond this point

examples/multi_os.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,12 +184,12 @@ local function extract_embedded_jpeg(images)
184184
end
185185
else
186186
dt.print_error(image.filename .. " is not a raw file. No image can be extracted") -- print debugging error message
187-
dt.print(string.format(_("%s is not a raw file. No image can be extracted"), image.filename)) -- print the error to the screen
187+
dt.print(string.format(_("%s is not a raw file, no image can be extracted"), image.filename)) -- print the error to the screen
188188
end
189189
end
190190
else
191191
dt.print_error("ufraw-batch not found. Exiting...") -- print debugging error message
192-
dt.print("ufraw-batch not found. Exiting...") -- print the error to the screen
192+
dt.print("ufraw-batch not found, exiting...") -- print the error to the screen
193193
end
194194
end
195195

@@ -213,7 +213,7 @@ end
213213
if dt.configuration.running_os ~= "linux" then
214214
local executable = "ufraw-batch"
215215
local ufraw_batch_path_widget = dt.new_widget("file_chooser_button"){
216-
title = _("Select ufraw-batch[.exe] executable"),
216+
title = _("select ufraw-batch[.exe] executable"),
217217
value = df.get_executable_path_preference(executable),
218218
is_directory = false,
219219
changed_callback = function(self)
@@ -225,7 +225,7 @@ if dt.configuration.running_os ~= "linux" then
225225
dt.preferences.register("executable_paths", "ufraw-batch", -- name
226226
"file", -- type
227227
_('multi_os: ufraw-batch location'), -- label
228-
_('Installed location of ufraw-batch. Requires restart to take effect.'), -- tooltip
228+
_('Installed location of ufraw-batch, requires restart to take effect.'), -- tooltip
229229
"ufraw-batch", -- default
230230
ufraw_batch_path_widget
231231
)

examples/panels_demo.lua

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,45 +93,45 @@ dt.gui.panel_show_all()
9393

9494
-- hide center_top, center_bottom, left, top, right, bottom in order
9595

96-
dt.print(_("Hiding all panels, one at a tme"))
96+
dt.print(_("hiding all panels, one at a tme"))
9797
sleep(1500)
9898

9999
for i = 1, #panels do
100-
dt.print(_("Hiding " .. panels[i]))
100+
dt.print(_("hiding " .. panels[i]))
101101
dt.gui.panel_hide(panels[i])
102102
sleep(1500)
103103
end
104104

105105
-- display left, then top, then right, then bottom
106106

107-
dt.print(_("Make panels visible, one at a time"))
107+
dt.print(_("make panels visible, one at a time"))
108108
sleep(1500)
109109

110110
for i = #panels, 1, -1 do
111-
dt.print(_("Showing " .. panels[i]))
111+
dt.print(_("showing " .. panels[i]))
112112
dt.gui.panel_show(panels[i])
113113
sleep(1500)
114114
end
115115

116116
-- hide all
117117

118-
dt.print(_("Hiding all panels"))
118+
dt.print(_("hiding all panels"))
119119
sleep(1500)
120120

121121
dt.gui.panel_hide_all()
122122
sleep(1500)
123123

124124
-- show all
125125

126-
dt.print(_("Showing all panels"))
126+
dt.print(_("showing all panels"))
127127
sleep(1500)
128128

129129
dt.gui.panel_show_all()
130130
sleep(1500)
131131

132132
-- restore
133133

134-
dt.print(_("Restoring panels to starting configuration"))
134+
dt.print(_("restoring panels to starting configuration"))
135135
for i = 1, #panels do
136136
if panel_status[i] then
137137
dt.gui.panel_show(panels[i])

examples/preferenceExamples.lua

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -38,31 +38,31 @@ du.check_min_api_version("2.0.1", "preferenceExamples")
3838
dt.preferences.register("preferenceExamples", -- script: This is a string used to avoid name collision in preferences (i.e namespace). Set it to something unique, usually the name of the script handling the preference.
3939
"preferenceExamplesString", -- name
4040
"string", -- type
41-
_("Example String"), -- label
42-
_("Example String Tooltip"), -- tooltip
41+
_("example string"), -- label
42+
_("example string tooltip"), -- tooltip
4343
"String") -- default
4444

4545
dt.preferences.register("preferenceExamples", -- script: This is a string used to avoid name collision in preferences (i.e namespace). Set it to something unique, usually the name of the script handling the preference.
4646
"preferenceExamplesBool", -- name
4747
"bool", -- type
48-
_("Example Boolean"), -- label
49-
_("Example Boolean Tooltip"), -- tooltip
48+
_("example boolean"), -- label
49+
_("example boolean tooltip"), -- tooltip
5050
true) -- default
5151

5252
dt.preferences.register("preferenceExamples", -- script: This is a string used to avoid name collision in preferences (i.e namespace). Set it to something unique, usually the name of the script handling the preference.
5353
"preferenceExamplesInteger", -- name
5454
"integer", -- type
55-
_("Example Integer"), -- label
56-
_("Example Integer Tooltip"), -- tooltip
55+
_("example integer"), -- label
56+
_("example integer tooltip"), -- tooltip
5757
2, -- default
5858
1, -- min
5959
99) -- max
6060

6161
dt.preferences.register("preferenceExamples", -- script: This is a string used to avoid name collision in preferences (i.e namespace). Set it to something unique, usually the name of the script handling the preference.
6262
"preferenceExamplesFloat", -- name
6363
"float", -- type
64-
_("Example Float"), -- label
65-
_("Example Float Tooltip"), -- tooltip
64+
_("example float"), -- label
65+
_("example float tooltip"), -- tooltip
6666
1.3, -- default
6767
1, -- min
6868
99, -- max
@@ -71,22 +71,22 @@ dt.preferences.register("preferenceExamples", -- script: This is a string
7171
dt.preferences.register("preferenceExamples", -- script: This is a string used to avoid name collision in preferences (i.e namespace). Set it to something unique, usually the name of the script handling the preference.
7272
"preferenceExamplesFile", -- name
7373
"file", -- type
74-
_("Example File"), -- label
75-
_("Example File Tooltip"), -- tooltip
74+
_("example file"), -- label
75+
_("example file tooltip"), -- tooltip
7676
"") -- default
7777

7878
dt.preferences.register("preferenceExamples", -- script: This is a string used to avoid name collision in preferences (i.e namespace). Set it to something unique, usually the name of the script handling the preference.
7979
"preferenceExamplesDirectory", -- name
8080
"directory", -- type
81-
_("Example Directory"), -- label
82-
_("Example Directory Tooltip"), -- tooltip
81+
_("example directory"), -- label
82+
_("example directory tooltip"), -- tooltip
8383
"") -- default
8484

8585
dt.preferences.register("preferenceExamples", -- script: This is a string used to avoid name collision in preferences (i.e namespace). Set it to something unique, usually the name of the script handling the preference.
8686
"preferenceExamplesEnum", -- name
8787
"enum", -- type
88-
_("Example Enum"), -- label
89-
_("Example Enum Tooltip"), -- tooltip
88+
_("example enum"), -- label
89+
_("example enum tooltip"), -- tooltip
9090
"Enum 1", -- default
9191
"Enum 1", "Enum 2") -- values
9292

examples/running_os.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ local function destroy()
4444
-- nothing to destroy
4545
end
4646

47-
dt.print(string.format(_("You are running: %s"), dt.configuration.running_os))
47+
dt.print(string.format(_("you are running: %s"), dt.configuration.running_os))
4848

4949
-- set the destroy routine so that script_manager can call it when
5050
-- it's time to destroy the script and then return the data to

0 commit comments

Comments
 (0)