fix: bulk fix (~330) missing translations

This commit is contained in:
Ankush Menat
2022-04-02 16:56:59 +05:30
committed by Ankush Menat
parent e8118fcdf1
commit a896895a9e
59 changed files with 179 additions and 173 deletions

View File

@@ -37,7 +37,7 @@ frappe.ui.form.on('LinkedIn Settings', {
let msg,color;
if (days>0){
msg = __("Your Session will be expire in ") + days + __(" days.");
msg = __("Your Session will be expire in {0} days.", [days]);
color = "green";
}
else {

View File

@@ -86,7 +86,7 @@ frappe.ui.form.on('Social Media Post', {
frm.trigger('add_post_btn');
}
if (frm.doc.post_status !='Deleted') {
frm.add_custom_button(('Delete Post'), function() {
frm.add_custom_button(__('Delete Post'), function() {
frappe.confirm(__('Are you sure want to delete the Post from Social Media platforms?'),
function() {
frappe.call({

View File

@@ -3,11 +3,12 @@
import frappe
from frappe import _
def execute(filters=None):
columns = [
{"fieldname": "creation_date", "label": "Date", "fieldtype": "Date", "width": 300},
{"fieldname": "creation_date", "label": _("Date"), "fieldtype": "Date", "width": 300},
{
"fieldname": "first_response_time",
"fieldtype": "Duration",