mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 03:29:00 +08:00
Fix i18n with replaced texts
Also added a description for the translator. Contributes to issue CURA-4341.
This commit is contained in:
parent
e5629f26de
commit
3150420160
@ -68,12 +68,13 @@ class FirmwareUpdateCheckerJob(Job):
|
|||||||
# notify the user when no new firmware version is available.
|
# notify the user when no new firmware version is available.
|
||||||
if (checked_version != "") and (checked_version != current_version):
|
if (checked_version != "") and (checked_version != current_version):
|
||||||
Logger.log("i", "SHOWING FIRMWARE UPDATE MESSAGE")
|
Logger.log("i", "SHOWING FIRMWARE UPDATE MESSAGE")
|
||||||
message = Message(i18n_catalog.i18nc("@info", "To ensure that your %s is equipped with the latest "
|
message = Message(i18n_catalog.i18nc("@info Both %s get replaced with the printer name.",
|
||||||
|
"To ensure that your %s is equipped with the latest "
|
||||||
"features it is recommended to update the firmware "
|
"features it is recommended to update the firmware "
|
||||||
"regularly. This can be done on the %s (when connected "
|
"regularly. This can be done on the %s (when connected "
|
||||||
"to the network) or via USB."
|
"to the network) or via USB.")
|
||||||
% (machine_name, machine_name)),
|
% (machine_name, machine_name),
|
||||||
title = i18n_catalog.i18nc("@info:title", "New %s firmware available" % machine_name))
|
title = i18n_catalog.i18nc("@info:title The %s gets replaced with the printer name.", "New %s firmware available") % machine_name)
|
||||||
message.addAction("download", i18n_catalog.i18nc("@action:button", "Download"), "[no_icon]", "[no_description]")
|
message.addAction("download", i18n_catalog.i18nc("@action:button", "Download"), "[no_icon]", "[no_description]")
|
||||||
|
|
||||||
# If we do this in a cool way, the download url should be available in the JSON file
|
# If we do this in a cool way, the download url should be available in the JSON file
|
||||||
|
Loading…
x
Reference in New Issue
Block a user