From 7c65445ab8208b963fc12536bb4162c3109d7933 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Cl=C3=ADmaco?= Date: Thu, 27 Jul 2023 18:18:06 -0300 Subject: [PATCH 01/12] Add i18n support and pt_BR translation --- locales/pt_BR/LC_MESSAGES/volto.po | 284 +++++++++++++++++++++++++ locales/volto.pot | 287 ++++++++++++++++++++++++++ src/BlockStyleWrapper/index.js | 4 +- src/Blocks/StretchBlock.jsx | 6 +- src/StyleWrapper/StyleWrapperEdit.jsx | 2 +- src/StyleWrapper/index.js | 4 +- src/StyleWrapper/schema.js | 247 ++++++++++++++++++---- src/Widgets/QuadSize.jsx | 17 +- 8 files changed, 802 insertions(+), 49 deletions(-) create mode 100644 locales/pt_BR/LC_MESSAGES/volto.po diff --git a/locales/pt_BR/LC_MESSAGES/volto.po b/locales/pt_BR/LC_MESSAGES/volto.po new file mode 100644 index 0000000..7aaefc8 --- /dev/null +++ b/locales/pt_BR/LC_MESSAGES/volto.po @@ -0,0 +1,284 @@ +msgid "" +msgstr "" +"Project-Id-Version: \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: \n" +"PO-Revision-Date: \n" +"Last-Translator: André Clímaco \n" +"Language-Team: \n" +"Language: pt_BR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: \n" +"X-Generator: Poedit 3.0.1\n" + +# defaultMessage: Center +#: Widgets/Align Widgets/TextAlign +msgid "Center" +msgstr "Centro" + +# defaultMessage: Clear selection +#: Widgets/TextAlign +msgid "Clear selection" +msgstr "Limpar seleção" + +# defaultMessage: Fit +#: Blocks/StretchBlock +msgid "Fit" +msgstr "" + +# defaultMessage: Full +#: Widgets/Align +msgid "Full" +msgstr "Completo" + +# defaultMessage: Justify +#: Widgets/TextAlign +msgid "Justify" +msgstr "Justificado" + +# defaultMessage: Left +#: Widgets/Align Widgets/TextAlign +msgid "Left" +msgstr "Esquerda" + +# defaultMessage: Narrow +#: Widgets/Align +msgid "Narrow" +msgstr "Estreito" + +# defaultMessage: None +#: Widgets/Align +msgid "None" +msgstr "" + +# defaultMessage: Right +#: Widgets/Align Widgets/TextAlign +msgid "Right" +msgstr "Direita" + +# defaultMessage: Stretch +#: Blocks/StretchBlock +msgid "Stretch" +msgstr "Esticar" + +# defaultMessage: Wide +#: Widgets/Align +msgid "Wide" +msgstr "Largo" + +# defaultMessage: Stretch block to the edges +#: Blocks/StretchBlock +msgid "btn-stretch" +msgstr "Estique o bloco até as bordas" + +# defaultMessage: Customize +#: Widgets/QuadSize +msgid "field-customize" +msgstr "Customizar" + +# defaultMessage: Size +#: Widgets/QuadSize +msgid "field-size" +msgstr "Tamanho" + +# defaultMessage: Advanced +#: StyleWrapper/schema +msgid "fieldsets-advanced" +msgstr "Avançado" + +# defaultMessage: Decorations +#: StyleWrapper/schema +msgid "fieldsets-decorations" +msgstr "Decorações" + +# defaultMessage: Default +#: StyleWrapper/schema +msgid "fieldsets-default" +msgstr "Padrão" + +# defaultMessage: Layout +#: StyleWrapper/schema +msgid "fieldsets-layout" +msgstr "Disposição" + +# defaultMessage: Preset styles +#: StyleWrapper/schema +msgid "fieldsets-presets" +msgstr "Estilos predefinidos" + +# defaultMessage: Standard +#: StyleWrapper/schema +msgid "fieldsets-standard" +msgstr "Padrões" + +# defaultMessage: Align +#: StyleWrapper/schema +msgid "properties-align" +msgstr "Alinhar" + +# defaultMessage: Background color +#: StyleWrapper/schema +msgid "properties-background-color" +msgstr "Cor de fundo" + +# defaultMessage: Background image +#: StyleWrapper/schema +msgid "properties-background-image" +msgstr "Imagem de fundo" + +# defaultMessage: Rounded Corner +#: StyleWrapper/schema +msgid "properties-border-radius" +msgstr "Raio da borda" + +# defaultMessage: Pushes selected block under floated content +#: StyleWrapper/schema +msgid "properties-clear-description" +msgstr "Empurra o bloco selecionado sob o conteúdo flutuante" + +# defaultMessage: Clear floats +#: StyleWrapper/schema +msgid "properties-clear-title" +msgstr "Flutuadores transparentes" + +# defaultMessage: A custom CSS class, applicable just to this block +#: StyleWrapper/schema +msgid "properties-custom-class-description" +msgstr "Uma classe CSS personalizada, aplicável apenas a este bloco" + +# defaultMessage: Custom CSS Class +#: StyleWrapper/schema +msgid "properties-custom-class-title" +msgstr "Classe CSS personalizada" + +# defaultMessage: A custom id, applicable just to this block +#: StyleWrapper/schema +msgid "properties-custom-id-description" +msgstr "Um ID personalizado, aplicável apenas a este bloco" + +# defaultMessage: Custom Id +#: StyleWrapper/schema +msgid "properties-custom-id-title" +msgstr "ID personalizado" + +# defaultMessage: Relative to normal size of text in the block +#: StyleWrapper/schema +msgid "properties-font-size-description" +msgstr "Relativo ao tamanho normal do texto no bloco" + +# defaultMessage: Font size +#: StyleWrapper/schema +msgid "properties-font-size-title" +msgstr "Tamanho da fonte" + +# defaultMessage: The weight (or boldness) of the font +#: StyleWrapper/schema +msgid "properties-font-weight-description" +msgstr "O peso da fonte" + +# defaultMessage: Font weight +#: StyleWrapper/schema +msgid "properties-font-weight-title" +msgstr "Espessura da fonte" + +# defaultMessage: Element height, expressed as CSS dimension +#: StyleWrapper/schema +msgid "properties-height-description" +msgstr "Altura do elemento, expressa como dimensão CSS" + +# defaultMessage: Element height +#: StyleWrapper/schema +msgid "properties-height-title" +msgstr "Altura do elemento" + +# defaultMessage: Hide this bloc +#: StyleWrapper/schema +msgid "properties-hidden-description" +msgstr "Ocultar este bloco" + +# defaultMessage: Hidden +#: StyleWrapper/schema +msgid "properties-hidden-title" +msgstr "Ocultar" + +# defaultMessage: First letter is styled as a drop cop +#: StyleWrapper/schema +msgid "properties-is-drop-cap-description" +msgstr "A primeira letra é estilizada como destaque" + +# defaultMessage: Drop cap +#: StyleWrapper/schema +msgid "properties-is-drop-cap-title" +msgstr "Capitular" + +# defaultMessage: Maximize block to viewport height +#: StyleWrapper/schema +msgid "properties-is-screen-height-description" +msgstr "Maximizar o bloco para a altura da janela de visualização" + +# defaultMessage: Screen height +#: StyleWrapper/schema +msgid "properties-is-screen-height-title" +msgstr "Altura da tela" + +# defaultMessage: Margin +#: StyleWrapper/schema +msgid "properties-margin" +msgstr "Margem" + +# defaultMessage: Padding +#: StyleWrapper/schema +msgid "properties-padding" +msgstr "Espaçamento" + +# defaultMessage: Shadow color +#: StyleWrapper/schema +msgid "properties-shadow-color" +msgstr "Cor da sombra" + +# defaultMessage: Shadow depth +#: StyleWrapper/schema +msgid "properties-shadow-depth" +msgstr "Profundidade da sombra" + +# defaultMessage: Box size +#: StyleWrapper/schema +msgid "properties-size" +msgstr "Tamanho" + +# defaultMessage: Stretch +#: StyleWrapper/schema +msgid "properties-stretch" +msgstr "Esticar" + +# defaultMessage: Style +#: StyleWrapper/schema +msgid "properties-style-name" +msgstr "Estilo" + +# defaultMessage: Text align +#: StyleWrapper/schema +msgid "properties-text-align" +msgstr "Alinhamento de texto" + +# defaultMessage: Text color +#: StyleWrapper/schema +msgid "properties-text-color" +msgstr "Cor do texto" + +# defaultMessage: A predefined theme, applicable just to this block +#: StyleWrapper/schema +msgid "properties-theme-description" +msgstr "Um tema predefinido, aplicável apenas a este bloco" + +# defaultMessage: Theme +#: StyleWrapper/schema +msgid "properties-theme-title" +msgstr "Tema" + +# defaultMessage: Styles +#: StyleWrapper/schema +msgid "styles-block" +msgstr "Estilos" diff --git a/locales/volto.pot b/locales/volto.pot index e69de29..0979b1a 100644 --- a/locales/volto.pot +++ b/locales/volto.pot @@ -0,0 +1,287 @@ +msgid "" +msgstr "" +"Project-Id-Version: Plone\n" +"POT-Creation-Date: 2023-07-27T21:08:52.309Z\n" +"Last-Translator: Plone i18n \n" +"Language-Team: Plone i18n \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" +"Language-Code: en\n" +"Language-Name: English\n" +"Preferred-Encodings: utf-8\n" +"Domain: volto\n" + +#: Widgets/Align +#: Widgets/TextAlign +# defaultMessage: Center +msgid "Center" +msgstr "" + +#: Widgets/TextAlign +# defaultMessage: Clear selection +msgid "Clear selection" +msgstr "" + +#: Blocks/StretchBlock +# defaultMessage: Fit +msgid "Fit" +msgstr "" + +#: Widgets/Align +# defaultMessage: Full +msgid "Full" +msgstr "" + +#: Widgets/TextAlign +# defaultMessage: Justify +msgid "Justify" +msgstr "" + +#: Widgets/Align +#: Widgets/TextAlign +# defaultMessage: Left +msgid "Left" +msgstr "" + +#: Widgets/Align +# defaultMessage: Narrow +msgid "Narrow" +msgstr "" + +#: Widgets/Align +# defaultMessage: None +msgid "None" +msgstr "" + +#: Widgets/Align +#: Widgets/TextAlign +# defaultMessage: Right +msgid "Right" +msgstr "" + +#: Blocks/StretchBlock +# defaultMessage: Stretch +msgid "Stretch" +msgstr "" + +#: Widgets/Align +# defaultMessage: Wide +msgid "Wide" +msgstr "" + +#: Blocks/StretchBlock +# defaultMessage: Stretch block to the edges +msgid "btn-stretch" +msgstr "" + +#: Widgets/QuadSize +# defaultMessage: Customize +msgid "field-customize" +msgstr "" + +#: Widgets/QuadSize +# defaultMessage: Size +msgid "field-size" +msgstr "" + +#: StyleWrapper/schema +# defaultMessage: Advanced +msgid "fieldsets-advanced" +msgstr "" + +#: StyleWrapper/schema +# defaultMessage: Decorations +msgid "fieldsets-decorations" +msgstr "" + +#: StyleWrapper/schema +# defaultMessage: Default +msgid "fieldsets-default" +msgstr "" + +#: StyleWrapper/schema +# defaultMessage: Layout +msgid "fieldsets-layout" +msgstr "" + +#: StyleWrapper/schema +# defaultMessage: Preset styles +msgid "fieldsets-presets" +msgstr "" + +#: StyleWrapper/schema +# defaultMessage: Standard +msgid "fieldsets-standard" +msgstr "" + +#: StyleWrapper/schema +# defaultMessage: Align +msgid "properties-align" +msgstr "" + +#: StyleWrapper/schema +# defaultMessage: Background color +msgid "properties-background-color" +msgstr "" + +#: StyleWrapper/schema +# defaultMessage: Background image +msgid "properties-background-image" +msgstr "" + +#: StyleWrapper/schema +# defaultMessage: Rounded Corner +msgid "properties-border-radius" +msgstr "" + +#: StyleWrapper/schema +# defaultMessage: Pushes selected block under floated content +msgid "properties-clear-description" +msgstr "" + +#: StyleWrapper/schema +# defaultMessage: Clear floats +msgid "properties-clear-title" +msgstr "" + +#: StyleWrapper/schema +# defaultMessage: A custom CSS class, applicable just to this block +msgid "properties-custom-class-description" +msgstr "" + +#: StyleWrapper/schema +# defaultMessage: Custom CSS Class +msgid "properties-custom-class-title" +msgstr "" + +#: StyleWrapper/schema +# defaultMessage: A custom id, applicable just to this block +msgid "properties-custom-id-description" +msgstr "" + +#: StyleWrapper/schema +# defaultMessage: Custom Id +msgid "properties-custom-id-title" +msgstr "" + +#: StyleWrapper/schema +# defaultMessage: Relative to normal size of text in the block +msgid "properties-font-size-description" +msgstr "" + +#: StyleWrapper/schema +# defaultMessage: Font size +msgid "properties-font-size-title" +msgstr "" + +#: StyleWrapper/schema +# defaultMessage: The weight (or boldness) of the font +msgid "properties-font-weight-description" +msgstr "" + +#: StyleWrapper/schema +# defaultMessage: Font weight +msgid "properties-font-weight-title" +msgstr "" + +#: StyleWrapper/schema +# defaultMessage: Element height, expressed as CSS dimension +msgid "properties-height-description" +msgstr "" + +#: StyleWrapper/schema +# defaultMessage: Element height +msgid "properties-height-title" +msgstr "" + +#: StyleWrapper/schema +# defaultMessage: Hide this bloc +msgid "properties-hidden-description" +msgstr "" + +#: StyleWrapper/schema +# defaultMessage: Hidden +msgid "properties-hidden-title" +msgstr "" + +#: StyleWrapper/schema +# defaultMessage: First letter is styled as a drop cop +msgid "properties-is-drop-cap-description" +msgstr "" + +#: StyleWrapper/schema +# defaultMessage: Drop cap +msgid "properties-is-drop-cap-title" +msgstr "" + +#: StyleWrapper/schema +# defaultMessage: Maximize block to viewport height +msgid "properties-is-screen-height-description" +msgstr "" + +#: StyleWrapper/schema +# defaultMessage: Screen height +msgid "properties-is-screen-height-title" +msgstr "" + +#: StyleWrapper/schema +# defaultMessage: Margin +msgid "properties-margin" +msgstr "" + +#: StyleWrapper/schema +# defaultMessage: Padding +msgid "properties-padding" +msgstr "" + +#: StyleWrapper/schema +# defaultMessage: Shadow color +msgid "properties-shadow-color" +msgstr "" + +#: StyleWrapper/schema +# defaultMessage: Shadow depth +msgid "properties-shadow-depth" +msgstr "" + +#: StyleWrapper/schema +# defaultMessage: Box size +msgid "properties-size" +msgstr "" + +#: StyleWrapper/schema +# defaultMessage: Stretch +msgid "properties-stretch" +msgstr "" + +#: StyleWrapper/schema +# defaultMessage: Style +msgid "properties-style-name" +msgstr "" + +#: StyleWrapper/schema +# defaultMessage: Text align +msgid "properties-text-align" +msgstr "" + +#: StyleWrapper/schema +# defaultMessage: Text color +msgid "properties-text-color" +msgstr "" + +#: StyleWrapper/schema +# defaultMessage: A predefined theme, applicable just to this block +msgid "properties-theme-description" +msgstr "" + +#: StyleWrapper/schema +# defaultMessage: Theme +msgid "properties-theme-title" +msgstr "" + +#: StyleWrapper/schema +# defaultMessage: Styles +msgid "styles-block" +msgstr "" diff --git a/src/BlockStyleWrapper/index.js b/src/BlockStyleWrapper/index.js index d711e7b..05b8523 100644 --- a/src/BlockStyleWrapper/index.js +++ b/src/BlockStyleWrapper/index.js @@ -1,2 +1,2 @@ -export BlockStyleWrapperEdit from './BlockStyleWrapperEdit'; -export BlockStyleWrapperView from './BlockStyleWrapperView'; +export {default as BlockStyleWrapperEdit} from './BlockStyleWrapperEdit'; +export {default as BlockStyleWrapperView} from './BlockStyleWrapperView'; diff --git a/src/Blocks/StretchBlock.jsx b/src/Blocks/StretchBlock.jsx index 784a173..5d1ca9d 100644 --- a/src/Blocks/StretchBlock.jsx +++ b/src/Blocks/StretchBlock.jsx @@ -14,6 +14,10 @@ const messages = defineMessages({ id: 'Stretch', defaultMessage: 'Stretch', }, + btnStretch: { + id: 'btn-stretch', + defaultMessage: 'Stretch block to the edges' + } }); const StretchBlock = ({ stretch, onChangeBlock, data, intl, block }) => { @@ -48,7 +52,7 @@ const StretchBlock = ({ stretch, onChangeBlock, data, intl, block }) => {