From 5bdcc4cbe08d85463960f6d6abcd9adbc6fff570 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Thu, 21 May 2020 19:38:49 +0530 Subject: [PATCH] fix: translate tour for web page --- frappe/website/doctype/web_page/web_page.js | 44 ++++++++++----------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/frappe/website/doctype/web_page/web_page.js b/frappe/website/doctype/web_page/web_page.js index c714b98241..437a86b5d0 100644 --- a/frappe/website/doctype/web_page/web_page.js +++ b/frappe/website/doctype/web_page/web_page.js @@ -52,54 +52,54 @@ frappe.ui.form.on('Web Page', { frappe.tour['Web Page'] = [ { fieldname: "title", - title: "Title of the page", - description: "This title will be used as the title of the webpage as well as in meta tags", + title: __("Title of the page"), + description: __("This title will be used as the title of the webpage as well as in meta tags"), }, { fieldname: "published", - title: "Makes the page public", - description: "Checking this will publish the page on your website and it'll be visible to everyone.", + title: __("Makes the page public"), + description: __("Checking this will publish the page on your website and it'll be visible to everyone."), }, { fieldname: "route", - title: "URL of the page", - description: "This will be automatically generated when you publish the page, you can also enter a route yourself if you wish", + title: __("URL of the page"), + description: __("This will be automatically generated when you publish the page, you can also enter a route yourself if you wish"), }, { fieldname: "content_type", - title: "Content type for building the page", - description: `You can select one from the following,
+ title: __("Content type for building the page"), + description: `${__('You can select one from the following,')}
` }, { fieldname: "insert_code", - title: "Client Script", - description: "Checking this will show a text area where you can write custom javascript that will run on this page.", + title: __("Client Script"), + description: __("Checking this will show a text area where you can write custom javascript that will run on this page."), }, { fieldname: "meta_title", - title: "Meta title for SEO", - description: "By default the title is used as meta title, adding a value here will override it.", + title: __("Meta title for SEO"), + description: __("By default the title is used as meta title, adding a value here will override it."), }, { fieldname: "meta_title", - title: "Meta Title", - description: "By default the title is used as meta title, adding a value here will override it.", + title: __("Meta Title"), + description: __("By default the title is used as meta title, adding a value here will override it."), }, { fieldname: "meta_description", - title: "Meta Description", - description: "The meta description is an HTML attribute that provides a brief summary of a web page. Search engines such as Google often display the meta description in search results, which can influence click-through rates." + title: __("Meta Description"), + description: __("The meta description is an HTML attribute that provides a brief summary of a web page. Search engines such as Google often display the meta description in search results, which can influence click-through rates.") }, { fieldname: "meta_image", - title: "Meta Image", - description: "The meta image is unique image representing the content of the page. Images for this Card should be at least 280px in width, and at least 150px in height." + title: __("Meta Image"), + description: __("The meta image is unique image representing the content of the page. Images for this Card should be at least 280px in width, and at least 150px in height.") }, ]; \ No newline at end of file