Skip to content

Commit 1fd2ca2

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

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

tools/executable_manager.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ local matches = grep(DARKTABLERC, "executable_paths")
140140
-- check if we have something to manage and exit if not
141141

142142
if #matches == 0 then
143-
dt.print(_("No executable paths found, exiting..."))
143+
dt.print(_("no executable paths found, exiting..."))
144144
return
145145
end
146146

@@ -208,7 +208,7 @@ for i,exec in ipairs(exec_table) do
208208
dt.new_widget("section_label"){label = _("reset")},
209209
dt.new_widget("button"){
210210
label = _("clear"),
211-
tooltip = _(string.format("Clear path for %s", exec)),
211+
tooltip = string.format(_("clear path for %s"), exec),
212212
clicked_callback = function()
213213
df.set_executable_path_preference(exec, "")
214214
executable_path_widgets[exec].value = ""

tools/script_manager.lua

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ local function activate(script)
390390
script_manager_running_script = nil
391391
if status then
392392
pref_write(script.script_name, "bool", true)
393-
log.msg(log.screen, string.format(_("Loaded %s"), script.script_name))
393+
log.msg(log.screen, string.format(_("loaded %s"), script.script_name))
394394
script.running = true
395395
if err ~= true then
396396
log.msg(log.debug, "got lib data")
@@ -541,7 +541,7 @@ local function update_scripts()
541541
local git = sm.executables.git
542542

543543
if not git then
544-
dt.print(_("ERROR: git not found. Install or specify the location of the git executable."))
544+
dt.print(_("ERROR: git not found, install or specify the location of the git executable."))
545545
return
546546
end
547547

@@ -625,7 +625,7 @@ local function install_scripts()
625625
local category = sm.widgets.new_category.text
626626

627627
if string.match(du.join(sm.categories, " "), ds.sanitize_lua(category)) then
628-
log.msg(log.screen, string.format(_("category %s is already in use. Please specify a different category name."), category))
628+
log.msg(log.screen, string.format(_("category %s is already in use, please specify a different category name."), category))
629629
log.msg(log.error, "category " .. category .. " already exists, returning...")
630630
restore_log_level(old_log_level)
631631
return
@@ -636,7 +636,7 @@ local function install_scripts()
636636
local git = sm.executables.git
637637

638638
if not git then
639-
dt.print(_("ERROR: git not found. Install or specify the location of the git executable."))
639+
dt.print(_("ERROR: git not found, install or specify the location of the git executable."))
640640
restore_log_level(old_log_level)
641641
return
642642
end
@@ -672,7 +672,7 @@ local function install_scripts()
672672
sm.widgets.new_category.text = ""
673673
sm.widgets.main_menu.selected = 3
674674
else
675-
dt.print(_("No scripts found to install"))
675+
dt.print(_("no scripts found to install"))
676676
log.msg(log.error, "scan_scripts returned " .. count .. " scripts found. Not adding to category_selector")
677677
end
678678
else
@@ -824,7 +824,7 @@ local function paginate(direction)
824824
else
825825
last = first + sm.page_status.num_buttons - 1
826826
end
827-
sm.widgets.page_status.label = string.format(_("Page %d of %d"), cur_page, max_pages)
827+
sm.widgets.page_status.label = string.format(_("page %d of %d"), cur_page, max_pages)
828828

829829
populate_buttons(category, first, last)
830830
restore_log_level(old_log_level)
@@ -1087,7 +1087,7 @@ sm.widgets.add_scripts = dt.new_widget("box"){
10871087
}
10881088

10891089
sm.widgets.allow_disable = dt.new_widget("check_button"){
1090-
label = _('Enable "Disable Scripts" button'),
1090+
label = _('enable "disable scripts" button'),
10911091
value = false,
10921092
clicked_callback = function(this)
10931093
if this.value == true then
@@ -1097,7 +1097,7 @@ sm.widgets.allow_disable = dt.new_widget("check_button"){
10971097
}
10981098

10991099
sm.widgets.disable_scripts = dt.new_widget("button"){
1100-
label = _("Disable Scripts"),
1100+
label = _("disable scripts"),
11011101
sensitive = false,
11021102
clicked_callback = function(this)
11031103
local LUARC = dt.configuration.config_dir .. PS .. "luarc"
@@ -1143,7 +1143,7 @@ end
11431143
local page_back = "<"
11441144
local page_forward = ">"
11451145

1146-
sm.widgets.page_status = dt.new_widget("label"){label = _("Page:")}
1146+
sm.widgets.page_status = dt.new_widget("label"){label = _("page:")}
11471147
sm.widgets.page_back = dt.new_widget("button"){
11481148
label = page_back,
11491149
clicked_callback = function(this)
@@ -1171,7 +1171,7 @@ sm.widgets.page_control = dt.new_widget("box"){
11711171

11721172
sm.widgets.scripts = dt.new_widget("box"){
11731173
orientation = vertical,
1174-
dt.new_widget("label"){label = _("Scripts")},
1174+
dt.new_widget("label"){label = _("scripts")},
11751175
sm.widgets.category_selector,
11761176
sm.widgets.page_control,
11771177
table.unpack(sm.widgets.buttons)
@@ -1200,7 +1200,7 @@ sm.widgets.change_buttons = dt.new_widget("button"){
12001200

12011201
sm.widgets.configure = dt.new_widget("box"){
12021202
orientation = "vertical",
1203-
dt.new_widget("label"){label = _("Configuration")},
1203+
dt.new_widget("label"){label = _("configuration")},
12041204
sm.widgets.num_buttons,
12051205
sm.widgets.change_buttons,
12061206
}

0 commit comments

Comments
 (0)