change labels to lower case to fit darktable style
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
To do this add this line to the file .config/darktable/luarc:
|
||||
require "contrib/photils"
|
||||
* Select an image
|
||||
* Press "Get Tags"
|
||||
* Press "get tags"
|
||||
* Select the tags you want from a list of suggestions
|
||||
* Press "Attach .. Tags" to add the selected tags to your image
|
||||
--]]
|
||||
@@ -97,7 +97,7 @@ local GUI = {
|
||||
orientation = "vertical",
|
||||
sensitive = true,
|
||||
dt.new_widget("button") {
|
||||
label = _("Get Tags"),
|
||||
label = _("get tags"),
|
||||
sensitive = photils_installed,
|
||||
clicked_callback = function() PHOTILS.on_tags_clicked() end
|
||||
},
|
||||
@@ -143,7 +143,7 @@ local GUI = {
|
||||
hard_min = 0,
|
||||
soft_max = 100,
|
||||
soft_min = 0,
|
||||
label = _("Min Confidence Value")
|
||||
label = _("min confidence value")
|
||||
},
|
||||
warning = dt.new_widget("label")
|
||||
}
|
||||
@@ -166,7 +166,7 @@ end
|
||||
function PHOTILS.paginate()
|
||||
PHOTILS.in_pagination = true
|
||||
local num_pages = math.ceil(#PHOTILS.tags / PHOTILS.per_page)
|
||||
GUI.page_label.label = string.format(_(" Page %s of %s "), PHOTILS.page,
|
||||
GUI.page_label.label = string.format(_(" page %s of %s "), PHOTILS.page,
|
||||
num_pages)
|
||||
|
||||
if PHOTILS.page <= 1 then
|
||||
@@ -312,7 +312,7 @@ function PHOTILS.on_tags_clicked()
|
||||
end
|
||||
|
||||
if #PHOTILS.tags == 0 then
|
||||
local msg = string.format(_("No tags where found"), MODULE_NAME)
|
||||
local msg = string.format(_("no tags where found"), MODULE_NAME)
|
||||
GUI.warning_label.label = msg
|
||||
GUI.stack.active = GUI.error_view
|
||||
return
|
||||
@@ -337,7 +337,7 @@ function PHOTILS.tag_selected(tag_button)
|
||||
GUI.attach_button.label = ""
|
||||
GUI.attach_button.sensitive = false
|
||||
else
|
||||
GUI.attach_button.label = string.format(_("Attach %d Tags"),
|
||||
GUI.attach_button.label = string.format(_("attach %d tags"),
|
||||
num_selected)
|
||||
GUI.attach_button.sensitive = true
|
||||
end
|
||||
@@ -373,7 +373,7 @@ if not photils_installed then
|
||||
GUI.warning_label.label = _("photils-cli not found")
|
||||
dt.print_log(_("photils-cli not found"))
|
||||
else
|
||||
GUI.warning_label.label = _("Select an image, click \"Get Tags\" and get \nsuggestions for tags.")
|
||||
GUI.warning_label.label = _("Select an image, click \"get tags\" and get \nsuggestions for tags.")
|
||||
end
|
||||
|
||||
GUI.pagination = dt.new_widget("box") {
|
||||
|
||||
@@ -17,15 +17,15 @@ msgstr ""
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: ../../../contrib/photils.lua:97
|
||||
msgid "Get Tags"
|
||||
msgstr "Hole Stichwörter"
|
||||
msgid "get tags"
|
||||
msgstr "hole stichwörter"
|
||||
|
||||
#: ../../../contrib/photils.lua:128
|
||||
msgid "requires a restart to be applied"
|
||||
msgstr "erfordert einen Neustart um angewendet zu werden"
|
||||
|
||||
#: ../../../contrib/photils.lua:155
|
||||
msgid "min confidence value"
|
||||
msgstr "min vertrauenswert"
|
||||
|
||||
msgid ""
|
||||
"The suggested tags were not generated\n"
|
||||
" for the currently selected image!"
|
||||
@@ -33,48 +33,38 @@ msgstr ""
|
||||
"Die vorgeschlagenen Stichwörter wurden für das\n"
|
||||
"aktuell ausgewählte Bild nicht generiert!"
|
||||
|
||||
#: ../../../contrib/photils.lua:161
|
||||
#, lua-format
|
||||
msgid " Page %s of %s "
|
||||
msgstr " Seite %s von %s "
|
||||
msgid " page %s of %s "
|
||||
msgstr " seite %s von %s "
|
||||
|
||||
#: ../../../contrib/photils.lua:204
|
||||
msgid "Tags successfully attached to image"
|
||||
msgstr "Stichwörter erfolgreich an Bild angefügt"
|
||||
|
||||
#: ../../../contrib/photils.lua:215
|
||||
#, lua-format
|
||||
msgid "Error writing to `%s`"
|
||||
msgstr "Fehler beim Schreiben in `%s`"
|
||||
|
||||
#: ../../../contrib/photils.lua:229
|
||||
#, lua-format
|
||||
msgid "%s failed, see terminal output for details"
|
||||
msgstr "%s fehlgeschlagen, siehe Terminal-Ausgabe für Details"
|
||||
|
||||
#: ../../../contrib/photils.lua:243
|
||||
#, lua-format
|
||||
msgid "%s found %d tags for your image"
|
||||
msgstr "%s gefunden %d-Stichwörter für Ihr Bild"
|
||||
|
||||
#: ../../../contrib/photils.lua:257
|
||||
msgid "No image selected."
|
||||
msgstr "Kein Bild ausgewählt."
|
||||
|
||||
#: ../../../contrib/photils.lua:262
|
||||
msgid "This plugin can only handle a single image."
|
||||
msgstr "Dieses Plugin kann nur ein einziges Bild verarbeiten."
|
||||
|
||||
#: ../../../contrib/photils.lua:293
|
||||
#, lua-format
|
||||
msgid "Attach %d Tags"
|
||||
msgstr "%d-Stichwörter anhängen"
|
||||
msgid "attach %d tags"
|
||||
msgstr "%d stichwörter anhängen"
|
||||
|
||||
#: ../../../contrib/photils.lua:326 ../../../contrib/photils.lua:327
|
||||
msgid "photils-cli not found"
|
||||
msgstr "photils-cli nicht gefunden"
|
||||
|
||||
#: ../../../contrib/photils.lua:329
|
||||
msgid ""
|
||||
"Select an image, click \"Get Tags\" and get \n"
|
||||
"suggestions for tags."
|
||||
|
||||
Reference in New Issue
Block a user