fix: translation context for print format align values (#17026)

This commit is contained in:
HENRY Florian 2022-05-31 10:45:21 +02:00 committed by GitHub
parent 75b7a823a9
commit 1826c9e9af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 4 deletions

View file

@ -441,7 +441,7 @@ frappe.PrintFormatBuilder = class PrintFormatBuilder {
const field = $(e.currentTarget).parent();
// new dialog
var d = new frappe.ui.Dialog({
title: "Set Properties",
title: __("Set Properties"),
fields: [
{
label: __("Label"),
@ -452,7 +452,8 @@ frappe.PrintFormatBuilder = class PrintFormatBuilder {
label: __("Align Value"),
fieldname: "align",
fieldtype: "Select",
options: [{'label': __('Left'), 'value': 'left'}, {'label': __('Right'), 'value': 'right'}]
options: [{'label': __('Left', null, 'alignment'), 'value': 'left'},
{'label': __('Right', null, 'alignment'), 'value': 'right'}]
},
{
label: __("Remove Field"),

View file

@ -181,8 +181,8 @@ export default {
return [
{ label: __("Top"), fieldname: "margin_top" },
{ label: __("Bottom"), fieldname: "margin_bottom" },
{ label: __("Left"), fieldname: "margin_left" },
{ label: __("Right"), fieldname: "margin_right" }
{ label: __("Left", null, 'alignment'), fieldname: "margin_left" },
{ label: __("Right", null, 'alignment'), fieldname: "margin_right" }
];
},
fields() {

View file

@ -4717,3 +4717,6 @@ Document has been cancelled,Document annulé
Document is in draft state,Document au statut brouillon
Copy to Clipboard,Copier vers le presse-papiers
Don't have an account?,Vous n'avez pas de compte?
Left:alignment,Gauche
Right:alignment,Droite
Set Properties,Gérer les proriétés

Can't render this file because it has a wrong number of fields in line 421.