mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 00:14:50 +00:00
Merge pull request #44816 from mahsem/strings_for_translation
fix: strings for translation
This commit is contained in:
@@ -319,7 +319,7 @@ def get_columns(additional_table_columns, filters):
|
|||||||
"width": 100,
|
"width": 100,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": _("Rate"),
|
"label": _("Tax Rate"),
|
||||||
"fieldname": "rate",
|
"fieldname": "rate",
|
||||||
"fieldtype": "Float",
|
"fieldtype": "Float",
|
||||||
"options": "currency",
|
"options": "currency",
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ def get_fiscal_years(
|
|||||||
# No match for restricting selectors
|
# No match for restricting selectors
|
||||||
if raise_on_missing:
|
if raise_on_missing:
|
||||||
error_msg = _("""{0} {1} is not in any active Fiscal Year""").format(
|
error_msg = _("""{0} {1} is not in any active Fiscal Year""").format(
|
||||||
label, formatdate(transaction_date)
|
_(label), formatdate(transaction_date)
|
||||||
)
|
)
|
||||||
if company:
|
if company:
|
||||||
error_msg = _("""{0} for {1}""").format(error_msg, frappe.bold(company))
|
error_msg = _("""{0} for {1}""").format(error_msg, frappe.bold(company))
|
||||||
|
|||||||
@@ -230,8 +230,8 @@ class ForecastingReport(ExponentialSmoothingForecast):
|
|||||||
"data": {
|
"data": {
|
||||||
"labels": labels,
|
"labels": labels,
|
||||||
"datasets": [
|
"datasets": [
|
||||||
{"name": "Demand", "values": self.total_demand},
|
{"name": _("Demand"), "values": self.total_demand},
|
||||||
{"name": "Forecast", "values": self.total_forecast},
|
{"name": _("Forecast"), "values": self.total_forecast},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
"type": "line",
|
"type": "line",
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ def get_data(filters, columns):
|
|||||||
|
|
||||||
for label in labels:
|
for label in labels:
|
||||||
work = {}
|
work = {}
|
||||||
work["Status"] = label
|
work["Status"] = _(label)
|
||||||
for _dummy, end_date in ranges:
|
for _dummy, end_date in ranges:
|
||||||
period = get_period(end_date, filters)
|
period = get_period(end_date, filters)
|
||||||
if periodic_data.get(label).get(period):
|
if periodic_data.get(label).get(period):
|
||||||
|
|||||||
@@ -148,10 +148,10 @@ class BOMConfigurator {
|
|||||||
if (!node.expanded) {
|
if (!node.expanded) {
|
||||||
view.tree.load_children(node, true);
|
view.tree.load_children(node, true);
|
||||||
$(node.parent[0]).find(".tree-children").show();
|
$(node.parent[0]).find(".tree-children").show();
|
||||||
node.$toolbar.find(".expand-all-btn").html("Collapse All");
|
node.$toolbar.find(".expand-all-btn").html(__("Collapse All"));
|
||||||
} else {
|
} else {
|
||||||
node.$tree_link.trigger("click");
|
node.$tree_link.trigger("click");
|
||||||
node.$toolbar.find(".expand-all-btn").html("Expand All");
|
node.$toolbar.find(".expand-all-btn").html(__("Expand All"));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
condition: function (node) {
|
condition: function (node) {
|
||||||
@@ -191,10 +191,10 @@ class BOMConfigurator {
|
|||||||
if (!node.expanded) {
|
if (!node.expanded) {
|
||||||
view.tree.load_children(node, true);
|
view.tree.load_children(node, true);
|
||||||
$(node.parent[0]).find(".tree-children").show();
|
$(node.parent[0]).find(".tree-children").show();
|
||||||
node.$toolbar.find(".expand-all-btn").html("Collapse All");
|
node.$toolbar.find(".expand-all-btn").html(__("Collapse All"));
|
||||||
} else {
|
} else {
|
||||||
node.$tree_link.trigger("click");
|
node.$tree_link.trigger("click");
|
||||||
node.$toolbar.find(".expand-all-btn").html("Expand All");
|
node.$toolbar.find(".expand-all-btn").html(__("Expand All"));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
condition: function (node) {
|
condition: function (node) {
|
||||||
|
|||||||
@@ -336,7 +336,7 @@ frappe.ui.form.on("Material Request", {
|
|||||||
default: 1,
|
default: 1,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
primary_action_label: "Get Items",
|
primary_action_label: __("Get Items"),
|
||||||
primary_action(values) {
|
primary_action(values) {
|
||||||
if (!values) return;
|
if (!values) return;
|
||||||
values["company"] = frm.doc.company;
|
values["company"] = frm.doc.company;
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ frappe.ready(function() {
|
|||||||
|
|
||||||
if($("#footer-subscribe-email").val() && validate_email($("#footer-subscribe-email").val())) {
|
if($("#footer-subscribe-email").val() && validate_email($("#footer-subscribe-email").val())) {
|
||||||
$("#footer-subscribe-email").attr('disabled', true);
|
$("#footer-subscribe-email").attr('disabled', true);
|
||||||
$("#footer-subscribe-button").html("Sending...")
|
$("#footer-subscribe-button").html(__("Sending..."))
|
||||||
.attr("disabled", true);
|
.attr("disabled", true);
|
||||||
erpnext.subscribe_to_newsletter({
|
erpnext.subscribe_to_newsletter({
|
||||||
email: $("#footer-subscribe-email").val(),
|
email: $("#footer-subscribe-email").val(),
|
||||||
|
|||||||
Reference in New Issue
Block a user