The body of the Bonus message.
+` + + game.i18n.format('APSJ.panelBody') + + `
diff --git a/languages/de.json b/languages/de.json new file mode 100644 index 0000000..0622a32 --- /dev/null +++ b/languages/de.json @@ -0,0 +1,62 @@ +{ + "APSJ.menuEnableParchmentName": "Pergament aktivieren", + "APSJ.menuEnableParchmentHint": "Ersetzen Sie den standardmäßigen weißen Pergamenthintergrund durch einen alten, bräunlich-gelben Look.", + "APSJ.menuColorThemeName": "Farbthema", + + "APSJ.colorThemeNone": "Keiner", + "APSJ.colorThemeBlue": "Blau", + "APSJ.colorThemeCyan": "Zyan", + "APSJ.colorThemeGreen": "Grün", + "APSJ.colorThemeOrange": "Orange", + "APSJ.colorThemePurple": "Violett", + "APSJ.colorThemeRed": "Rot (Standard)", + "APSJ.colorThemeYellow": "Gelb", + + "APSJ.textHeadingTitleName": "Stilvolles Überschrift (Titel)", + "APSJ.textHeadingName": "Stilvolle Überschrift", + "APSJ.textDataHeadingName": "Stilvolle Datenüberschrift", + "APSJ.textDataName": "Stilvolle Daten", + "APSJ.textParagraphName": "Stilvoller Absatz", + + "APSJ.panelBonusName": "Panel: Bonus", + "APSJ.panelBonusHeading": "Bonus-Panel", + "APSJ.panelBonusDescription": "Ein stilvolles Panel, um eine Bonusnachricht bereitzustellen.", + "APSJ.panelEffectName": "Panel: Effekt.", + "APSJ.panelEffectHeading": "Effektverkleidung", + "APSJ.panelEffectDescription": "Ein stilvolles Panel, um eine Nachricht über Effekte bereitzustellen.", + "APSJ.panelInformationName": "Panel: Informationen.", + "APSJ.panelInformationHeading": "Informationsfenster", + "APSJ.panelInformationDescription": "Ein stilvolles Panel, um eine Informationsnachricht bereitzustellen.", + "APSJ.panelLootName": "Panel: Loot", + "APSJ.panelLootHeading": "Beutefeld", + "APSJ.panelLootDescription": "Ein stilvolles Panel, um eine Beutenachricht bereitzustellen.", + "APSJ.panelNoteName": "Panel: Anmerkung.", + "APSJ.panelNoteHeading": "Notizbeifeld", + "APSJ.panelNoteDescription": "Ein stilvolles Panel, um eine Notiz bereitzustellen.", + "APSJ.panelTrapName": "Panel: Falle", + "APSJ.panelTrapHeading": "Fallenfeld", + "APSJ.panelTrapDescription": "Ein stilvolles Panel, um eine Nachricht über eine Falle bereitzustellen.", + "APSJ.panelWarningName": "Panel: Warnung", + "APSJ.panelWarningHeading": "Warnverkleidung.", + "APSJ.panelWarningDescription": "Ein stilvolles Panel, um eine Warnmeldung bereitzustellen.", + "APSJ.panelBody": "Der Körper der Nachricht.Löschen Sie dies für eine Bannerstil-Nachricht.", + + "APSJ.blockDescription": "Beschreibung", + "APSJ.blockStats": "Statistiken", + "APSJ.blockAdversaries": "Gegner", + "APSJ.blockCardName": "Block: Deckkarte", + "APSJ.blockCardDescription": "Ein stilvoller Block, um die Beschreibung und die Statistiken einer Karte aus einem Deck anzuzeigen.", + "APSJ.blockCardHeading": "Kartenname", + "APSJ.blockCardBody": "
Beschreibung der Karte und seiner Auswirkungen.
Sie können ein Bild auf der Karte links auf die Karte platzieren, und es wird automatisch so bemessen, dass sie auf die Karte passt.
", + "APSJ.blockEncounterName": "Block: Begegnung", + "APSJ.blockEncounterDescription": "Ein stilvoller Block zum Anzeigen von Anzeigen von Daten und Beschreibungen.", + "APSJ.blockEncounterHeading": "Begegnen", + "APSJ.blockEncounterBody": "Geben Sie hier eine detaillierte Beschreibung der Umwelt und des Szenarios ein, um den Spielern zu lesen.
Ziehen Sie den Schauspieler-Token von Ihrem Kompendium in die Gegnerliste rechts, um die Begegnung zu erleichtern.
", + "APSJ.blockMagicItemName": "Block: Magischer Gegenstand", + "APSJ.blockMagicItemDescription": "Ein stilvoller Block, der die Beschreibung und Statistiken eines magischen Elements anzeigt.", + "APSJ.blockMagicItemHeading": "Magischer Artikelname", + "APSJ.blockMagicItemBody": "Beschreibung des Artikels und seiner Fähigkeiten.
Stellen Sie Statistiken in die Seite zur Seite und einen Link zum Artikel unter dem Teiler.
", + "APSJ.blockReadAloudName": "Block: Vorlesen", + "APSJ.blockReadAloudDescription": "Ein stilvoller Block, der den Geschmack Text angibt, der den Spielern laut gelesen wird.", + "APSJ.blockReadAloudBody": "Flavour-Text, der den Spielern laut gelesen wird.
" +} diff --git a/languages/en.json b/languages/en.json index 8e739fe..cfb7a94 100644 --- a/languages/en.json +++ b/languages/en.json @@ -1,4 +1,52 @@ { "APSJ.menuEnableParchmentName": "Enable Parchment", - "APSJ.menuEnableParchmentHint": "Replace the default white parchment background with a more aged, brownish look." + "APSJ.menuEnableParchmentHint": "Replace the default white parchment background with a more aged, brownish-yellow look.", + + "APSJ.textHeadingTitleName": "Stylish Heading (Title)", + "APSJ.textHeadingName": "Stylish Heading", + "APSJ.textDataHeadingName": "Stylish Data Heading", + "APSJ.textDataName": "Stylish Data", + "APSJ.textParagraphName": "Stylish Paragraph", + + "APSJ.panelBonusName": "Panel: Bonus", + "APSJ.panelBonusHeading": "Bonus Panel", + "APSJ.panelBonusDescription": "A stylish panel to provide a Bonus message.", + "APSJ.panelEffectName": "Panel: Effect", + "APSJ.panelEffectHeading": "Effect Panel", + "APSJ.panelEffectDescription": "A stylish panel to provide a message about Effects.", + "APSJ.panelInformationName": "Panel: Information", + "APSJ.panelInformationHeading": "Information Panel", + "APSJ.panelInformationDescription": "A stylish panel to provide an Informational message.", + "APSJ.panelLootName": "Panel: Loot", + "APSJ.panelLootHeading": "Loot Panel", + "APSJ.panelLootDescription": "A stylish panel to provide a Loot message.", + "APSJ.panelNoteName": "Panel: Note", + "APSJ.panelNoteHeading": "Note Panel", + "APSJ.panelNoteDescription": "A stylish panel to provide a Note.", + "APSJ.panelTrapName": "Panel: Trap", + "APSJ.panelTrapHeading": "Trap Panel", + "APSJ.panelTrapDescription": "A stylish panel to provide a message about a Trap.", + "APSJ.panelWarningName": "Panel: Warning", + "APSJ.panelWarningHeading": "Warning Panel", + "APSJ.panelWarningDescription": "A stylish panel to provide a Warning message.", + "APSJ.panelBody": "The body of the message. Delete this for a banner style message.", + + "APSJ.blockDescription": "Description", + "APSJ.blockStats": "Stats", + "APSJ.blockAdversaries": "Adversaries", + "APSJ.blockCardName": "Block: Deck Card", + "APSJ.blockCardDescription": "A stylish block to display the description and stats of a card from a deck.", + "APSJ.blockCardHeading": "Card Name", + "APSJ.blockCardBody": "Description of the card and its effects.
You can place an image on top of the card to the left and it will automatically be sized to fit the card.
", + "APSJ.blockEncounterName": "Block: Encounter", + "APSJ.blockEncounterDescription": "A stylish block for displaying encounter data and descrptions.", + "APSJ.blockEncounterHeading": "Encounter", + "APSJ.blockEncounterBody": "Enter a detailed description of the environment and scenario here to read to the players.
Drag Actor tokens from your compendium into the Adversaries list on the right for easy setup of the encounter.
", + "APSJ.blockMagicItemName": "Block: Magic Item", + "APSJ.blockMagicItemDescription": "A stylish block to display a magic item's description and stats.", + "APSJ.blockMagicItemHeading": "Magic Item Name", + "APSJ.blockMagicItemBody": "Description of the item and its abilities.
Place Stats in the aside to the right, and a link to the item below the divider.
", + "APSJ.blockReadAloudName": "Block: Read Aloud", + "APSJ.blockReadAloudDescription": "A stylish block to denote flavor text to be read aloud to the players.", + "APSJ.blockReadAloudBody": "Flavor text to read aloud to the players.
" } diff --git a/languages/es.json b/languages/es.json new file mode 100644 index 0000000..cf38856 --- /dev/null +++ b/languages/es.json @@ -0,0 +1,62 @@ +{ + "APSJ.menuEnableParchmentName": "Habilitar pergamino", + "APSJ.menuEnableParchmentHint": "Reemplace el fondo de pergamino blanco predeterminado con un aspecto más envejecido de color amarillo parduzco.", + "APSJ.menuColorThemeName": "Tema de color", + + "APSJ.colorThemeNone": "Ninguno", + "APSJ.colorThemeBlue": "Azul", + "APSJ.colorThemeCyan": "Cian", + "APSJ.colorThemeGreen": "Verde", + "APSJ.colorThemeOrange": "Naranja", + "APSJ.colorThemePurple": "Morado", + "APSJ.colorThemeRed": "Rojo (Predeterminado)", + "APSJ.colorThemeYellow": "Amarillo", + + "APSJ.textHeadingTitleName": "Encabezado con estilo (Título)", + "APSJ.textHeadingName": "Encabezado con estilo", + "APSJ.textDataHeadingName": "Encabezamiento de datos con estilo", + "APSJ.textDataName": "Datos elegantes", + "APSJ.textParagraphName": "Párrafo elegante", + + "APSJ.panelBonusName": "Panel: Bonificación", + "APSJ.panelBonusHeading": "Panel de bonificación", + "APSJ.panelBonusDescription": "Un panel elegante para proporcionar un mensaje de bonificación.", + "APSJ.panelEffectName": "Panel: Efecto", + "APSJ.panelEffectHeading": "Panel de efecto", + "APSJ.panelEffectDescription": "Un panel elegante para proporcionar un mensaje sobre los efectos.", + "APSJ.panelInformationName": "Panel: Información", + "APSJ.panelInformationHeading": "Panel de información", + "APSJ.panelInformationDescription": "Un panel elegante para proporcionar un mensaje informativo.", + "APSJ.panelLootName": "Panel: Botín", + "APSJ.panelLootHeading": "Panel de botín", + "APSJ.panelLootDescription": "Un panel elegante para proporcionar un mensaje de botín.", + "APSJ.panelNoteName": "Panel: Nota", + "APSJ.panelNoteHeading": "Panel de notas", + "APSJ.panelNoteDescription": "Un panel elegante para proporcionar una nota.", + "APSJ.panelTrapName": "Panel: Trampa", + "APSJ.panelTrapHeading": "Panel de trampa", + "APSJ.panelTrapDescription": "Un elegante panel para proporcionar un mensaje sobre una trampa.", + "APSJ.panelWarningName": "Panel: Advertencia", + "APSJ.panelWarningHeading": "Panel de advertencia", + "APSJ.panelWarningDescription": "Un panel elegante para proporcionar un mensaje de advertencia.", + "APSJ.panelBody": "El cuerpo del mensaje.Eliminar esto para un mensaje de estilo de banner.", + + "APSJ.blockDescription": "Descripción", + "APSJ.blockStats": "Estadísticas", + "APSJ.blockAdversaries": "Adversarias", + "APSJ.blockCardName": "Cuadra: Tarjeta de cubierta", + "APSJ.blockCardDescription": "Un bloque con estilo para mostrar la descripción y las estadísticas de una tarjeta de una cubierta.", + "APSJ.blockCardHeading": "Nombre de tarjeta", + "APSJ.blockCardBody": "Descripción de la tarjeta y sus efectos.
Puede colocar una imagen en la parte superior de la tarjeta a la izquierda y se ajustará automáticamente para que se ajuste a la tarjeta.
", + "APSJ.blockEncounterName": "Cuadra: Encuentro", + "APSJ.blockEncounterDescription": "Un bloque con estilo para mostrar datos de encuentro y descripciones.", + "APSJ.blockEncounterHeading": "Encuentro", + "APSJ.blockEncounterBody": "Ingrese una descripción detallada del entorno y el escenario aquí para leer a los jugadores.
Arrastre los tokens del actor de su compendio a la lista de adversarios a la derecha para una fácil configuración del encuentro.
", + "APSJ.blockMagicItemName": "Cuadra: Artículo mágico", + "APSJ.blockMagicItemDescription": "Un bloque con estilo para mostrar una descripción y estadísticas de un artículo mágico.", + "APSJ.blockMagicItemHeading": "Nombre del artículo mágico", + "APSJ.blockMagicItemBody": "Descripción del artículo y sus habilidades.
Coloque las estadísticas en un lado a la derecha, y un enlace al artículo debajo del divisor.
", + "APSJ.blockReadAloudName": "Cuadra: Leer en voz alta", + "APSJ.blockReadAloudDescription": "Un bloque con estilo para denotar texto de sabor a leer en voz alta a los jugadores.", + "APSJ.blockReadAloudBody": "Texto de sabor para leer en voz alta a los jugadores.
" +} diff --git a/languages/fr.json b/languages/fr.json new file mode 100644 index 0000000..9f3d2d2 --- /dev/null +++ b/languages/fr.json @@ -0,0 +1,62 @@ +{ + "APSJ.menuEnableParchmentName": "Activer le parchemin", + "APSJ.menuEnableParchmentHint": "Remplacez le fond de parchemin blanc par défaut avec un aspect jaune brunâtre plus vieilli.", + "APSJ.menuColorThemeName": "Thème de couleur", + + "APSJ.colorThemeNone": "Rien", + "APSJ.colorThemeBlue": "Bleue", + "APSJ.colorThemeCyan": "Cyan", + "APSJ.colorThemeGreen": "Verte", + "APSJ.colorThemeOrange": "Orange", + "APSJ.colorThemePurple": "Mauve", + "APSJ.colorThemeRed": "Rouge (Défaut)", + "APSJ.colorThemeYellow": "Jaune", + + "APSJ.textHeadingTitleName": "Rubrique élégante (titre)", + "APSJ.textHeadingName": "Rubrique élégante", + "APSJ.textDataHeadingName": "Rubrique de données élégante", + "APSJ.textDataName": "Données élégantes", + "APSJ.textParagraphName": "Paragraphe élégant", + + "APSJ.panelBonusName": "Panneau: Bonus", + "APSJ.panelBonusHeading": "Panneau de bonus", + "APSJ.panelBonusDescription": "Un panneau élégant pour fournir un message bonus.", + "APSJ.panelEffectName": "Panneau: effet", + "APSJ.panelEffectHeading": "Panneau d'effet", + "APSJ.panelEffectDescription": "Un panneau élégant pour fournir un message sur les effets.", + "APSJ.panelInformationName": "Panneau: informations", + "APSJ.panelInformationHeading": "Panneau d'information", + "APSJ.panelInformationDescription": "Un panneau élégant pour fournir un message informatif.", + "APSJ.panelLootName": "Panneau: butin", + "APSJ.panelLootHeading": "Panneau de butin", + "APSJ.panelLootDescription": "Un panneau élégant pour fournir un message de butin.", + "APSJ.panelNoteName": "Panneau: Note", + "APSJ.panelNoteHeading": "Tableau de note", + "APSJ.panelNoteDescription": "Un panneau élégant pour fournir une note.", + "APSJ.panelTrapName": "Panneau: piège", + "APSJ.panelTrapHeading": "Panneau de piège", + "APSJ.panelTrapDescription": "Un panneau élégant pour fournir un message sur un piège.", + "APSJ.panelWarningName": "Panneau: AVERTISSEMENT", + "APSJ.panelWarningHeading": "Panneau d'alerte", + "APSJ.panelWarningDescription": "Un panneau élégant pour fournir un message d'avertissement.", + "APSJ.panelBody": "Le corps du message.Supprimez ceci pour un message de style de bannière.", + + "APSJ.blockDescription": "La description", + "APSJ.blockStats": "Statistiques", + "APSJ.blockAdversaries": "Adversaires", + "APSJ.blockCardName": "Bloc: carte de pont", + "APSJ.blockCardDescription": "Un bloc élégant pour afficher la description et les statistiques d'une carte d'un pont.", + "APSJ.blockCardHeading": "Nom de la carte", + "APSJ.blockCardBody": "Description de la carte et de ses effets.
Vous pouvez placer une image sur la carte vers la gauche et elle sera automatiquement dimensionnée pour s'adapter à la carte.
", + "APSJ.blockEncounterName": "Bloc: rencontre", + "APSJ.blockEncounterDescription": "Un bloc élégant pour afficher des données et des descriptions de rencontre.", + "APSJ.blockEncounterHeading": "Rencontrer", + "APSJ.blockEncounterBody": "Entrez une description détaillée de l'environnement et du scénario ici pour lire aux joueurs.
Faites glisser les jetons d'acteur de votre Compendium dans la liste des adversaires à droite pour une configuration facile de la rencontre.
", + "APSJ.blockMagicItemName": "Bloc: article magique", + "APSJ.blockMagicItemDescription": "Un bloc élégant pour afficher la description et les statistiques de l'élément magique.", + "APSJ.blockMagicItemHeading": "Nom de l'article magique", + "APSJ.blockMagicItemBody": "Description de l'article et de ses capacités.
Placez les statistiques de côté à droite et un lien vers l'article sous le diviseur.
", + "APSJ.blockReadAloudName": "Bloc: lire à haute voix", + "APSJ.blockReadAloudDescription": "Un bloc élégant pour désigner un texte de saveur à lire à haute voix aux joueurs.", + "APSJ.blockReadAloudBody": "Texte de saveur à lire à haute voix aux joueurs.
" +} diff --git a/media/apsj-elements.webp b/media/apsj-elements.webp index 4bdb182..09bddd1 100644 Binary files a/media/apsj-elements.webp and b/media/apsj-elements.webp differ diff --git a/media/apsj-text-styles.webp b/media/apsj-text-styles.webp index 92560ae..34e53ba 100644 Binary files a/media/apsj-text-styles.webp and b/media/apsj-text-styles.webp differ diff --git a/module.json b/module.json index f33ea2c..5d91846 100644 --- a/module.json +++ b/module.json @@ -27,6 +27,21 @@ "lang": "en", "name": "English", "path": "languages/en.json" + }, + { + "lang": "fr", + "name": "French (Français)", + "path": "languages/fr.json" + }, + { + "lang": "de", + "name": "German (Deutsch)", + "path": "languages/de.json" + }, + { + "lang": "es", + "name": "Spanish (Español)", + "path": "languages/es.json" } ], "url": "This is auto replaced", diff --git a/scripts/apsj.js b/scripts/apsj.js index 669ddc7..532abac 100644 --- a/scripts/apsj.js +++ b/scripts/apsj.js @@ -59,22 +59,27 @@ Hooks.on('ready', () => { title: 'Stylish Text', items: [ { - title: 'Stylish Heading (Title)', + title: game.i18n.format('APSJ.textHeadingTitleName'), selector: 'h1,h2,h3,h4,h5,h6,th,td,p', classes: 'dnd-title', }, { - title: 'Stylish Heading', + title: game.i18n.format('APSJ.textHeadingName'), selector: 'h1,h2,h3,h4,h5,h6,th,td,p', classes: 'dnd-heading', }, { - title: 'Stylish Data', + title: game.i18n.format('APSJ.textDataHeadingName'), + selector: 'h1,h2,h3,h4,h5,h6,th,td,p', + classes: 'dnd-data-heading', + }, + { + title: game.i18n.format('APSJ.textDataName'), selector: 'h1,h2,h3,h4,h5,h6,th,td,p', classes: 'dnd-data', }, { - title: 'Stylish Paragraph', + title: game.i18n.format('APSJ.textParagraphName'), selector: 'td,p', classes: 'dnd-text', }, @@ -84,94 +89,129 @@ Hooks.on('ready', () => { CONFIG.TinyMCE.templates = CONFIG.TinyMCE.templates ?? []; CONFIG.TinyMCE.templates.push( { - title: 'Panel: Bonus', - description: 'A stylish panel to provide a Bonus message.', - content: ` + title: game.i18n.format('APSJ.panelBonusName'), + description: game.i18n.format('APSJ.panelBonusDescription'), + content: + `The body of the Bonus message.
+` + + game.i18n.format('APSJ.panelBody') + + `
The body of the Effect message.
+` + + game.i18n.format('APSJ.panelBody') + + `
The body of the Informational Message.
+` + + game.i18n.format('APSJ.panelBody') + + `
The body of the Loot Message.
+` + + game.i18n.format('APSJ.panelBody') + + `
The body of the Note.
+` + + game.i18n.format('APSJ.panelBody') + + `
The body of the Trap message.
+` + + game.i18n.format('APSJ.panelBody') + + `
The body of the Warning message.
+` + + game.i18n.format('APSJ.panelBody') + + `
Description of the card and its effects.
-You can place an image on top of the card to the left and it will automatically be sized to fit the card.
-Enter a detailed description of the environment and scenario here to read to the players.
-Drag Actor tokens from your compendium into the Adversaries list on the right for easy setup of the encounter.
-Description of the item and its abilities.
-Place Stats in the aside to the right, and a link to the item below the divider.
-