diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..c48545c6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +################################################################################ +# This .gitignore file was automatically created by Microsoft(R) Visual Studio. +################################################################################ + +/.idea +/.vs +/.vscode diff --git a/C4.puml b/C4.puml index 15526057..93e2bb12 100644 --- a/C4.puml +++ b/C4.puml @@ -13,7 +13,7 @@ ' ################################## !function C4Version() ' 2 spaces and ' are used as unique marker, that the release scripts makes the correct version update - !$c4Version = "2.10.0extended" + !$c4Version = "2.11.0extended" !return $c4Version !end function @@ -54,6 +54,9 @@ rectangle C4VersionDetailsArea <> [ ' Labels ' ################################## +!$BOUNDARY_LEGEND_TEXT ?= "boundary" + +!$LEGEND_TITLE_TEXT ?= "Legend" !$LEGEND_SHADOW_TEXT ?= "shadow" !$LEGEND_NO_SHADOW_TEXT ?= "no shadow" !$LEGEND_NO_FONT_BG_TEXT ?= "last text and back color" @@ -68,6 +71,9 @@ rectangle C4VersionDetailsArea <> [ !$LEGEND_SOLID_LINE ?= "solid" !$LEGEND_BOUNDARY ?= "boundary" +!$LEGEND_BOUNDARY_PRE_PART ?= "" +!$LEGEND_BOUNDARY_POST_PART ?= " " + $LEGEND_BOUNDARY + ' ignore (boundary) transparent atm, that the legend is smaller ' !$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= "transparent, " !$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= "" @@ -692,13 +698,13 @@ $elementSkin !if (%strpos($tagStereo, "boundary") >= 0) !if ($tagStereo == "boundary") !$isBoundary = 1 - !$tagEntry = $tagEntry + " " + $LEGEND_BOUNDARY + " " + !$tagEntry = $LEGEND_BOUNDARY_PRE_PART + $tagEntry + $LEGEND_BOUNDARY_POST_PART + " " !else ' if contains/ends with _boundary remove _boundary and add "boundary (dashed)" !$pos = %strpos($tagStereo, "_boundary") !if ($pos > 0) !$isBoundary = 1 - !$tagEntry = $tagEntry + " " + %substr($tagStereo, 0 ,$pos) + " " +$LEGEND_BOUNDARY + " " + !$tagEntry = $tagEntry + " " + $LEGEND_BOUNDARY_PRE_PART + %substr($tagStereo, 0 ,$pos) + $LEGEND_BOUNDARY_POST_PART + " " !endif !endif !endif @@ -1027,6 +1033,10 @@ UpdateElementStyle($elementName, $bgColor, $fontColor, $borderColor, $shadowing) $elementSkin !endprocedure +!unquoted procedure UpdateLegendTitle($newTitle) + !$LEGEND_TITLE_TEXT = $newTitle +!endprocedure + ' tags/stereotypes have to be delimited with \n !unquoted procedure SetDefaultLegendEntries($tagStereoEntries) !$tagDefaultLegend = $tagStereoEntries @@ -1234,7 +1244,7 @@ hide stereotype !procedure $getLegendTable($detailsFormat) !global $LEGEND_DETAILS_SIZE = $getLegendDetailsSize($detailsFormat) -<$colorWithHash(transparent),$colorWithHash(transparent)>|**Legend** | +<$colorWithHash(transparent),$colorWithHash(transparent)>|**$LEGEND_TITLE_TEXT ** | $showActiveLegendEntries($tagDefaultLegend) $showActiveLegendEntries($tagCustomLegend) !endprocedure @@ -1457,7 +1467,7 @@ rectangle "$getBoundary($label, $type, $descr, $sprite)" $toStereos("boundary", !endprocedure ' Boundary Styling -UpdateBoundaryStyle("", $bgColor=$BOUNDARY_BG_COLOR, $fontColor=$BOUNDARY_COLOR, $borderColor=$BOUNDARY_COLOR, $borderStyle=DashedLine()) +UpdateBoundaryStyle("", $bgColor=$BOUNDARY_BG_COLOR, $fontColor=$BOUNDARY_COLOR, $borderColor=$BOUNDARY_COLOR, $borderStyle=DashedLine(), $legendText="$BOUNDARY_LEGEND_TEXT") ' Index ' ################################## diff --git a/C4_Component.puml b/C4_Component.puml index 97a4724a..27666c57 100644 --- a/C4_Component.puml +++ b/C4_Component.puml @@ -17,15 +17,22 @@ !$COMPONENT_BG_COLOR ?= "#85BBF0" !$COMPONENT_BORDER_COLOR ?= "#78A8D8" +!$EXTERNAL_COMPONENT_LEGEND_TEXT ?= "external component" !$EXTERNAL_COMPONENT_FONT_COLOR ?= $COMPONENT_FONT_COLOR !$EXTERNAL_COMPONENT_BG_COLOR ?= "#CCCCCC" !$EXTERNAL_COMPONENT_BORDER_COLOR ?= "#BFBFBF" +' Labels +' ################################## + +!$COMPONENT_LEGEND_TEXT ?= "component" +!$EXTERNAL_COMPONENT_LEGEND_TEXT ?= "external component" + ' Styling ' ################################## -UpdateElementStyle("component", $COMPONENT_BG_COLOR, $COMPONENT_FONT_COLOR, $COMPONENT_BORDER_COLOR) -UpdateElementStyle("external_component", $EXTERNAL_COMPONENT_BG_COLOR, $EXTERNAL_COMPONENT_FONT_COLOR, $EXTERNAL_COMPONENT_BORDER_COLOR) +UpdateElementStyle("component", $COMPONENT_BG_COLOR, $COMPONENT_FONT_COLOR, $COMPONENT_BORDER_COLOR, $legendText="$COMPONENT_LEGEND_TEXT") +UpdateElementStyle("external_component", $EXTERNAL_COMPONENT_BG_COLOR, $EXTERNAL_COMPONENT_FONT_COLOR, $EXTERNAL_COMPONENT_BORDER_COLOR, $legendText="$EXTERNAL_COMPONENT_LEGEND_TEXT") ' shortcuts with default colors !unquoted procedure AddComponentTag($tagStereo, $bgColor="", $fontColor="", $borderColor="", $shadowing="", $shape="", $sprite="", $techn="", $legendText="", $legendSprite="", $borderStyle="", $borderThickness="") diff --git a/C4_Container.puml b/C4_Container.puml index c510900a..f30f0849 100644 --- a/C4_Container.puml +++ b/C4_Container.puml @@ -25,12 +25,20 @@ !$EXTERNAL_CONTAINER_BG_COLOR ?= "#B3B3B3" !$EXTERNAL_CONTAINER_BORDER_COLOR ?= "#A6A6A6" +' Labels +' ################################## + +!$CONTAINER_LEGEND_TEXT ?= "container" +!$CONTAINER_BOUNDARY_TYPE ?= "container" +!$CONTAINER_BOUNDARY_LEGEND_TEXT ?= "container boundary" +!$EXTERNAL_CONTAINER_LEGEND_TEXT ?= "external container" + ' Styling ' ################################## -UpdateElementStyle("container", $CONTAINER_BG_COLOR, $CONTAINER_FONT_COLOR, $CONTAINER_BORDER_COLOR) -UpdateElementStyle("external_container", $EXTERNAL_CONTAINER_BG_COLOR, $EXTERNAL_CONTAINER_FONT_COLOR, $EXTERNAL_CONTAINER_BORDER_COLOR) +UpdateElementStyle("container", $CONTAINER_BG_COLOR, $CONTAINER_FONT_COLOR, $CONTAINER_BORDER_COLOR, $legendText="$CONTAINER_LEGEND_TEXT") +UpdateElementStyle("external_container", $EXTERNAL_CONTAINER_BG_COLOR, $EXTERNAL_CONTAINER_FONT_COLOR, $EXTERNAL_CONTAINER_BORDER_COLOR, $legendText="$EXTERNAL_CONTAINER_LEGEND_TEXT") -UpdateBoundaryStyle("container", $bgColor=$CONTAINER_BOUNDARY_BG_COLOR, $fontColor=$CONTAINER_BOUNDARY_COLOR, $borderColor=$CONTAINER_BOUNDARY_COLOR, $type="Container") +UpdateBoundaryStyle("container", $bgColor=$CONTAINER_BOUNDARY_BG_COLOR, $fontColor=$CONTAINER_BOUNDARY_COLOR, $borderColor=$CONTAINER_BOUNDARY_COLOR, $type="$CONTAINER_BOUNDARY_TYPE", $legendText="$CONTAINER_BOUNDARY_LEGEND_TEXT") ' shortcuts with default colors !unquoted procedure AddContainerTag($tagStereo, $bgColor="", $fontColor="", $borderColor="", $shadowing="", $shape="", $sprite="", $techn="", $legendText="", $legendSprite="", $borderStyle="", $borderThickness="") diff --git a/C4_Context.puml b/C4_Context.puml index 5b357e9c..57c87c07 100644 --- a/C4_Context.puml +++ b/C4_Context.puml @@ -37,16 +37,30 @@ !$ENTERPRISE_BOUNDARY_BG_COLOR ?= $BOUNDARY_BG_COLOR !$ENTERPRISE_BOUNDARY_BORDER_STYLE ?= $BOUNDARY_BORDER_STYLE +' Labels +' ################################## + +!$PERSON_LEGEND_TEXT ?= "person" +!$EXTERNAL_PERSON_LEGEND_TEXT ?= "external person" + +!$SYSTEM_LEGEND_TEXT ?= "system" +!$SYSTEM_BOUNDARY_TYPE ?= "system" +!$SYSTEM_BOUNDARY_LEGEND_TEXT ?= "system boundary" +!$EXTERNAL_SYSTEM_LEGEND_TEXT ?= "external system" + +!$ENTERPRISE_BOUNDARY_TYPE ?= "enterprise" +!$ENTERPRISE_BOUNDARY_LEGEND_TEXT ?= "enterprise boundary" + ' Styling ' ################################## -UpdateElementStyle("person", $PERSON_BG_COLOR, $PERSON_FONT_COLOR, $PERSON_BORDER_COLOR) -UpdateElementStyle("external_person", $EXTERNAL_PERSON_BG_COLOR, $EXTERNAL_PERSON_FONT_COLOR, $EXTERNAL_PERSON_BORDER_COLOR) -UpdateElementStyle("system", $SYSTEM_BG_COLOR, $SYSTEM_FONT_COLOR, $SYSTEM_BORDER_COLOR) -UpdateElementStyle("external_system", $EXTERNAL_SYSTEM_BG_COLOR, $EXTERNAL_SYSTEM_FONT_COLOR, $EXTERNAL_SYSTEM_BORDER_COLOR) +UpdateElementStyle("person", $PERSON_BG_COLOR, $PERSON_FONT_COLOR, $PERSON_BORDER_COLOR, $legendText="$PERSON_LEGEND_TEXT") +UpdateElementStyle("external_person", $EXTERNAL_PERSON_BG_COLOR, $EXTERNAL_PERSON_FONT_COLOR, $EXTERNAL_PERSON_BORDER_COLOR, $legendText="$EXTERNAL_PERSON_LEGEND_TEXT") +UpdateElementStyle("system", $SYSTEM_BG_COLOR, $SYSTEM_FONT_COLOR, $SYSTEM_BORDER_COLOR, $legendText="$SYSTEM_LEGEND_TEXT") +UpdateElementStyle("external_system", $EXTERNAL_SYSTEM_BG_COLOR, $EXTERNAL_SYSTEM_FONT_COLOR, $EXTERNAL_SYSTEM_BORDER_COLOR, $legendText="$EXTERNAL_SYSTEM_LEGEND_TEXT") -UpdateBoundaryStyle("system", $bgColor=$SYSTEM_BOUNDARY_BG_COLOR, $fontColor=$SYSTEM_BOUNDARY_COLOR, $borderColor=$SYSTEM_BOUNDARY_COLOR, $type="System") -UpdateBoundaryStyle("enterprise", $bgColor=$ENTERPRISE_BOUNDARY_BG_COLOR, $fontColor=$ENTERPRISE_BOUNDARY_COLOR, $borderColor=$ENTERPRISE_BOUNDARY_COLOR, $type="Enterprise") +UpdateBoundaryStyle("system", $bgColor=$SYSTEM_BOUNDARY_BG_COLOR, $fontColor=$SYSTEM_BOUNDARY_COLOR, $borderColor=$SYSTEM_BOUNDARY_COLOR, $type="$SYSTEM_BOUNDARY_TYPE", $legendText="$SYSTEM_BOUNDARY_LEGEND_TEXT") +UpdateBoundaryStyle("enterprise", $bgColor=$ENTERPRISE_BOUNDARY_BG_COLOR, $fontColor=$ENTERPRISE_BOUNDARY_COLOR, $borderColor=$ENTERPRISE_BOUNDARY_COLOR, $type="$ENTERPRISE_BOUNDARY_TYPE", $legendText="$ENTERPRISE_BOUNDARY_LEGEND_TEXT") ' shortcuts with default colors !unquoted procedure AddPersonTag($tagStereo, $bgColor="", $fontColor="", $borderColor="", $shadowing="", $shape="", $sprite="", $legendText="", $legendSprite="", $type="", $borderStyle="", $borderThickness="") diff --git a/C4_Deployment.puml b/C4_Deployment.puml index ee5e653c..406377b0 100644 --- a/C4_Deployment.puml +++ b/C4_Deployment.puml @@ -12,6 +12,11 @@ !$NODE_BG_COLOR ?= "#FFFFFF" !$NODE_BORDER_COLOR ?= "#A2A2A2" +' Labels +' ################################## + +!$NODE_LEGEND_TEXT ?= "node" + ' Styling ' ################################## @@ -22,7 +27,7 @@ !$NODE_TYPE_MAX_CHAR_WIDTH ?= 35 !$NODE_DESCR_MAX_CHAR_WIDTH ?= 32 -UpdateElementStyle("node", $bgColor=$NODE_BG_COLOR, $fontColor=$NODE_FONT_COLOR, $borderColor=$NODE_BORDER_COLOR) +UpdateElementStyle("node", $bgColor=$NODE_BG_COLOR, $fontColor=$NODE_FONT_COLOR, $borderColor=$NODE_BORDER_COLOR, $legendText="$NODE_LEGEND_TEXT") skinparam rectangle<> { FontStyle normal } diff --git a/C4_Sequence.puml b/C4_Sequence.puml index 26348d8d..a7580a5d 100644 --- a/C4_Sequence.puml +++ b/C4_Sequence.puml @@ -34,9 +34,9 @@ !$LEGEND_DASHED_TRANSPARENT_BOUNDARY = "" !endif UpdateBoundaryStyle("", $bgColor=$BOUNDARY_BG_COLOR, $fontColor=$BOUNDARY_COLOR, $borderColor=$BOUNDARY_COLOR) -UpdateBoundaryStyle("enterprise", $bgColor=$ENTERPRISE_BOUNDARY_BG_COLOR, $fontColor=$ENTERPRISE_BOUNDARY_COLOR, $borderColor=$ENTERPRISE_BOUNDARY_COLOR, $type="Enterprise") -UpdateBoundaryStyle("system", $bgColor=$SYSTEM_BOUNDARY_BG_COLOR, $fontColor=$SYSTEM_BOUNDARY_COLOR, $borderColor=$SYSTEM_BOUNDARY_COLOR, $type="System") -UpdateBoundaryStyle("container", $bgColor=$CONTAINER_BOUNDARY_BG_COLOR, $fontColor=$CONTAINER_BOUNDARY_COLOR, $borderColor=$CONTAINER_BOUNDARY_COLOR, $type="Container") +UpdateBoundaryStyle("enterprise", $bgColor=$ENTERPRISE_BOUNDARY_BG_COLOR, $fontColor=$ENTERPRISE_BOUNDARY_COLOR, $borderColor=$ENTERPRISE_BOUNDARY_COLOR, $type="$ENTERPRISE_BOUNDARY_TYPE") +UpdateBoundaryStyle("system", $bgColor=$SYSTEM_BOUNDARY_BG_COLOR, $fontColor=$SYSTEM_BOUNDARY_COLOR, $borderColor=$SYSTEM_BOUNDARY_COLOR, $type="$SYSTEM_BOUNDARY_TYPE") +UpdateBoundaryStyle("container", $bgColor=$CONTAINER_BOUNDARY_BG_COLOR, $fontColor=$CONTAINER_BOUNDARY_COLOR, $borderColor=$CONTAINER_BOUNDARY_COLOR, $type="$CONTAINER_BOUNDARY_TYPE") ' Styling and Layout ' ################################## diff --git a/LayoutOptions.md b/LayoutOptions.md index 500c70df..2fb51dbf 100644 --- a/LayoutOptions.md +++ b/LayoutOptions.md @@ -24,7 +24,7 @@ C4-PlantUML comes with some layout options. - [SHOW_INDEX(?show)](#show_indexshow) - [Optional support of additional PlantUML elements](#optional-support-of-additional-plantuml-elements) - [List of supported PlantUML elements](#list-of-supported-plantuml-elements) -- [📄 Themes](Themes.md#themes) +- [📄 Themes (different styles and languages)](Themes.md#themes) - samples - [📄 C4 Model Diagrams](samples/C4CoreDiagrams.md#c4-model-diagrams) diff --git a/README.md b/README.md index c5a7acc1..52bd6904 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ C4-PlantUML includes macros, stereotypes, and other goodies (like VSCode Snippet - [Background](#background) - [License](#license) - [📄 Layout Options](LayoutOptions.md#layout-options) -- [📄 Themes](Themes.md#themes) +- [📄 Themes (different styles and languages)](Themes.md#themes) - samples - [📄 C4 Model Diagrams](samples/C4CoreDiagrams.md#c4-model-diagrams) @@ -537,14 +537,14 @@ Color of the displayed images can be changed with `,color={color}`. !include -AddRelTag("plantuml", $textColor="$ARROW_FONT_COLOR", $lineColor="$ARROW_COLOR", $sprite="img:http://plantuml.com/logo3.png{scale=0.3}", $legendSprite="img:http://plantuml.com/logo3.png{scale=0.1}", $legendText="console triggered") +AddRelTag("plantuml", $textColor="$ARROW_FONT_COLOR", $lineColor="$ARROW_COLOR", $sprite="img:https://plantuml.com/logo3.png{scale=0.3}", $legendSprite="img:https://plantuml.com/logo3.png{scale=0.1}", $legendText="console triggered") Person(user, "user group displayed with a sprite", $sprite="users") Container(container, "Container with scaled and colored OpenIconic", $sprite="&folder,scale=5.0,color=gray") -System(system, "System with an image", $sprite="img:http://plantuml.com/logo3.png") +System(system, "System with an image", $sprite="img:https://plantuml.com/logo3.png") Rel(user, system, "Rel with image (via tags)", $tags="plantuml") Rel(user, container, "Rel with OpenIconinc", $sprite="&folder") @@ -668,6 +668,13 @@ Like the element specific tag definitions exist boundary specific calls with the - `UpdateSystemBoundaryStyle(?bgColor, ?fontColor, ?borderColor, ?shadowing, ?shape, ?type, ?legendText, ?borderStyle, ?borderThickness, ?sprite, ?legendSprite)` - `UpdateEnterpriseBoundaryStyle(?bgColor, ?fontColor, ?borderColor, ?shadowing, ?shape, ?type, ?legendText, ?borderStyle, ?borderThickness, ?sprite, ?legendSprite)` +### Define a new legend title + +All the above described `Update....(..., ?legendText, ...)` calls can define a new legend text. +Only the legend title cannot be changed. Therefore, the following call is added to allow it to be changed as well: + +- `UpdateLegendTitle(newTitle)` + ### Comments - `SHOW_LEGEND()` supports the customized stereotypes diff --git a/Themes.md b/Themes.md index 3d121843..96f6f560 100644 --- a/Themes.md +++ b/Themes.md @@ -1,12 +1,14 @@ -# Themes +# Themes - different styles and languages -![Theme sample](https://www.plantuml.com/plantuml/png/hLRHRzks4txtNt5r-qCTG8dnGzkN0G7gsDgQmauyosttCC2WfBD4b28ryXJ76FQ_xqXPLknqw83k9J6FlE_x-F5uudj7mb9JgS4BAh52cBxTD5eIvh2rfeAIg7O_ZSTMxAuAIMMJDWvjPZIXfglCLEElqcQbet8yVNkvL4BJfyLyZ8yydsC-3g1ky4BgJ3Kv_Z0UovloOY4rsglQwnua7-w_R9RnAhc_szn_Mizlx-BHnU0rh4NXm3LrRIo1Dk1gaQ43gO55WHOLmYWL3dCmRQXX1gkabhe0HsZHqBv65y6kb5a9kT6lgGFiq8JULyRYnHKmu-ts6BO85lzea77oZb9XWJgF3l-1U5EmOm_Q92Y50pAG8kIubHhpmIJFOuKLQkAzZ8QfoBvoud7_mmXURNamDShOwrVnF5x4T-lDp_VyPte_lr_nV5gqiyENRzwycqtU-HnNYXglOrcKb4WsDV7ZqGNFjChMBEowOuEie_jTeqy1vtE65rxT2bLG9jnUPnwQzzJ9cQnMV2wT3iK8_pYHq5xXzKou4lEvrApb1Ds3Z_yR2aFKKmn8aa8u-Wcv58KL5MoDXLjDQ3KIt0ZzrLT4idU4rM2mHEkC7cMD8rEXZM1w_3MSG1S6imrddd9sr9vo7HA52Z4GMMOQJMx8EbhepGq7Sc7te-p_Z7KkO7W1Vmu0eDSxsc6w4NNDYxzW2fEwLZ8J98qUSkYZU10H9BNruXUVfpusGoKVM4QGveZNPd2uUo1q7i97thJR-7B28a-PNIqOBk5fXPTBKQ1dxrYJpCgQ8fZeeb72-l3IcWUPemEXrBTPjetEl7IX9Es133iPZ7Jm88LFaHPulv1QitDedocgJ2eL7knOX46dQVeoWjz49TY9KosWP1LQdMjIXmHc-w-rkMVYMW6GuuFCy5pUB1tbWeHlD_uO3Z-zckJNEPoCoLXquBiYM2oa8nkE5AJcigp2xmZAS5T0D5H2PZ57JL8e5_coGkT0cO87IDdLCwCEzvgTahvYbxVVBfoPuMMsppjnxZiEULCOEDnMKRZhPvsBHVrrBFluaKPO2QasBWIOABvSy1ZQ1PvvNIB8G2eKB6HcZJDRWlWnAuKk4DfCXds2UT3MepActbfHuTcTxcttvTbLGSQ1RdzFpGUHceRw4eYELpa2ia8x4PpexH-iK3rf5_sb_UJGUUuFw_KouOMdwrmjlhkcA_eUhgNRtFbMdPg-HGIulW4Sa4Bmj20wmj1l8_Z8NzLn8EzFCqmT47e5FmQqkU7aNdP_MKv1LoXo5ruceL_jh2HqGCOJ7NXcDrE6F68-SUkio1A6TO2NFXemUY4dzNYkuJIlSLmVFNsoM2zRe7up9-bdLTdxr7_bk5ijvkTUzTCCtxvvvl4lyTsCtpfROmWjv5RiTFkjwHvEy705__C7BeqUNGJF_BEgd-NXvsvwy9vLDfNw6m00 "Theme sample") +![Theme style sample](https://www.plantuml.com/plantuml/png/hLRHRzks4txtNt5r-qCTG8dnGzkN0G7gsDgQmauyosttCC2WfBD4b28ryXJ76FQ_xqXPLknqw83k9J6FlE_x-F5uudj7mb9JgS4BAh52cBxTD5eIvh2rfeAIg7O_ZSTMxAuAIMMJDWvjPZIXfglCLEElqcQbet8yVNkvL4BJfyLyZ8yydsC-3g1ky4BgJ3Kv_Z0UovloOY4rsglQwnua7-w_R9RnAhc_szn_Mizlx-BHnU0rh4NXm3LrRIo1Dk1gaQ43gO55WHOLmYWL3dCmRQXX1gkabhe0HsZHqBv65y6kb5a9kT6lgGFiq8JULyRYnHKmu-ts6BO85lzea77oZb9XWJgF3l-1U5EmOm_Q92Y50pAG8kIubHhpmIJFOuKLQkAzZ8QfoBvoud7_mmXURNamDShOwrVnF5x4T-lDp_VyPte_lr_nV5gqiyENRzwycqtU-HnNYXglOrcKb4WsDV7ZqGNFjChMBEowOuEie_jTeqy1vtE65rxT2bLG9jnUPnwQzzJ9cQnMV2wT3iK8_pYHq5xXzKou4lEvrApb1Ds3Z_yR2aFKKmn8aa8u-Wcv58KL5MoDXLjDQ3KIt0ZzrLT4idU4rM2mHEkC7cMD8rEXZM1w_3MSG1S6imrddd9sr9vo7HA52Z4GMMOQJMx8EbhepGq7Sc7te-p_Z7KkO7W1Vmu0eDSxsc6w4NNDYxzW2fEwLZ8J98qUSkYZU10H9BNruXUVfpusGoKVM4QGveZNPd2uUo1q7i97thJR-7B28a-PNIqOBk5fXPTBKQ1dxrYJpCgQ8fZeeb72-l3IcWUPemEXrBTPjetEl7IX9Es133iPZ7Jm88LFaHPulv1QitDedocgJ2eL7knOX46dQVeoWjz49TY9KosWP1LQdMjIXmHc-w-rkMVYMW6GuuFCy5pUB1tbWeHlD_uO3Z-zckJNEPoCoLXquBiYM2oa8nkE5AJcigp2xmZAS5T0D5H2PZ57JL8e5_coGkT0cO87IDdLCwCEzvgTahvYbxVVBfoPuMMsppjnxZiEULCOEDnMKRZhPvsBHVrrBFluaKPO2QasBWIOABvSy1ZQ1PvvNIB8G2eKB6HcZJDRWlWnAuKk4DfCXds2UT3MepActbfHuTcTxcttvTbLGSQ1RdzFpGUHceRw4eYELpa2ia8x4PpexH-iK3rf5_sb_UJGUUuFw_KouOMdwrmjlhkcA_eUhgNRtFbMdPg-HGIulW4Sa4Bmj20wmj1l8_Z8NzLn8EzFCqmT47e5FmQqkU7aNdP_MKv1LoXo5ruceL_jh2HqGCOJ7NXcDrE6F68-SUkio1A6TO2NFXemUY4dzNYkuJIlSLmVFNsoM2zRe7up9-bdLTdxr7_bk5ijvkTUzTCCtxvvvl4lyTsCtpfROmWjv5RiTFkjwHvEy705__C7BeqUNGJF_BEgd-NXvsvwy9vLDfNw6m00 "Theme sample") + +![Theme language sample](https://www.plantuml.com/plantuml/png/fP5FJzH06CRl_HG37kWcQniC9q-iPIE7iZIsQ3mrGpjkgzjfCvrc9SR4plZ7H8r64U9D3H7K13N4U47uCA-m-p5y2-WUFDfJypxF_EPvvfql9HMooWR6b4nOneWpvrBUhsYVXJTfGJah6RaXyemaKXRbHTiMT6ZrKvbKgrN9H9HpoRYqeZopRwKYIagPsCxSUMz0kLnPScrs6_MOnVO9lZIcKXuDgfZzBm-7eODccd8chA9fOBYTwyihGUXsUWk-q_6wPiimF2RAd9iqpbBU9jEZtNUZ5m_7znvCjmn_hPGi2o_b5O-fM3EZsJQP0VKTz1xeJT2VPrhaZa7m-tkHEMIh8IqA987w06eRz0QezoVsJw2-WTu7zGCqplUcqUISQvEExrczRe0GmSW5QvOiNNKQRRprwFZrLwXtWs4g9HEW3a5jWNuB-cFpWodKo-Clw-Dz3VKRK4-WVWNr3jHFeTw6-XdK1pZ77dVFcfZo58JiCoIAnXKs-DD-4lxNpyFH-iufjico60IUZsuqJofESA3lDucmd7wCeOwURnmTRFvxsl0Nbw-5RlTojxU0Rp-FYyAz_0O0 "Theme language sample") - [📄 C4-PlantUML](README.md#c4-plantuml) - [📄 Layout Options](LayoutOptions.md#layout-options) -- [📄 Themes](#themes) +- [📄 Themes (different styles and languages)](#themes) - [Use theme](#use-theme) - - [List of available C4-themes](#list-of-available-c4-themes) + - [List of available C4 style themes](#list-of-available-c4-themes) - [C4_blue](#c4_blue) - [C4_brown](#c4_brown) - [C4_green](#c4_green) @@ -18,6 +20,18 @@ - [Write custom themes](#write-custom-themes) - [Following variables could be set in a theme, additional to the skinparams and styles](#following-variables-could-be-set-in-a-theme-additional-to-the-skinparams-and-styles) - [(C4 styled) Sequence diagram and themes](#c4-styled-sequence-diagram-and-themes) + - [List of available C4 language themes](#list-of-available-c4-language-themes) + - [C4Language_english](#c4language_english) + - [C4Language_dutch](#c4language_dutch) + - [C4Language_dutch](#c4language_dutch) + - [C4Language_german](#c4language_german) + - [C4Language_italian](#c4language_italian) + - [C4Language_japanese](#c4language_japanese) + - [C4Language_korean](#c4language_korean) + - [C4Language_portuguese](#c4language_portuguese) + - [C4Language_russian](#c4language_russian) + - [C4Language_spanish](#c4language_spanish) + - [C4Language_ukrainian](#c4language_ukrainian) - samples - [📄 C4 Model Diagrams](samples/C4CoreDiagrams.md#c4-model-diagrams) @@ -50,7 +64,7 @@ Starting with PlantUML v1.2023.8 the C4 themes can be invoked via C4-Stdlib or c !theme C4_united from ' another alternative: theme with calculated from -!RELATIVE_INCLUDE = "https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master" +!RELATIVE_INCLUDE = "https://raw.githubusercontent.com/kirchsth/C4-PlantUML/extended" !theme C4_united from %get_variable_value("RELATIVE_INCLUDE")/themes ``` @@ -78,7 +92,7 @@ SHOW_FLOATING_LEGEND() ![Theme sample](https://www.plantuml.com/plantuml/png/fP7BpjCm48NtVWh_OPDA9L5HLwmQGccHUeb8IfUHcmp4mXVBdYXKY7TdJ4lB_izc59zlpfonLm65nr4hze83QE3biXsDHEZvDsyr7n1TU9_dNapPTud3U1a3-CuQ18DPPtN-G_fk23ZavV9jfOJ1qtwNmq_IU-ZplwQ1iHTfEZNsy6f3obSIBAG1dxaOd5NWWpMfwBKqSvuKiSg0Ng3roOpLru2WsmzsDBtmrxHR45GBxHJmcvRC-2_6wNiufnDSMk4SaMUuyC8v9Jk1qfg4ZietSrxKLNPODzJYWR_B5dp_jOnQePIT0ezB1OwMqqPE4A97XJAER2Q929wZrA1eLg28l-yXKxo9v7F7I6HVGFrRxXdh5AYJwhPfgfge23tKfyq6CD0ln18VzFyMLc-Fv_RJxbWqdm-RThVUh0yVqnbRWUdfOly0 "Theme sample") -## List of available C4-themes +## List of available C4 style themes ### C4_blue @@ -165,7 +179,7 @@ They can be simply invoked like the `cb_seq_YlOrBr_9` theme @startuml !theme cb_seq_YlOrBr_9 from https://raw.githubusercontent.com/mweagle/C4-PlantUML-Themes/main/palettes -!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Container.puml +!include https://raw.githubusercontent.com/kirchsth/C4-PlantUML/extended/C4_Container.puml Person(admin, "Administrator") System_Boundary(c1, "Sample System") { @@ -438,3 +452,175 @@ sequenceDiagram { Following sample could be used as starting point for custom themes with sequence diagram support: [![](https://www.plantuml.com/plantuml/svg/fLPjRzis4FxENt7sMYG1MZi3idqeagv-KLu0DyaKfqC_6RHqieZGf4UUd6H3__jEL2qxbPFK684s4ddFStVF7Ntwv4awAkPQYDQRMu_Z7ES89z0U74rc3j6qXTY3n9ebEW95SAye1vccYfGrKlFHV2vD2beP1EbcnHmDmVjX78rwuuilqUJYSZ2w7KOdxKwtqsa3MIWyWhQ9rFfHj5G6RvVIAJdLEC47vSdljty4jmy4m1wqA4J7ePqgvscCdY1pTWvlPqYJccKfTO7RIBe1xmMicDOP1veomfLD2xN7PorpeeN_qEqwUT-PiIB5b9DoB1EXeGvhqhrJBiazvTt1qVjhBGtTVXvryO7FKqpNJaogibBXuyQ2wruyXgjJ69z7doCeZTxqhsulXxtuwwH_DXbSZQxYJgS3kLnYAUiK8SLC6Kn16QZ2LkHHP_mYG_4IQKgpmbSsdXur-dTCmkJxnfPuMMY2eA27-rmbEKYtISpgTnRSBmV0c8iC_9qo2-dat8CqwNVA9vZGCInDuf1mHStELlMgh1t-NIZ7vgBLJ1F-u8ua9urdLsYelMcqjlZbAApoj1V7Ltzj7lqULkXcXmij4uGDmX-2dChaRkPiOTAjqaaFcJN4zjew86j36-zlYVlaQToXZrjlRg8_RwFBGRHXLsfDM7VTTfkcWtK7bJUsKZzjrtLKGUZCMeAfVK0lSfLYUEVNvp4XPwqo39TQbGLozhvALzG5Xnik6Pe4Hzyj-zQbw0P1bCq2Y2sOCrPtqRVfOx-MkW8s4tyEVMeD1SnQbvS1QrSxmSvHSbh1suuHhWLfEjk2YJ53Lpxif4a3lOikDQXAyZM5zk3BHGzknbz74J-_HlUoPiUXyJuAznG3_me8jojv3lXD77Shx8iQxgRzK2qLs--k_1gxW-uho8j1lYRs4BLyN3iDqxfMrTUEv8n1GTMq18GdWEU31VYsAJ6x_jXOZTcqmnXlAPFe8iMV7jeyxbSfXybJ_qZMJFzp6ZSyrB-gr-YyDVizhH9y1-tmjtsmskxRAM_o_xmbP49gAGc1tuM8KQzGbLMle1mDgKIIiWRYqfsd0DG4laWIz3uhD2Gov0PGKWHiu6bIz1Yo84oPezG3l9qZS9EaO3F8fDA5guYqjGluzV3m44XLNp_LQiGulBo17X5VWL0e05P1bF_AEmfsYGxMzl01b56q9TKSjRRCKAE2903ZNFdL6BM6DppoeTJXqz6NZe0HGl3Cl61c9RNwfqhrv6GNHLyJBaQ_iCPp8OEl61T8wWK_nZBSWVnfVxA1QFWjlzj-Wxao1Q47BOdDUM-B-qHgxM6f92noQm9Ot9ppQ1r5Pz7bSFz0V6Bbk6d_0m00)](https://www.plantuml.com/plantuml/uml/fLPjRzis4FxENt7sMYG1MZi3idqeagv-KLu0DyaKfqC_6RHqieZGf4UUd6H3__jEL2qxbPFK684s4ddFStVF7Ntwv4awAkPQYDQRMu_Z7ES89z0U74rc3j6qXTY3n9ebEW95SAye1vccYfGrKlFHV2vD2beP1EbcnHmDmVjX78rwuuilqUJYSZ2w7KOdxKwtqsa3MIWyWhQ9rFfHj5G6RvVIAJdLEC47vSdljty4jmy4m1wqA4J7ePqgvscCdY1pTWvlPqYJccKfTO7RIBe1xmMicDOP1veomfLD2xN7PorpeeN_qEqwUT-PiIB5b9DoB1EXeGvhqhrJBiazvTt1qVjhBGtTVXvryO7FKqpNJaogibBXuyQ2wruyXgjJ69z7doCeZTxqhsulXxtuwwH_DXbSZQxYJgS3kLnYAUiK8SLC6Kn16QZ2LkHHP_mYG_4IQKgpmbSsdXur-dTCmkJxnfPuMMY2eA27-rmbEKYtISpgTnRSBmV0c8iC_9qo2-dat8CqwNVA9vZGCInDuf1mHStELlMgh1t-NIZ7vgBLJ1F-u8ua9urdLsYelMcqjlZbAApoj1V7Ltzj7lqULkXcXmij4uGDmX-2dChaRkPiOTAjqaaFcJN4zjew86j36-zlYVlaQToXZrjlRg8_RwFBGRHXLsfDM7VTTfkcWtK7bJUsKZzjrtLKGUZCMeAfVK0lSfLYUEVNvp4XPwqo39TQbGLozhvALzG5Xnik6Pe4Hzyj-zQbw0P1bCq2Y2sOCrPtqRVfOx-MkW8s4tyEVMeD1SnQbvS1QrSxmSvHSbh1suuHhWLfEjk2YJ53Lpxif4a3lOikDQXAyZM5zk3BHGzknbz74J-_HlUoPiUXyJuAznG3_me8jojv3lXD77Shx8iQxgRzK2qLs--k_1gxW-uho8j1lYRs4BLyN3iDqxfMrTUEv8n1GTMq18GdWEU31VYsAJ6x_jXOZTcqmnXlAPFe8iMV7jeyxbSfXybJ_qZMJFzp6ZSyrB-gr-YyDVizhH9y1-tmjtsmskxRAM_o_xmbP49gAGc1tuM8KQzGbLMle1mDgKIIiWRYqfsd0DG4laWIz3uhD2Gov0PGKWHiu6bIz1Yo84oPezG3l9qZS9EaO3F8fDA5guYqjGluzV3m44XLNp_LQiGulBo17X5VWL0e05P1bF_AEmfsYGxMzl01b56q9TKSjRRCKAE2903ZNFdL6BM6DppoeTJXqz6NZe0HGl3Cl61c9RNwfqhrv6GNHLyJBaQ_iCPp8OEl61T8wWK_nZBSWVnfVxA1QFWjlzj-Wxao1Q47BOdDUM-B-qHgxM6f92noQm9Ot9ppQ1r5Pz7bSFz0V6Bbk6d_0m00) + +## List of available C4 language themes + +> All language themes are machine translated. If there are any errors, please let us know and create an issue with the expected fix. + +If you want to create a diagram in a specific language, then you can defined ex. system labels, descriptions,... with names in the corresponding language. +But independent of these changes the standard (mostly legend) labels remain in English. + +Ex. following Japanese sample still displays an English legend (you could change the label with `Update...()` calls, but this requires a high effort per diagram): + +```plantuml +@startuml + ' first diagram without the C4Language_japanese theme + ' !theme C4Language_japanese from https://raw.githubusercontent.com/kirchsth/C4-PlantUML/extended/themes + !include https://raw.githubusercontent.com/kirchsth/C4-PlantUML/extended/C4_Container.puml + +LAYOUT_LANDSCAPE() + +Person(admin, "管理者") +System_Boundary(c1, 'サンプル') { + Container(web_app, "ウェブアプリケーション", "C#, ASP.NET Core 2.1 MVC", "複数のTwitterタイムラインを比較することができます") +} +System(twitter, "Twitter") + +Rel(admin, web_app, "使用する", "HTTPS") +Rel(web_app, twitter, "ツイートを取得する", "HTTPS") + +SHOW_LEGEND() +@enduml +``` + +![Japanese sample without C4Language_japanese theme](https://www.plantuml.com/plantuml/png/fP5FRzD04CNl-ocsuP142h6AUkBKu4RqaAOHSK6ShAszZGtnsbgl5Ig4X7VvWmG81AKLDq0LBI0LK8IuXFR336toCHYdXHpWXa-ZDyy_l-TPJ1MJAelwf4mtGfagweUi9rb41w4AuanH5N1gBxIOw6MinzqRB662fxpG8qvecSuLqxyz6pAEQA1KabwqBCa6zHv2i_KivTABXU92rRquicw6qWjI5LZsmlbEdmcrjjAo-2tS-zotflYKqBbGUFtCv_yBHD6rqSn2mMKzARgJLkFwwfhZjXhjfQxTw3GhLK8wNAQng30_2aMDbiO7RyVF7qpktYzLINSpLJnoByMPy9dSh7ZpDLe6_GtC4CmEc4_bAhrDA3v_FbGPy7MN9GcIGBy7lGTc6_IxgVqZwAzWHg2_Wq5zM4AJVQv66zrElTrq428vlL2VfojNxM8tsNruykeBv0SE7abn2Ve8z2wODs0-J8SXw1SddxSc8mFvQz2F8Ny9-JxaJo3VW_mfv8UeOuyxPqqgwXI4x3CaBiaLtl_TVXR-vu-ZyTR-ARR8ikmudIwwqJohECE1kJTDD0Bp24CTFzi-Fjpv-stINLwzvhQQbvlj9VptYtWelCil) + +But if you activate the `C4Language_japanese` theme, the legend is translated too: + +```plantuml +@startuml +' with the C4Language_japanese theme ex. the predefined legend labels are translated too +!theme C4Language_japanese from https://raw.githubusercontent.com/kirchsth/C4-PlantUML/extended/themes +!include https://raw.githubusercontent.com/kirchsth/C4-PlantUML/extended/C4_Container.puml + +LAYOUT_LANDSCAPE() + +Person(admin, "管理者") +System_Boundary(c1, 'サンプル') { + Container(web_app, "ウェブアプリケーション", "C#, ASP.NET Core 2.1 MVC", "複数のTwitterタイムラインを比較することができます") +} +System(twitter, "Twitter") + +Rel(admin, web_app, "使用する", "HTTPS") +Rel(web_app, twitter, "ツイートを取得する", "HTTPS") + +SHOW_LEGEND() +@enduml +``` + +![Japanese sample with C4Language_japanese theme](https://www.plantuml.com/plantuml/png/fP7FRjD048VlVefjEIIHWgsYdZWrk14zf6b4KX0dQnDFau2zjjPhfHL2mhlyGG84WjAA6w2A5f0AA49SGlimGviy1kEqj0UuuOkjcMy__sPd8L5SgZGCh08Rz5MFgHumTxx6HJVbNV1kyPWBI22lXy1WtPuIiGGVrle2V1P05mIzU1k2X759gEGY2RYYfeeYQoO_-c_fcen2rbCgJYuxZkG3kqiHqdQQWEn4Ge5GTYSAdTjzsUabgkUuynSR0HTgTRdcm3hrVV2TgJwnPlgY4wG-_A-FYfvBCAVff1tdLsFLAZTNLbjUhL9VRBgLHhLOigm6o2GIHUw7VL5ci-FzT-CN3oVt7ioMhEP6eY3qhaIfyBdSA7Rcogo0-ZkQ8PfjD9yB9NR7OlIS_QWuWBR7uvXCg3-WtaMpXVhz5F-4-XkQ4UeVQAW-d2N8lL1cbMR3hbTR9970BjbpRFcwc_ScEu-ENt_5RBz56rKWKH-Yta7p5it7wSSGzSlZBvkJaS7i3UedcBt2R0-pfvZjOlOCimEgqnntJoSfgXCHkK-LrBIkGV1d-lFmltuUZZVtJhHvbgLMgz4aEeVFg7CTcllJH2CqZodKqVEjeuFjlqzRpQML6rwjUhLQNwIxNw15qLv-0m00) + +In the following list you can find all available C4 language themes +(the diagram contents themselves are not translated that you simpler see the differences): + +### C4Language_english + +C4Language_english theme is the original language theme and need no activation. + +Theme [C4Language_english](https://raw.githubusercontent.com/kirchsth/C4-PlantUML/extended/themes/puml-theme-C4Language_english.puml) can be activated with + +```plantuml +!theme C4Language_english from https://raw.githubusercontent.com/kirchsth/C4-PlantUML/extended/themes +``` + +![](https:dutch) + +### C4Language_chinese + +Theme [C4Language_chinese](https://raw.githubusercontent.com/kirchsth/C4-PlantUML/extended/themes/puml-theme-C4Language_chinese.puml) can be activated with + +```plantuml +!theme C4Language_chinese from https://raw.githubusercontent.com/kirchsth/C4-PlantUML/extended/themes +``` + +![](https://www.plantuml.com/plantuml/png/fL5DZzCm4BtxLyoMmwPIIRHeJvmsX6fxQ4j4KdgCt6HeBFnXsHE52l7V6KDfkUFBoFFUFBytVeaa0qr6YmSQqI1KprjfpvCyOzUFoc94-1gSWP78n_T54UISdnMDqscA67fd2ItblJF5DnNwCT9OLCzlQoqj7NRR0hypFk1G_5QFua7PNay3_gyUDxkAoP8jXjod0AB649tDv62KNS6YJ5L52f9SM2n5Suc4fllW9Zl8SCdwfnKyDj9uZOzB-260pqqoc_7KIUzPvuWdABtNgfUad5rmgtgpWhAfy_swvP60y2v_WjsNAc6brcwEaD9480SSnKkcc4cJuhUWdHKH1Y1bKASDixUVLtSP_G5PvqfZK7n6_JVLtTOXyYJNJTlM3RCIwORUPLwH8bynbVIH_uw8PlFfs6tNh-lznsmfNdYplCXV) + +### C4Language_dutch + +Theme [C4Language_dutch](https://raw.githubusercontent.com/kirchsth/C4-PlantUML/extended/themes/puml-theme-C4Language_dutch.puml) can be activated with + +```plantuml +!theme C4Language_dutch from https://raw.githubusercontent.com/kirchsth/C4-PlantUML/extended/themes +``` + +![](https://www.plantuml.com/plantuml/png/fL5DZzCm4BtxLyoMmwPIIRHeJvmsX6fxQ4j4KdgCt6HeBFnXsME52l7VcK1fkUFBoFFUl7dFVeaa0oMZnGEDQ12gvwsqvoJFs0s9-X6-1cTW9FBnVL44EULdHMCwfOYXTvRGKjuxKtnJeHyZZKNr_BRMqj9XjotmE-C33iLlxIWUbErr6l1_zRZPLKoMocB8_MnVr1YYivaSZB8hM9HpLP6291SMIz5S8g7fFhXa1nakMV-qWiT66g_nSGa_1F2vIMOJdZhfFUiSyGIbzrhrafIp2svLRrPGDdM-NxSy4X3UvK-m-rBDMAcrcoBCQIAG0uxY9LDCqgHu5xIJ8i80f0ngtXNPsy-hkup-WAnpfJ4eFgF-c-fkwn1vakkcRUk6MJFfXjvbNf4YNt4kyqV-EoAQpQTZjrs_hlSViwLuGJlmG_u2) + +### C4Language_german + +Theme [C4Language_german](https://raw.githubusercontent.com/kirchsth/C4-PlantUML/extended/themes/puml-theme-C4Language_german.puml) can be activated with + +```plantuml +!theme C4Language_german from https://raw.githubusercontent.com/kirchsth/C4-PlantUML/extended/themes +``` + +![](https://www.plantuml.com/plantuml/png/fP4_3zem4CLtVug33WI99g9YwaIQ8XY0HaqeOsIIQsBLVopxh1HL_UvrMWhTw-LaltS_lITlFN57GKasem4LGh4vSjq7tcFJerDSmrTd50n4rh_FCiV7j1SqX5lmw5gZ2JMbhL7PD-7QmTEG5PktfUIQBgTZXj-Ztc6N_OPxDXEwbQ73_-OLcwQ8PYuqkjHE-Lc9pXkTy4u9lO9vFatXoN4oRhvarTqJgkQ32RhZxfwqwnKiAgwinCKIVZ28vubCHhmrtDh8kU8DSckbQ3a9e-VngNYpWhmgq_EkZYiEuLswXjENOj9oASteOMhZWGp4AfP7YmgIX9K8zIY8q049XL9ez37RpqUwXFw8aVEmHP5zHlctrIlMnSVDE0zrNLRHDPcUwWkpH_BnYjEOFlBV5LOTFbsRusw_EtzCbcoBkWjA_W80) + +### C4Language_italian + +Theme [C4Language_italian](https://raw.githubusercontent.com/kirchsth/C4-PlantUML/extended/themes/puml-theme-C4Language_italian.puml) can be activated with + +```plantuml +!theme C4Language_italian from https://raw.githubusercontent.com/kirchsth/C4-PlantUML/extended/themes +``` + +![](https://www.plantuml.com/plantuml/png/fL5Fxz904BtlfvWV7dubmJOOJfwebS01iB55ZitIZdJZ_jdiJbE9yRixLGJlzZBfl3TltfjTHvA11gF52_Le48hLNjhh8A_OA99QIGjVWpFG4_duFik27DEhedwu3153wooXfRHr9lkcGjj7whDYzRRKqjBfiC_mE-CTTjblzIXUb6trqE7_wd6pAPWibSMG-Yc0A354PnFP6MKNCCkdgY85IIxCvgAwHKBJV723xMIu9Uro0Q-LD5xZwnn-2E3l8PcCU6cazwnpnWlatclLIbBEphXLl5b0NfNfSLFpI41uboxXyAMOi5nhDqQOqaGW1np5IwQOGPFYNL2FYWW3a3AeULTaRp_lxXBw0xBEdSQW-8pwRwgdhLFaIQwxkYuhPasa1_gKsI95_iMfJ0_vxuYeTf_EpNwptHm_9dEnvilo8Ny1) + +### C4Language_japanese + +Theme [C4Language_japanese](https://raw.githubusercontent.com/kirchsth/C4-PlantUML/extended/themes/puml-theme-C4Language_japanese.puml) can be activated with + +```plantuml +!theme C4Language_japanese from https://raw.githubusercontent.com/kirchsth/C4-PlantUML/extended/themes +``` + +![](https://www.plantuml.com/plantuml/png/fL5DhzCm4BpxL-mhXvTA9T53FN5g25LxQ4j4KdgCt6Hf3Fwmx8r2XVZlRA2qt9ylA-_CpixOgqWoq62qUA8U3KAnt4bx6UG5cs_IIuiHuMjm1deY7zzdMP1ZUb7K3-SXOcYT9RIKjivatrLe-qXzLYpVbbfQEkvt6VvWlCCk-oCVnPEohHuwVAqUDvk2oL9P3AcV4eWIGtGsaPrHTW6pVAegKf3amcmkgciaDCq7DzXEXclIlYpWkPB6QtoUmqy1VEwIoOZdHdhFEYSyG-wzLgqavUoCMyMR1UHLcHxMDOy4X7Vf2-o_51EMQ-t625EQ2EI0etZ953DeKhmBwb4HOG1I1ZNlYkpjryrTGdz1rhdH61IVKVzBzR1rZ3p9TLlNPSMiYNH77p8RfCXNdChqaV-FY6hxwTJirflruMCo5okq7J_aRm00) + +### C4Language_korean + +Theme [C4Language_korean](https://raw.githubusercontent.com/kirchsth/C4-PlantUML/extended/themes/puml-theme-C4Language_korean.puml) can be activated with + +```plantuml +!theme C4Language_korean from https://raw.githubusercontent.com/kirchsth/C4-PlantUML/extended/themes +``` + +![](https://www.plantuml.com/plantuml/png/fL5DZzem4BtxLypImmQ99jfgJpsHfWWEGACcb6DaaYcny8TbJvIYgl-zavP2x-lBoFFUl7dFNaQIWGQZnHFrQ12Arwsqvq6UiRcuWDB2z-0Cz4G-Vioo8CVqhAWVJaF4q3fBQ2bjdSakAhHzf3uhNj-NMbewxBOP_c2ymoxx8nx5axAj7ZfygnutcuB9KbaCgP_yYn93T3QHdL5s0RDygYfIaEJ2R2wgQoGqpISts4w6QzA-BE2vaiPhV9x3Jm5yxfB9YAT6UiywHpn1xhrMhIJbx8nRnRi5v5MPxbSrZmI43-aBxBuL4vPhxSO8Kve8v82ZUCaKCsXIl0lgKH5X0586DU-AxEtNpLr2Vq7MkT4O55zH_qlri7M8FCbrKzTbnQo9T4SVCckao5USolIH_u-8QlFbs6nNwzN-Sp8NIxGTF-Hl) + +### C4Language_portuguese + +Theme [C4Language_portuguese](https://raw.githubusercontent.com/kirchsth/C4-PlantUML/extended/themes/puml-theme-C4Language_portuguese.puml) can be activated with + +```plantuml +!theme C4Language_portuguese from https://raw.githubusercontent.com/kirchsth/C4-PlantUML/extended/themes +``` + +![](https://www.plantuml.com/plantuml/png/fL5DZzCm4BtxLyoMmwPIIRIe9quRGjKUsXAHb1uZDnaI2tzOzbYXGlntR2WjTtmPsU_D-v1VFN57GKdsH1CgX6gzvteCVCJEceYC0Jt2LsSKJ4JMloyAn-Ty53I5I_3eUgC9DUMzKSKtuVh9qrHKwxUrv9fEXts1tmdrW4Fnsy2p9w5x6GRyRxrgtLL64nSQNMvJ1rQZyqPdV512hs1HfYayEKx6BPQikNf2rNqmGG_SNRF-PGNF3LTMulCIVZ28vowPpNZfkBLHvumNAAsLekSaZ5x4f-hD2igcpe-RDguuX7Vv2no-L0ahfJIpXzJ60ndeZR8yKbIG9An4Q6T1X0v8A9JHoyTiFs_fCle3HfqRBOBiCyg_hHwnJXvzyjkrRTr4LYBTqOVC5id7AwQHFlBV5TRiFfsx_MQxENxCbkmLzH2K_0K0) + +### C4Language_russian + +Theme [C4Language_russian](https://raw.githubusercontent.com/kirchsth/C4-PlantUML/extended/themes/puml-theme-C4Language_russian.puml) can be activated with + +```plantuml +!theme C4Language_russian from https://raw.githubusercontent.com/kirchsth/C4-PlantUML/extended/themes +``` + +![](https://www.plantuml.com/plantuml/png/fL5DZzCm4BtxLyoMmwPIIRHeJvmsX6fxQ4j4KdgCt6HeBFnXsME52l7VcK1fkUFBoFFUl7dFVeaa0oMZnGEDQ12gvwsqvoJFs8KKev8MlWPdO2JoyNrH13dbPqLZEgM8eNUMq5BUErDyKw4V8ur5zVosrjBIORSjy3lZ0mx5R_Ke7fJjTHhmV_MusLLCbifYoFqSGDGOehEP78ooArYKSrMHWYGN5alHN2AXwJwuP0SPBbd_j8B7HXglyN49FmJmkKbc4vuwwJth7F44fVTQzPAKimjkLMzMK3Prlb-tF18GtkLFiFjIpLYfjPiYp6aYa0EEuYLJJDAaU1UqaoB20AGCQjuLsTlFgxkC_e2iSwKnA3wZ_flgRkiGUPBhfcthXbapwORUPLwH8bznBlD7_ZiYcisdOxTTlwxt7xEbU44xy4F-0W00) + +### C4Language_spanish + +Theme [C4Language_spanish](https://raw.githubusercontent.com/kirchsth/C4-PlantUML/extended/themes/puml-theme-C4Language_spanish.puml) can be activated with + +```plantuml +!theme C4Language_spanish from https://raw.githubusercontent.com/kirchsth/C4-PlantUML/extended/themes +``` + +![](https://www.plantuml.com/plantuml/png/fL5Fxz904BtlfvWV7dubmJOOJfwebS01iB55ZitIZdJZ_jdiJbE9yRixLGJlzZBfl3TltfjTHvA11gF52_Le48hLNjhh8A_OH2-jYZry3Sv0J-JZ-omBSaolYlhXCaGChRE4bjBMcUoR2cqVgS-ArTjIIqkdmpx3xunts6M_rQDuKRRLGuV_gyVDfc2oL1P3wgS0eiGGdKraPvHTm2oVgeeK9Bamculg5WbDyy4DjfFXbhJB1RnMqdYDhtFu8O2_XsGougMHthFE6I-GUwzLAqavE-DMyMO1ULMcnqtD8m7XNRg4mvTYmdAjtHXXIXE1770KBvbY1asATq4zAY8CGCgWvbsHlVsykqle3yWwTng3uZFglwcUjawH9xdkwhgic3MH7kXJPeiK-HUdCZtaloEYsdqwD_lDTdFycCp5cY_BX_m5) + +### C4Language_ukrainian + +Theme [C4Language_ukrainian](https://raw.githubusercontent.com/kirchsth/C4-PlantUML/extended/themes/puml-theme-C4Language_ukrainian.puml) can be activated with + +```plantuml +!theme C4Language_ukrainian from https://raw.githubusercontent.com/kirchsth/C4-PlantUML/extended/themes +``` + +![](https://www.plantuml.com/plantuml/png/fL5DRzD04BtlhvY6Gnqfs2hgYLEDYTf36YpiaAEriOTubVrOxSxAH8Z_pXX2mhs-Z3plOzxJFaMIWPBHuev6D0ZLuqRQOv97xD8fI6MLjF0zE0CZaOyVYoB8AJyg6jCXHGoziuIMyjwPugH2FqOQY-hnVQsbfTthfi0VZ0yu57_yexXJjjTfmBVwyRAhcCmHCUH-hY1g3D7PJ0v6sHKiodcgI46I2ukbQCwHq7IVNBA33EUiVrZ1VIEDrtY_X9y2-BjQPXCUEkaz--pn0ANtMlMIbBCBNbNlLb0sTRvTjom921_o1tZzLirOgRMR8inj8f03hk8bKqpIfFWMj9CYmW2a36g-5JdRhqkwZFw2x7EXCIY-elxNwXPh5rd9ywLjwuPPC-cAtcoUaIB_uZpcX_nV8fgNB_jkitvURpzdI_64TaX6_mO0) diff --git a/percy/TestLabelsWithLineBreak.puml b/percy/TestLabelsWithLineBreak.puml index 8abc20f6..761c6a31 100644 --- a/percy/TestLabelsWithLineBreak.puml +++ b/percy/TestLabelsWithLineBreak.puml @@ -20,7 +20,7 @@ Rel_(p1, c1, "A relation\nwith custom direction", "o-DOWN->>") Rel_(p1, c2, "A relation\nwith custom direction", "and technology\nwith LBs", "o-RIGHT-o") Rel(c1, c2, "A label\nwith\nline breaks", "and technology\nwith LBs") -Rel(c1, s1, "A linked label\nwith\nline breaks", "and technology\nwith LBs", $link = "http://www.plantuml.com") +Rel(c1, s1, "A linked label\nwith\nline breaks", "and technology\nwith LBs", $link = "https://www.plantuml.com") Node(n1, "A node label\nwith\nline breaks", "type with\nline break", "description\nwith line break") Node(n2, "A node label", "PlantUML packages have no automatic line breaks, type breaks added", "PlantUML packages have no automatic line breaks, description breaks added") { @@ -39,4 +39,4 @@ Component(to, "To component") Rel_("pre1", from, to, "A custom dynamic relation\nwith custom direction", "o-DOWN->>") Rel_("pre2", from, to, "A custom dynamic relation\nwith custom direction", "and technology\nwith LBs", "+--+") Rel(from, to, "A dynamic relation\nwith line break") -@enduml \ No newline at end of file +@enduml diff --git a/percy/TestLanguageChinese.puml b/percy/TestLanguageChinese.puml new file mode 100644 index 00000000..9bed5aa7 --- /dev/null +++ b/percy/TestLanguageChinese.puml @@ -0,0 +1,21 @@ +@startuml +' convert it with additional command line argument -DRELATIVE_INCLUDE="./.." to use locally +!if %variable_exists("RELATIVE_INCLUDE") + !theme C4Language_english from %get_variable_value("RELATIVE_INCLUDE")/themes + !include %get_variable_value("RELATIVE_INCLUDE")/C4_Container.puml +!else + !theme C4Language_english from https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/themes + !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Container.puml +!endif + +Person(admin, "Administrator") +System_Boundary(c1, 'Sample') { + Container(web_app, "Web Application", "C#, ASP.NET Core 2.1 MVC", "Allows users to compare multiple Twitter timelines") +} +System(twitter, "Twitter") + +Rel(admin, web_app, "Uses", "HTTPS") +Rel(web_app, twitter, "Gets tweets from", "HTTPS") + +SHOW_LEGEND() +@enduml \ No newline at end of file diff --git a/percy/TestLanguageDutch.puml b/percy/TestLanguageDutch.puml new file mode 100644 index 00000000..7c4b17b1 --- /dev/null +++ b/percy/TestLanguageDutch.puml @@ -0,0 +1,21 @@ +@startuml +' convert it with additional command line argument -DRELATIVE_INCLUDE="./.." to use locally +!if %variable_exists("RELATIVE_INCLUDE") + !theme C4Language_dutch from %get_variable_value("RELATIVE_INCLUDE")/themes + !include %get_variable_value("RELATIVE_INCLUDE")/C4_Container.puml +!else + !theme C4Language_dutch from https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/themes + !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Container.puml +!endif + +Person(admin, "Administrator") +System_Boundary(c1, 'Sample') { + Container(web_app, "Web Application", "C#, ASP.NET Core 2.1 MVC", "Allows users to compare multiple Twitter timelines") +} +System(twitter, "Twitter") + +Rel(admin, web_app, "Uses", "HTTPS") +Rel(web_app, twitter, "Gets tweets from", "HTTPS") + +SHOW_LEGEND() +@enduml \ No newline at end of file diff --git a/percy/TestLanguageEnglish.puml b/percy/TestLanguageEnglish.puml new file mode 100644 index 00000000..9bed5aa7 --- /dev/null +++ b/percy/TestLanguageEnglish.puml @@ -0,0 +1,21 @@ +@startuml +' convert it with additional command line argument -DRELATIVE_INCLUDE="./.." to use locally +!if %variable_exists("RELATIVE_INCLUDE") + !theme C4Language_english from %get_variable_value("RELATIVE_INCLUDE")/themes + !include %get_variable_value("RELATIVE_INCLUDE")/C4_Container.puml +!else + !theme C4Language_english from https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/themes + !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Container.puml +!endif + +Person(admin, "Administrator") +System_Boundary(c1, 'Sample') { + Container(web_app, "Web Application", "C#, ASP.NET Core 2.1 MVC", "Allows users to compare multiple Twitter timelines") +} +System(twitter, "Twitter") + +Rel(admin, web_app, "Uses", "HTTPS") +Rel(web_app, twitter, "Gets tweets from", "HTTPS") + +SHOW_LEGEND() +@enduml \ No newline at end of file diff --git a/percy/TestLanguageGerman.puml b/percy/TestLanguageGerman.puml new file mode 100644 index 00000000..70f93668 --- /dev/null +++ b/percy/TestLanguageGerman.puml @@ -0,0 +1,21 @@ +@startuml +' convert it with additional command line argument -DRELATIVE_INCLUDE="./.." to use locally +!if %variable_exists("RELATIVE_INCLUDE") + !theme C4Language_german from %get_variable_value("RELATIVE_INCLUDE")/themes + !include %get_variable_value("RELATIVE_INCLUDE")/C4_Container.puml +!else + !theme C4Language_german from https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/themes + !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Container.puml +!endif + +Person(admin, "Administrator") +System_Boundary(c1, 'Sample') { + Container(web_app, "Web Application", "C#, ASP.NET Core 2.1 MVC", "Allows users to compare multiple Twitter timelines") +} +System(twitter, "Twitter") + +Rel(admin, web_app, "Uses", "HTTPS") +Rel(web_app, twitter, "Gets tweets from", "HTTPS") + +SHOW_LEGEND() +@enduml \ No newline at end of file diff --git a/percy/TestLanguageItalian.puml b/percy/TestLanguageItalian.puml new file mode 100644 index 00000000..0944b427 --- /dev/null +++ b/percy/TestLanguageItalian.puml @@ -0,0 +1,21 @@ +@startuml +' convert it with additional command line argument -DRELATIVE_INCLUDE="./.." to use locally +!if %variable_exists("RELATIVE_INCLUDE") + !theme C4Language_italian from %get_variable_value("RELATIVE_INCLUDE")/themes + !include %get_variable_value("RELATIVE_INCLUDE")/C4_Container.puml +!else + !theme C4Language_italian from https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/themes + !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Container.puml +!endif + +Person(admin, "Administrator") +System_Boundary(c1, 'Sample') { + Container(web_app, "Web Application", "C#, ASP.NET Core 2.1 MVC", "Allows users to compare multiple Twitter timelines") +} +System(twitter, "Twitter") + +Rel(admin, web_app, "Uses", "HTTPS") +Rel(web_app, twitter, "Gets tweets from", "HTTPS") + +SHOW_LEGEND() +@enduml \ No newline at end of file diff --git a/percy/TestLanguageJapanese.puml b/percy/TestLanguageJapanese.puml new file mode 100644 index 00000000..83fe9798 --- /dev/null +++ b/percy/TestLanguageJapanese.puml @@ -0,0 +1,30 @@ +@startuml +' convert it with additional command line argument -DRELATIVE_INCLUDE="./.." to use locally +!if %variable_exists("RELATIVE_INCLUDE") + !theme C4Language_japanese from %get_variable_value("RELATIVE_INCLUDE")/themes + + !include %get_variable_value("RELATIVE_INCLUDE")/C4_Container.puml +!else + !theme C4Language_japanese from https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/themes + + !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Container.puml +!endif + +LAYOUT_LANDSCAPE() +' sketch mode changes the font to 'Comic Sans MS' but ex. Japanese requires a unicode +' font like Dialog but it could be that different user have different fonts. +' Global solution in language theme files themselves are missing. +' !$SKETCH_FONT_NAME="Dialog" +' LAYOUT_AS_SKETCH() + +Person(admin, "管理者") +System_Boundary(c1, 'サンプル') { + Container(web_app, "ウェブアプリケーション", "C#, ASP.NET Core 2.1 MVC", "複数のTwitterタイムラインを比較することができます") +} +System(twitter, "Twitter") + +Rel(admin, web_app, "使用する", "HTTPS") +Rel(web_app, twitter, "ツイートを取得する", "HTTPS") + +SHOW_LEGEND() +@enduml diff --git a/percy/TestLanguageKorean.puml b/percy/TestLanguageKorean.puml new file mode 100644 index 00000000..d7af3508 --- /dev/null +++ b/percy/TestLanguageKorean.puml @@ -0,0 +1,21 @@ +@startuml +' convert it with additional command line argument -DRELATIVE_INCLUDE="./.." to use locally +!if %variable_exists("RELATIVE_INCLUDE") + !theme C4Language_korean from %get_variable_value("RELATIVE_INCLUDE")/themes + !include %get_variable_value("RELATIVE_INCLUDE")/C4_Container.puml +!else + !theme C4Language_korean from https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/themes + !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Container.puml +!endif + +Person(admin, "Administrator") +System_Boundary(c1, 'Sample') { + Container(web_app, "Web Application", "C#, ASP.NET Core 2.1 MVC", "Allows users to compare multiple Twitter timelines") +} +System(twitter, "Twitter") + +Rel(admin, web_app, "Uses", "HTTPS") +Rel(web_app, twitter, "Gets tweets from", "HTTPS") + +SHOW_LEGEND() +@enduml \ No newline at end of file diff --git a/percy/TestLanguagePortuguese.puml b/percy/TestLanguagePortuguese.puml new file mode 100644 index 00000000..5364c2b4 --- /dev/null +++ b/percy/TestLanguagePortuguese.puml @@ -0,0 +1,21 @@ +@startuml +' convert it with additional command line argument -DRELATIVE_INCLUDE="./.." to use locally +!if %variable_exists("RELATIVE_INCLUDE") + !theme C4Language_portuguese from %get_variable_value("RELATIVE_INCLUDE")/themes + !include %get_variable_value("RELATIVE_INCLUDE")/C4_Container.puml +!else + !theme C4Language_portuguese from https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/themes + !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Container.puml +!endif + +Person(admin, "Administrator") +System_Boundary(c1, 'Sample') { + Container(web_app, "Web Application", "C#, ASP.NET Core 2.1 MVC", "Allows users to compare multiple Twitter timelines") +} +System(twitter, "Twitter") + +Rel(admin, web_app, "Uses", "HTTPS") +Rel(web_app, twitter, "Gets tweets from", "HTTPS") + +SHOW_LEGEND() +@enduml \ No newline at end of file diff --git a/percy/TestLanguageRussian.puml b/percy/TestLanguageRussian.puml new file mode 100644 index 00000000..45e98b9b --- /dev/null +++ b/percy/TestLanguageRussian.puml @@ -0,0 +1,21 @@ +@startuml +' convert it with additional command line argument -DRELATIVE_INCLUDE="./.." to use locally +!if %variable_exists("RELATIVE_INCLUDE") + !theme C4Language_russian from %get_variable_value("RELATIVE_INCLUDE")/themes + !include %get_variable_value("RELATIVE_INCLUDE")/C4_Container.puml +!else + !theme C4Language_russian from https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/themes + !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Container.puml +!endif + +Person(admin, "Administrator") +System_Boundary(c1, 'Sample') { + Container(web_app, "Web Application", "C#, ASP.NET Core 2.1 MVC", "Allows users to compare multiple Twitter timelines") +} +System(twitter, "Twitter") + +Rel(admin, web_app, "Uses", "HTTPS") +Rel(web_app, twitter, "Gets tweets from", "HTTPS") + +SHOW_LEGEND() +@enduml \ No newline at end of file diff --git a/percy/TestLanguageSpanish.puml b/percy/TestLanguageSpanish.puml new file mode 100644 index 00000000..9a726c0f --- /dev/null +++ b/percy/TestLanguageSpanish.puml @@ -0,0 +1,21 @@ +@startuml +' convert it with additional command line argument -DRELATIVE_INCLUDE="./.." to use locally +!if %variable_exists("RELATIVE_INCLUDE") + !theme C4Language_spanish from %get_variable_value("RELATIVE_INCLUDE")/themes + !include %get_variable_value("RELATIVE_INCLUDE")/C4_Container.puml +!else + !theme C4Language_spanish from https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/themes + !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Container.puml +!endif + +Person(admin, "Administrator") +System_Boundary(c1, 'Sample') { + Container(web_app, "Web Application", "C#, ASP.NET Core 2.1 MVC", "Allows users to compare multiple Twitter timelines") +} +System(twitter, "Twitter") + +Rel(admin, web_app, "Uses", "HTTPS") +Rel(web_app, twitter, "Gets tweets from", "HTTPS") + +SHOW_LEGEND() +@enduml \ No newline at end of file diff --git a/percy/TestLanguageUkrainian.puml b/percy/TestLanguageUkrainian.puml new file mode 100644 index 00000000..fb240ccf --- /dev/null +++ b/percy/TestLanguageUkrainian.puml @@ -0,0 +1,21 @@ +@startuml +' convert it with additional command line argument -DRELATIVE_INCLUDE="./.." to use locally +!if %variable_exists("RELATIVE_INCLUDE") + !theme C4Language_ukrainian from %get_variable_value("RELATIVE_INCLUDE")/themes + !include %get_variable_value("RELATIVE_INCLUDE")/C4_Container.puml +!else + !theme C4Language_ukrainian from https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/themes + !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Container.puml +!endif + +Person(admin, "Administrator") +System_Boundary(c1, 'Sample') { + Container(web_app, "Web Application", "C#, ASP.NET Core 2.1 MVC", "Allows users to compare multiple Twitter timelines") +} +System(twitter, "Twitter") + +Rel(admin, web_app, "Uses", "HTTPS") +Rel(web_app, twitter, "Gets tweets from", "HTTPS") + +SHOW_LEGEND() +@enduml \ No newline at end of file diff --git a/percy/TestLegendSprite.puml b/percy/TestLegendSprite.puml index d7fa09b9..cf4482c9 100644 --- a/percy/TestLegendSprite.puml +++ b/percy/TestLegendSprite.puml @@ -27,12 +27,12 @@ AddContainerTag("mysql_db", $sprite="database_server", $techn="MySQL 5.5.x", $le AddContainerTag("mongo_db", $sprite="database_server", $techn="MongoDB 2.2.x", $legendText="MongoDb database container") AddContainerTag("files", $sprite="file_server", $legendText="file server container") -AddContainerTag("conApp", $sprite="img:http://plantuml.com/logo3.png{scale=0.3}", $legendSprite="img:http://plantuml.com/logo3.png{scale=0.1}", $legendText="console application") +AddContainerTag("conApp", $sprite="img:https://plantuml.com/logo3.png{scale=0.3}", $legendSprite="img:https://plantuml.com/logo3.png{scale=0.1}", $legendText="console application") UpdateElementStyle("external_system", $bgColor=$EXTERNAL_SYSTEM_BG_COLOR, $fontColor=$EXTERNAL_SYSTEM_FONT_COLOR, $borderColor=$EXTERNAL_SYSTEM_BORDER_COLOR, $sprite = "osa_server", , $legendText="external system") AddRelTag("firewall", $textColor="$ARROW_FONT_COLOR", $lineColor="$ARROW_COLOR", $sprite="&envelope-closed", $techn="HTTPS", $legendText="firewall") -AddRelTag("plantuml", $textColor="$ARROW_FONT_COLOR", $lineColor="$ARROW_COLOR", $sprite="img:http://plantuml.com/logo3.png{scale=0.1}", $legendText="console triggered") +AddRelTag("plantuml", $textColor="$ARROW_FONT_COLOR", $lineColor="$ARROW_COLOR", $sprite="img:https://plantuml.com/logo3.png{scale=0.1}", $legendText="console triggered") Person_Ext(anonymous_user, "Bob", $tags="anonymous_ext") Person(aggregated_user, "Sam, Ivone", $tags="customer") diff --git a/percy/TestLegendTitle.puml b/percy/TestLegendTitle.puml new file mode 100644 index 00000000..f47dc6d4 --- /dev/null +++ b/percy/TestLegendTitle.puml @@ -0,0 +1,22 @@ +@startuml + +' convert it with additional command line argument -DRELATIVE_INCLUDE="./.." to use locally +!if %variable_exists("RELATIVE_INCLUDE") + !include %get_variable_value("RELATIVE_INCLUDE")/C4_Container.puml +!else + !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Container.puml +!endif + +UpdateLegendTitle("Updated legend title") + +Person(admin, "Administrator") +System_Boundary(c1, 'Sample') { + Container(web_app, "Web Application", "C#, ASP.NET Core 2.1 MVC", "Allows users to compare multiple Twitter timelines") +} +System(twitter, "Twitter") + +Rel(admin, web_app, "Uses", "HTTPS") +Rel(web_app, twitter, "Gets tweets from", "HTTPS") + +SHOW_LEGEND() +@enduml \ No newline at end of file diff --git a/percy/TestTagSupportsSprite.puml b/percy/TestTagSupportsSprite.puml index 09e7da31..3bef1df6 100644 --- a/percy/TestTagSupportsSprite.puml +++ b/percy/TestTagSupportsSprite.puml @@ -31,12 +31,12 @@ AddContainerTag("mongo_db", $sprite="mongodb", $legendText="MongoDB container") AddContainerTag("mysql_db", $sprite="mysql", $legendText="MySQL container") AddContainerTag("files", $sprite="file_server", $legendText="file server container") -AddContainerTag("conApp", $sprite="img:http://plantuml.com/logo3.png{scale=0.3}", $legendSprite="img:http://plantuml.com/logo3.png{scale=0.1}", $legendText="console application") +AddContainerTag("conApp", $sprite="img:https://plantuml.com/logo3.png{scale=0.3}", $legendSprite="img:https://plantuml.com/logo3.png{scale=0.1}", $legendText="console application") UpdateElementStyle("external_system", $bgColor=$EXTERNAL_SYSTEM_BG_COLOR, $fontColor=$EXTERNAL_SYSTEM_FONT_COLOR, $borderColor=$EXTERNAL_SYSTEM_BORDER_COLOR, $sprite = "osa_server", , $legendText="external system") AddRelTag("firewall", $textColor="$ARROW_FONT_COLOR", $lineColor="$ARROW_COLOR", $sprite="firewall,scale=0.3,color=red", $legendText="firewall") -AddRelTag("plantuml", $textColor="$ARROW_FONT_COLOR", $lineColor="$ARROW_COLOR", $sprite="img:http://plantuml.com/logo3.png{scale=0.1}", $legendText="console triggered") +AddRelTag("plantuml", $textColor="$ARROW_FONT_COLOR", $lineColor="$ARROW_COLOR", $sprite="img:https://plantuml.com/logo3.png{scale=0.1}", $legendText="console triggered") LAYOUT_LEFT_RIGHT() ' LAYOUT_LANDSCAPE() diff --git a/percy/TestTagSupportsSpriteTechn.puml b/percy/TestTagSupportsSpriteTechn.puml index 863eb406..c1518665 100644 --- a/percy/TestTagSupportsSpriteTechn.puml +++ b/percy/TestTagSupportsSpriteTechn.puml @@ -31,12 +31,12 @@ AddContainerTag("mongo_db", $techn = "MongoDB 2.2.x", $sprite="mongodb", $legend AddContainerTag("mysql_db", $techn="MySQL 5.5.x", $sprite="mysql", $legendText="MySQL container") AddContainerTag("files", $sprite="file_server", $legendText="file server container") -AddContainerTag("conApp", $sprite="img:http://plantuml.com/logo3.png{scale=0.3}", $legendSprite="img:http://plantuml.com/logo3.png{scale=0.1}", $legendText="console application") +AddContainerTag("conApp", $sprite="img:https://plantuml.com/logo3.png{scale=0.3}", $legendSprite="img:https://plantuml.com/logo3.png{scale=0.1}", $legendText="console application") UpdateElementStyle("external_system", $bgColor=$EXTERNAL_SYSTEM_BG_COLOR, $fontColor=$EXTERNAL_SYSTEM_FONT_COLOR, $borderColor=$EXTERNAL_SYSTEM_BORDER_COLOR, $sprite = "osa_server", , $legendText="external system") AddRelTag("firewall", $textColor="$ARROW_FONT_COLOR", $lineColor="$ARROW_COLOR", $techn="HTTPS", $sprite="firewall,scale=0.3,color=red", $legendText="firewall") -AddRelTag("plantuml", $textColor="$ARROW_FONT_COLOR", $lineColor="$ARROW_COLOR", $techn="HTTPS", $sprite="img:http://plantuml.com/logo3.png{scale=0.1}", $legendText="console triggered") +AddRelTag("plantuml", $textColor="$ARROW_FONT_COLOR", $lineColor="$ARROW_COLOR", $techn="HTTPS", $sprite="img:https://plantuml.com/logo3.png{scale=0.1}", $legendText="console triggered") LAYOUT_LEFT_RIGHT() ' LAYOUT_LANDSCAPE() diff --git a/samples/C4CoreDiagrams.md b/samples/C4CoreDiagrams.md index 74fb46e0..f61f14ca 100644 --- a/samples/C4CoreDiagrams.md +++ b/samples/C4CoreDiagrams.md @@ -4,7 +4,7 @@ The following samples are reproductions with C4-PlantUML from [C4 model core dia - [📄 C4-PlantUML](../README.md#c4-plantuml) - [📄 Layout Options](../LayoutOptions.md#layout-options) -- [📄 Themes](../Themes.md#themes) +- [📄 Themes (different styles and languages)](../Themes.md#themes) - samples - [📄 C4 Model Diagrams](#c4-model-diagrams) - [Core Diagrams](#core-diagrams) diff --git a/themes/puml-theme-C4Language_chinese.puml b/themes/puml-theme-C4Language_chinese.puml new file mode 100644 index 00000000..9a30809c --- /dev/null +++ b/themes/puml-theme-C4Language_chinese.puml @@ -0,0 +1,51 @@ +!$THEME = "C4Language_chinese" + +!$BOUNDARY_LEGEND_TEXT ?= "边界" + +!$LEGEND_TITLE_TEXT ?= "图例" + +!$LEGEND_BOUNDARY ?= "边界" +' !$LEGEND_BOUNDARY_PRE_PART ?= "" +!$LEGEND_BOUNDARY_POST_PART ?= $LEGEND_BOUNDARY + +!$LEGEND_SHADOW_TEXT ?= "阴影" +!$LEGEND_NO_SHADOW_TEXT ?= "无阴影" +!$LEGEND_NO_FONT_BG_TEXT ?= "最后的文字和背景颜色" +!$LEGEND_NO_FONT_TEXT ?= "最后的文字颜色" +!$LEGEND_NO_BG_TEXT ?= "最后的背景颜色" +!$LEGEND_NO_LINE_TEXT ?= "最后的线条颜色" +!$LEGEND_ROUNDED_BOX ?= "圆角框" +!$LEGEND_EIGHT_SIDED ?= "八边形" +!$LEGEND_DOTTED_LINE ?= "点线" +!$LEGEND_DASHED_LINE ?= "虚线" +!$LEGEND_BOLD_LINE ?= "粗线" +!$LEGEND_SOLID_LINE ?= "实线" +' !$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= "transparent, " +!$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= "" +!$LEGEND_BOUNDARY_DASHED_INCL_COMA ?= "虚线, " +' !$LEGEND_BOUNDARY_DASHED_INCL_COMA ?= "" +!$LEGEND_THICKNESS ?= "厚度" + +!$SKETCH_FOOTER_WARNING ?= "警告:" +!$SKETCH_FOOTER_TEXT ?= "创建用于讨论,需要验证" + +!$COMPONENT_LEGEND_TEXT ?= "组件" +!$EXTERNAL_COMPONENT_LEGEND_TEXT ?= "外部组件" + +!$CONTAINER_LEGEND_TEXT ?= "容器" +!$CONTAINER_BOUNDARY_TYPE ?= "容器" +!$CONTAINER_BOUNDARY_LEGEND_TEXT ?= "容器边界" +!$EXTERNAL_CONTAINER_LEGEND_TEXT ?= "外部容器" + +!$PERSON_LEGEND_TEXT ?= "人" +!$EXTERNAL_PERSON_LEGEND_TEXT ?= "外部人" + +!$SYSTEM_LEGEND_TEXT ?= "系统" +!$SYSTEM_BOUNDARY_TYPE ?= "系统" +!$SYSTEM_BOUNDARY_LEGEND_TEXT ?= "系统边界" +!$EXTERNAL_SYSTEM_LEGEND_TEXT ?= "外部系统" + +!ENTERPRISE_BOUNDARY_TYPE ?= "企业" +!$ENTERPRISE_BOUNDARY_LEGEND_TEXT ?= "企业边界" + +!$NODE_LEGEND_TEXT ?= "节点" diff --git a/themes/puml-theme-C4Language_dutch.puml b/themes/puml-theme-C4Language_dutch.puml new file mode 100644 index 00000000..82afafa8 --- /dev/null +++ b/themes/puml-theme-C4Language_dutch.puml @@ -0,0 +1,51 @@ +!$THEME = "C4Language_dutch" + +!$BOUNDARY_LEGEND_TEXT ?= "grens" + +!$LEGEND_TITLE_TEXT ?= "Legenda" + +!$LEGEND_BOUNDARY ?= "grens" +' !$LEGEND_BOUNDARY_PRE_PART ?= "" +!$LEGEND_BOUNDARY_POST_PART ?= $LEGEND_BOUNDARY + +!$LEGEND_SHADOW_TEXT ?= "schaduw" +!$LEGEND_NO_SHADOW_TEXT ?= "geen schaduw" +!$LEGEND_NO_FONT_BG_TEXT ?= "laatste tekst- en achtergrondkleur" +!$LEGEND_NO_FONT_TEXT ?= "laatste tekstkleur" +!$LEGEND_NO_BG_TEXT ?= "laatste achtergrondkleur" +!$LEGEND_NO_LINE_TEXT ?= "laatste lijnkleur" +!$LEGEND_ROUNDED_BOX ?= "afgeronde doos" +!$LEGEND_EIGHT_SIDED ?= "achtzijdig" +!$LEGEND_DOTTED_LINE ?= "gestippeld" +!$LEGEND_DASHED_LINE ?= "gestreept" +!$LEGEND_BOLD_LINE ?= "vet" +!$LEGEND_SOLID_LINE ?= "solide" +' !$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= "transparent, " +!$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= "" +!$LEGEND_BOUNDARY_DASHED_INCL_COMA ?= "gestreept, " +' !$LEGEND_BOUNDARY_DASHED_INCL_COMA ?= "" +!$LEGEND_THICKNESS ?= "dikte" + +!$SKETCH_FOOTER_WARNING ?= "Waarschuwing:" +!$SKETCH_FOOTER_TEXT ?= "Gemaakt voor discussie, moet worden gevalideerd" + +!$COMPONENT_LEGEND_TEXT ?= "component" +!$EXTERNAL_COMPONENT_LEGEND_TEXT ?= "extern component" + +!$CONTAINER_LEGEND_TEXT ?= "container" +!$CONTAINER_BOUNDARY_TYPE ?= "container" +!$CONTAINER_BOUNDARY_LEGEND_TEXT ?= "containergrens" +!$EXTERNAL_CONTAINER_LEGEND_TEXT ?= "externe container" + +!$PERSON_LEGEND_TEXT ?= "persoon" +!$EXTERNAL_PERSON_LEGEND_TEXT ?= "externe persoon" + +!$SYSTEM_LEGEND_TEXT ?= "systeem" +!$SYSTEM_BOUNDARY_TYPE ?= "systeem" +!$SYSTEM_BOUNDARY_LEGEND_TEXT ?= "systeemgrens" +!$EXTERNAL_SYSTEM_LEGEND_TEXT ?= "extern systeem" + +!$ENTERPRISE_BOUNDARY_TYPE ?= "bedrijfs" +!$ENTERPRISE_BOUNDARY_LEGEND_TEXT ?= "bedrijfsgrens" + +!$NODE_LEGEND_TEXT ?= "knooppunt" diff --git a/themes/puml-theme-C4Language_english.puml b/themes/puml-theme-C4Language_english.puml new file mode 100644 index 00000000..91b9d475 --- /dev/null +++ b/themes/puml-theme-C4Language_english.puml @@ -0,0 +1,51 @@ +' all available language specific text labels (orig. English) +!$THEME = "C4Language_english" + +!$BOUNDARY_LEGEND_TEXT ?= "boundary" + +!$LEGEND_TITLE_TEXT ?= "Legend" + +!$LEGEND_BOUNDARY ?= "boundary" +' !$LEGEND_BOUNDARY_PRE_PART ?= "" +' !$LEGEND_BOUNDARY_POST_PART ?= " " + $LEGEND_BOUNDARY + +!$LEGEND_SHADOW_TEXT ?= "shadow" +!$LEGEND_NO_SHADOW_TEXT ?= "no shadow" +!$LEGEND_NO_FONT_BG_TEXT ?= "last text and back color" +!$LEGEND_NO_FONT_TEXT ?= "last text color" +!$LEGEND_NO_BG_TEXT ?= "last back color" +!$LEGEND_NO_LINE_TEXT ?= "last line color" +!$LEGEND_ROUNDED_BOX ?= "rounded box" +!$LEGEND_EIGHT_SIDED ?= "eight sided" +!$LEGEND_DOTTED_LINE ?= "dotted" +!$LEGEND_DASHED_LINE ?= "dashed" +!$LEGEND_BOLD_LINE ?= "bold" +!$LEGEND_SOLID_LINE ?= "solid" +' !$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= "transparent, " +!$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= "" +!$LEGEND_BOUNDARY_DASHED_INCL_COMA ?= "dashed, " +' !$LEGEND_BOUNDARY_DASHED_INCL_COMA ?= "" +!$LEGEND_THICKNESS ?= "thickness" +!$SKETCH_FOOTER_WARNING ?= "Warning:" +!$SKETCH_FOOTER_TEXT ?= "Created for discussion, needs to be validated" + +!$COMPONENT_LEGEND_TEXT ?= "component" +!$EXTERNAL_COMPONENT_LEGEND_TEXT ?= "external component" + +!$CONTAINER_LEGEND_TEXT ?= "container" +!$CONTAINER_BOUNDARY_TYPE ?= "container" +!$CONTAINER_BOUNDARY_LEGEND_TEXT ?= "container boundary" +!$EXTERNAL_CONTAINER_LEGEND_TEXT ?= "external container" + +!$PERSON_LEGEND_TEXT ?= "person" +!$EXTERNAL_PERSON_LEGEND_TEXT ?= "external person" + +!$SYSTEM_LEGEND_TEXT ?= "system" +!$SYSTEM_BOUNDARY_TYPE ?= "system" +!$SYSTEM_BOUNDARY_LEGEND_TEXT ?= "system boundary" +!$EXTERNAL_SYSTEM_LEGEND_TEXT ?= "external system" + +!$ENTERPRISE_BOUNDARY_TYPE ?= "enterprise" +!$ENTERPRISE_BOUNDARY_LEGEND_TEXT ?= "enterprise boundary" + +!$NODE_LEGEND_TEXT ?= "node" diff --git a/themes/puml-theme-C4Language_french.puml b/themes/puml-theme-C4Language_french.puml new file mode 100644 index 00000000..f6a447d1 --- /dev/null +++ b/themes/puml-theme-C4Language_french.puml @@ -0,0 +1,51 @@ +!$THEME = "C4Language_french" + +!$BOUNDARY_LEGEND_TEXT ?= "frontière" + +!$LEGEND_TITLE_TEXT ?= "Légende" + +!$LEGEND_BOUNDARY ?= "frontière" +!$LEGEND_BOUNDARY_PRE_PART ?= "frontière du " +!$LEGEND_BOUNDARY_POST_PART ?= "" + +!$LEGEND_SHADOW_TEXT ?= "ombre" +!$LEGEND_NO_SHADOW_TEXT ?= "pas d'ombre" +!$LEGEND_NO_FONT_BG_TEXT ?= "dernière couleur de texte et de fond" +!$LEGEND_NO_FONT_TEXT ?= "dernière couleur de texte" +!$LEGEND_NO_BG_TEXT ?= "dernière couleur de fond" +!$LEGEND_NO_LINE_TEXT ?= "dernière couleur de ligne" +!$LEGEND_ROUNDED_BOX ?= "boîte arrondie" +!$LEGEND_EIGHT_SIDED ?= "octogonal" +!$LEGEND_DOTTED_LINE ?= "pointillé" +!$LEGEND_DASHED_LINE ?= "tiret" +!$LEGEND_BOLD_LINE ?= "gras" +!$LEGEND_SOLID_LINE ?= "solide" +' !$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= "transparent, " +!$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= "" +!$LEGEND_BOUNDARY_DASHED_INCL_COMA ?= "tiret, " +' !$LEGEND_BOUNDARY_DASHED_INCL_COMA ?= "" +!$LEGEND_THICKNESS ?= "épaisseur" + +!$SKETCH_FOOTER_WARNING ?= "Attention:" +!$SKETCH_FOOTER_TEXT ?= "Créé pour discussion, doit être validé" + +!$COMPONENT_LEGEND_TEXT ?= "composant" +!$EXTERNAL_COMPONENT_LEGEND_TEXT ?= "composant externe" + +!$CONTAINER_LEGEND_TEXT ?= "conteneur" +!$CONTAINER_BOUNDARY_TYPE ?= "conteneur" +!$CONTAINER_BOUNDARY_LEGEND_TEXT ?= "frontière du conteneur" +!$EXTERNAL_CONTAINER_LEGEND_TEXT ?= "conteneur externe" + +!$PERSON_LEGEND_TEXT ?= "personne" +!$EXTERNAL_PERSON_LEGEND_TEXT ?= "personne externe" + +!$SYSTEM_LEGEND_TEXT ?= "système" +!$SYSTEM_BOUNDARY_TYPE ?= "système" +!$SYSTEM_BOUNDARY_LEGEND_TEXT ?= "frontière du système" +!$EXTERNAL_SYSTEM_LEGEND_TEXT ?= "système externe" + +!$ENTERPRISE_BOUNDARY_TYPE ?= "entreprise" +!$ENTERPRISE_BOUNDARY_LEGEND_TEXT ?= "frontière de l'entreprise" + +!$NODE_LEGEND_TEXT ?= "nœud" diff --git a/themes/puml-theme-C4Language_german.puml b/themes/puml-theme-C4Language_german.puml new file mode 100644 index 00000000..aef04883 --- /dev/null +++ b/themes/puml-theme-C4Language_german.puml @@ -0,0 +1,51 @@ +!$THEME = "C4Language_deutsch" + +!$BOUNDARY_LEGEND_TEXT ?= "Grenze" + +!$LEGEND_TITLE_TEXT ?= "Legende" + +!$LEGEND_BOUNDARY ?= "Grenze" +' !$LEGEND_BOUNDARY_PRE_PART ?= "" +' !$LEGEND_BOUNDARY_POST_PART ?= " " + $LEGEND_BOUNDARY +!$LEGEND_BOUNDARY_POST_PART ?= "grenze" + +!$LEGEND_SHADOW_TEXT ?= "Schatten" +!$LEGEND_NO_SHADOW_TEXT ?= "kein Schatten" +!$LEGEND_NO_FONT_BG_TEXT ?= "letzte Text- und Hintergrundfarbe" +!$LEGEND_NO_FONT_TEXT ?= "letzte Textfarbe" +!$LEGEND_NO_BG_TEXT ?= "letzte Hintergrundfarbe" +!$LEGEND_NO_LINE_TEXT ?= "letzte Linienfarbe" +!$LEGEND_ROUNDED_BOX ?= "abgerundetes Kästchen" +!$LEGEND_EIGHT_SIDED ?= "achtseitig" +!$LEGEND_DOTTED_LINE ?= "gepunktet" +!$LEGEND_DASHED_LINE ?= "gestrichelt" +!$LEGEND_BOLD_LINE ?= "fett" +!$LEGEND_SOLID_LINE ?= "durchgezogen" +' !$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= "transparent, " +!$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= "" +!$LEGEND_BOUNDARY_DASHED_INCL_COMA ?= "gestrichelt, " +' !$LEGEND_BOUNDARY_DASHED_INCL_COMA ?= "" +!$LEGEND_THICKNESS ?= "Dicke" +!$SKETCH_FOOTER_WARNING ?= "Warnung:" +!$SKETCH_FOOTER_TEXT ?= "Zur Diskussion gestellt, muss überprüft werden" + +!$COMPONENT_LEGEND_TEXT ?= "Komponente" +!$EXTERNAL_COMPONENT_LEGEND_TEXT ?= "externe Komponente" + +!$CONTAINER_LEGEND_TEXT ?= "Container" +!$CONTAINER_BOUNDARY_TYPE ?= "Container" +!$CONTAINER_BOUNDARY_LEGEND_TEXT ?= "Containergrenze" +!$EXTERNAL_CONTAINER_LEGEND_TEXT ?= "externer Container" + +!$PERSON_LEGEND_TEXT ?= "Person" +!$EXTERNAL_PERSON_LEGEND_TEXT ?= "externe Person" + +!$SYSTEM_LEGEND_TEXT ?= "System" +!$SYSTEM_BOUNDARY_TYPE ?= "System" +!$SYSTEM_BOUNDARY_LEGEND_TEXT ?= "Systemgrenze" +!$EXTERNAL_SYSTEM_LEGEND_TEXT ?= "externes System" + +!$ENTERPRISE_BOUNDARY_TYPE ?= "Unternehmen" +!$ENTERPRISE_BOUNDARY_LEGEND_TEXT ?= "Unternehmensgrenze" + +!$NODE_LEGEND_TEXT ?= "Knoten" diff --git a/themes/puml-theme-C4Language_italian.puml b/themes/puml-theme-C4Language_italian.puml new file mode 100644 index 00000000..47c06502 --- /dev/null +++ b/themes/puml-theme-C4Language_italian.puml @@ -0,0 +1,50 @@ +!$THEME = "C4Language_italian" + +!$BOUNDARY_LEGEND_TEXT ?= "confine" + +!$LEGEND_TITLE_TEXT ?= "Leggenda" + +!$LEGEND_BOUNDARY ?= "confine" +!$LEGEND_BOUNDARY_PRE_PART ?= "confine del " +!$LEGEND_BOUNDARY_POST_PART ?= "" + +!$LEGEND_SHADOW_TEXT ?= "ombra" +!$LEGEND_NO_SHADOW_TEXT ?= "nessuna ombra" +!$LEGEND_NO_FONT_BG_TEXT ?= "ultimo colore del testo e dello sfondo" +!$LEGEND_NO_FONT_TEXT ?= "ultimo colore del testo" +!$LEGEND_NO_BG_TEXT ?= "ultimo colore dello sfondo" +!$LEGEND_NO_LINE_TEXT ?= "ultimo colore della linea" +!$LEGEND_ROUNDED_BOX ?= "scatola arrotondata" +!$LEGEND_EIGHT_SIDED ?= "otto lati" +!$LEGEND_DOTTED_LINE ?= "punteggiato" +!$LEGEND_DASHED_LINE ?= "tratteggiato" +!$LEGEND_BOLD_LINE ?= "grassetto" +!$LEGEND_SOLID_LINE ?= "solido" +' !$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= "transparent, " +!$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= "" +!$LEGEND_BOUNDARY_DASHED_INCL_COMA ?= "tratteggiato, " +' !$LEGEND_BOUNDARY_DASHED_INCL_COMA ?= "" +!$LEGEND_THICKNESS ?= "spessore" +!$SKETCH_FOOTER_WARNING ?= "Avvertimento:" +!$SKETCH_FOOTER_TEXT ?= "Creato per discussione, deve essere convalidato" + +!$COMPONENT_LEGEND_TEXT ?= "componente" +!$EXTERNAL_COMPONENT_LEGEND_TEXT ?= "componente esterno" + +!$CONTAINER_LEGEND_TEXT ?= "contenitore" +!$CONTAINER_BOUNDARY_TYPE ?= "contenitore" +!$CONTAINER_BOUNDARY_LEGEND_TEXT ?= "confine del contenitore" +!$EXTERNAL_CONTAINER_LEGEND_TEXT ?= "contenitore esterno" + +!$PERSON_LEGEND_TEXT ?= "persona" +!$EXTERNAL_PERSON_LEGEND_TEXT ?= "persona esterna" + +!$SYSTEM_LEGEND_TEXT ?= "sistema" +!$SYSTEM_BOUNDARY_TYPE ?= "sistema" +!$SYSTEM_BOUNDARY_LEGEND_TEXT ?= "confine del sistema" +!$EXTERNAL_SYSTEM_LEGEND_TEXT ?= "sistema esterno" + +!$ENTERPRISE_BOUNDARY_TYPE ?= "impresa" +!$ENTERPRISE_BOUNDARY_LEGEND_TEXT ?= "confine dell'impresa" + +!$NODE_LEGEND_TEXT ?= "nodo" diff --git a/themes/puml-theme-C4Language_japanese.puml b/themes/puml-theme-C4Language_japanese.puml new file mode 100644 index 00000000..9db02fe1 --- /dev/null +++ b/themes/puml-theme-C4Language_japanese.puml @@ -0,0 +1,51 @@ +!$THEME = "C4Language_japanese" + +!$BOUNDARY_LEGEND_TEXT ?= "境界" + +!$LEGEND_TITLE_TEXT ?= "凡例" + +!$LEGEND_BOUNDARY ?= "境界" +' !$LEGEND_BOUNDARY_PRE_PART ?= "" +!$LEGEND_BOUNDARY_POST_PART ?= $LEGEND_BOUNDARY + +!$LEGEND_SHADOW_TEXT ?= "影" +!$LEGEND_NO_SHADOW_TEXT ?= "影なし" +!$LEGEND_NO_FONT_BG_TEXT ?= "最後のテキストと背景色" +!$LEGEND_NO_FONT_TEXT ?= "最後のテキスト色" +!$LEGEND_NO_BG_TEXT ?= "最後の背景色" +!$LEGEND_NO_LINE_TEXT ?= "最後の線色" +!$LEGEND_ROUNDED_BOX ?= "丸いボックス" +!$LEGEND_EIGHT_SIDED ?= "八角形" +!$LEGEND_DOTTED_LINE ?= "点線" +!$LEGEND_DASHED_LINE ?= "破線" +!$LEGEND_BOLD_LINE ?= "太線" +!$LEGEND_SOLID_LINE ?= "実線" +' !$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= "transparent, " +!$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= "" +!$LEGEND_BOUNDARY_DASHED_INCL_COMA ?= "破線, " +' !$LEGEND_BOUNDARY_DASHED_INCL_COMA ?= "" +!$LEGEND_THICKNESS ?= "厚さ" + +!$SKETCH_FOOTER_WARNING ?= "警告:" +!$SKETCH_FOOTER_TEXT ?= "議論のために作成され、検証が必要です" + +!$COMPONENT_LEGEND_TEXT ?= "コンポーネント" +!$EXTERNAL_COMPONENT_LEGEND_TEXT ?= "外部コンポーネント" + +!$CONTAINER_LEGEND_TEXT ?= "コンテナ" +!$CONTAINER_BOUNDARY_TYPE ?= "コンテナ" +!$CONTAINER_BOUNDARY_LEGEND_TEXT ?= "コンテナ境界" +!$EXTERNAL_CONTAINER_LEGEND_TEXT ?= "外部コンテナ" + +!$PERSON_LEGEND_TEXT ?= "人" +!$EXTERNAL_PERSON_LEGEND_TEXT ?= "外部の人" + +!$SYSTEM_LEGEND_TEXT ?= "システム" +!$SYSTEM_BOUNDARY_TYPE ?= "システム" +!$SYSTEM_BOUNDARY_LEGEND_TEXT ?= "システム境界" +!$EXTERNAL_SYSTEM_LEGEND_TEXT ?= "外部システム" + +!$ENTERPRISE_BOUNDARY_TYPE ?= "企業" +!$ENTERPRISE_BOUNDARY_LEGEND_TEXT ?= "企業境界" + +!$NODE_LEGEND_TEXT ?= "ノード" diff --git a/themes/puml-theme-C4Language_korean.puml b/themes/puml-theme-C4Language_korean.puml new file mode 100644 index 00000000..0f422e69 --- /dev/null +++ b/themes/puml-theme-C4Language_korean.puml @@ -0,0 +1,51 @@ +!$THEME = "C4Language_korean" + +!$BOUNDARY_LEGEND_TEXT ?= "경계" + +!$LEGEND_TITLE_TEXT ?= "범례" + +!$LEGEND_BOUNDARY ?= "경계" +' !$LEGEND_BOUNDARY_PRE_PART ?= "" +' !$LEGEND_BOUNDARY_POST_PART ?= " " + $LEGEND_BOUNDARY + +!$LEGEND_SHADOW_TEXT ?= "그림자" +!$LEGEND_NO_SHADOW_TEXT ?= "그림자 없음" +!$LEGEND_NO_FONT_BG_TEXT ?= "마지막 텍스트 및 배경 색상" +!$LEGEND_NO_FONT_TEXT ?= "마지막 텍스트 색상" +!$LEGEND_NO_BG_TEXT ?= "마지막 배경 색상" +!$LEGEND_NO_LINE_TEXT ?= "마지막 선 색상" +!$LEGEND_ROUNDED_BOX ?= "둥근 상자" +!$LEGEND_EIGHT_SIDED ?= "팔각형" +!$LEGEND_DOTTED_LINE ?= "점선" +!$LEGEND_DASHED_LINE ?= "대시선" +!$LEGEND_BOLD_LINE ?= "굵은 선" +!$LEGEND_SOLID_LINE ?= "실선" +' !$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= "transparent, " +!$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= "" +!$LEGEND_BOUNDARY_DASHED_INCL_COMA ?= "대시선, " +' !$LEGEND_BOUNDARY_DASHED_INCL_COMA ?= "" +!$LEGEND_THICKNESS ?= "두께" + +!$SKETCH_FOOTER_WARNING ?= "경고:" +!$SKETCH_FOOTER_TEXT ?= "토론을 위해 작성되었으며 검증이 필요합니다" + +!$COMPONENT_LEGEND_TEXT ?= "구성 요소" +!$EXTERNAL_COMPONENT_LEGEND_TEXT ?= "외부 구성 요소" + +!$CONTAINER_LEGEND_TEXT ?= "컨테이너" +!$CONTAINER_BOUNDARY_TYPE ?= "컨테이너" +!$CONTAINER_BOUNDARY_LEGEND_TEXT ?= "컨테이너 경계" +!$EXTERNAL_CONTAINER_LEGEND_TEXT ?= "외부 컨테이너" + +!$PERSON_LEGEND_TEXT ?= "사람" +!$EXTERNAL_PERSON_LEGEND_TEXT ?= "외부 사람" + +!$SYSTEM_LEGEND_TEXT ?= "시스템" +!$SYSTEM_BOUNDARY_TYPE ?= "시스템" +!$SYSTEM_BOUNDARY_LEGEND_TEXT ?= "시스템 경계" +!$EXTERNAL_SYSTEM_LEGEND_TEXT ?= "외부 시스템" + +!$ENTERPRISE_BOUNDARY_TYPE ?= "기업" +!$ENTERPRISE_BOUNDARY_LEGEND_TEXT ?= "기업 경계" + +!$NODE_LEGEND_TEXT ?= "노드" diff --git a/themes/puml-theme-C4Language_portuguese.puml b/themes/puml-theme-C4Language_portuguese.puml new file mode 100644 index 00000000..642fd4b3 --- /dev/null +++ b/themes/puml-theme-C4Language_portuguese.puml @@ -0,0 +1,51 @@ +!$THEME = "C4Language_portuguese" + +!$BOUNDARY_LEGEND_TEXT ?= "limite" + +!$LEGEND_TITLE_TEXT ?= "Legenda" + +!$LEGEND_BOUNDARY ?= "limite" +!$LEGEND_BOUNDARY_PRE_PART ?= "limite do " +!$LEGEND_BOUNDARY_POST_PART ?= "" + +!$LEGEND_SHADOW_TEXT ?= "sombra" +!$LEGEND_NO_SHADOW_TEXT ?= "sem sombra" +!$LEGEND_NO_FONT_BG_TEXT ?= "última cor do texto e do fundo" +!$LEGEND_NO_FONT_TEXT ?= "última cor do texto" +!$LEGEND_NO_BG_TEXT ?= "última cor do fundo" +!$LEGEND_NO_LINE_TEXT ?= "última cor da linha" +!$LEGEND_ROUNDED_BOX ?= "caixa arredondada" +!$LEGEND_EIGHT_SIDED ?= "oito lados" +!$LEGEND_DOTTED_LINE ?= "pontilhado" +!$LEGEND_DASHED_LINE ?= "tracejado" +!$LEGEND_BOLD_LINE ?= "negrito" +!$LEGEND_SOLID_LINE ?= "sólido" +' !$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= "transparent, " +!$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= "" +!$LEGEND_BOUNDARY_DASHED_INCL_COMA ?= "tracejado, " +' !$LEGEND_BOUNDARY_DASHED_INCL_COMA ?= "" +!$LEGEND_THICKNESS ?= "espessura" + +!$SKETCH_FOOTER_WARNING ?= "Aviso:" +!$SKETCH_FOOTER_TEXT ?= "Criado para discussão, precisa ser validado" + +!$COMPONENT_LEGEND_TEXT ?= "componente" +!$EXTERNAL_COMPONENT_LEGEND_TEXT ?= "componente externo" + +!$CONTAINER_LEGEND_TEXT ?= "contêiner" +!$CONTAINER_BOUNDARY_TYPE ?= "contêiner" +!$CONTAINER_BOUNDARY_LEGEND_TEXT ?= "limite do contêiner" +!$EXTERNAL_CONTAINER_LEGEND_TEXT ?= "contêiner externo" + +!$PERSON_LEGEND_TEXT ?= "pessoa" +!$EXTERNAL_PERSON_LEGEND_TEXT ?= "pessoa externa" + +!$SYSTEM_LEGEND_TEXT ?= "sistema" +!$SYSTEM_BOUNDARY_TYPE ?= "sistema" +!$SYSTEM_BOUNDARY_LEGEND_TEXT ?= "limite do sistema" +!$EXTERNAL_SYSTEM_LEGEND_TEXT ?= "sistema externo" + +!$ENTERPRISE_BOUNDARY_TYPE ?= "empresa" +!$ENTERPRISE_BOUNDARY_LEGEND_TEXT ?= "limite da empresa" + +!$NODE_LEGEND_TEXT ?= "nó" diff --git a/themes/puml-theme-C4Language_russian.puml b/themes/puml-theme-C4Language_russian.puml new file mode 100644 index 00000000..556921d2 --- /dev/null +++ b/themes/puml-theme-C4Language_russian.puml @@ -0,0 +1,51 @@ +!$THEME = "C4Language_russian" + +!$BOUNDARY_LEGEND_TEXT ?= "граница" + +!$LEGEND_TITLE_TEXT ?= "Легенда" + +!$LEGEND_BOUNDARY ?= "граница" +!$LEGEND_BOUNDARY_PRE_PART ?= $LEGEND_BOUNDARY + " " +!$LEGEND_BOUNDARY_POST_PART ?= "" + +!$LEGEND_SHADOW_TEXT ?= "тень" +!$LEGEND_NO_SHADOW_TEXT ?= "без тени" +!$LEGEND_NO_FONT_BG_TEXT ?= "последний цвет текста и фона" +!$LEGEND_NO_FONT_TEXT ?= "последний цвет текста" +!$LEGEND_NO_BG_TEXT ?= "последний цвет фона" +!$LEGEND_NO_LINE_TEXT ?= "последний цвет линии" +!$LEGEND_ROUNDED_BOX ?= "округлая коробка" +!$LEGEND_EIGHT_SIDED ?= "восьмиугольный" +!$LEGEND_DOTTED_LINE ?= "пунктирная линия" +!$LEGEND_DASHED_LINE ?= "штриховая линия" +!$LEGEND_BOLD_LINE ?= "жирная линия" +!$LEGEND_SOLID_LINE ?= "сплошная линия" +' !$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= "transparent, " +!$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= "" +!$LEGEND_BOUNDARY_DASHED_INCL_COMA ?= "штриховая линия, " +' !$LEGEND_BOUNDARY_DASHED_INCL_COMA ?= "" +!$LEGEND_THICKNESS ?= "толщина" + +!$SKETCH_FOOTER_WARNING ?= "Предупреждение:" +!$SKETCH_FOOTER_TEXT ?= "Создано для обсуждения, требует проверки" + +!$COMPONENT_LEGEND_TEXT ?= "компонент" +!$EXTERNAL_COMPONENT_LEGEND_TEXT ?= "внешний компонент" + +!$CONTAINER_LEGEND_TEXT ?= "контейнер" +!$CONTAINER_BOUNDARY_TYPE ?= "контейнер" +!$CONTAINER_BOUNDARY_LEGEND_TEXT ?= "граница контейнера" +!$EXTERNAL_CONTAINER_LEGEND_TEXT ?= "внешний контейнер" + +!$PERSON_LEGEND_TEXT ?= "человек" +!$EXTERNAL_PERSON_LEGEND_TEXT ?= "внешний человек" + +!$SYSTEM_LEGEND_TEXT ?= "система" +!$SYSTEM_BOUNDARY_TYPE ?= "система" +!$SYSTEM_BOUNDARY_LEGEND_TEXT ?= "граница системы" +!$EXTERNAL_SYSTEM_LEGEND_TEXT ?= "внешняя система" + +!$ENTERPRISE_BOUNDARY_TYPE ?= "предприятия" +!$ENTERPRISE_BOUNDARY_LEGEND_TEXT ?= "граница предприятия" + +!$NODE_LEGEND_TEXT ?= "узел" diff --git a/themes/puml-theme-C4Language_spanish.puml b/themes/puml-theme-C4Language_spanish.puml new file mode 100644 index 00000000..167b6257 --- /dev/null +++ b/themes/puml-theme-C4Language_spanish.puml @@ -0,0 +1,50 @@ +!$THEME = "C4Language_spanish" + +!$BOUNDARY_LEGEND_TEXT ?= "límite" + +!$LEGEND_TITLE_TEXT ?= "Leyenda" + +!$LEGEND_BOUNDARY ?= "límite" +!$LEGEND_BOUNDARY_PRE_PART ?= "límite del " +!$LEGEND_BOUNDARY_POST_PART ?= "" + +!$LEGEND_SHADOW_TEXT ?= "sombra" +!$LEGEND_NO_SHADOW_TEXT ?= "sin sombra" +!$LEGEND_NO_FONT_BG_TEXT ?= "último color de texto y fondo" +!$LEGEND_NO_FONT_TEXT ?= "último color de texto" +!$LEGEND_NO_BG_TEXT ?= "último color de fondo" +!$LEGEND_NO_LINE_TEXT ?= "último color de línea" +!$LEGEND_ROUNDED_BOX ?= "caja redondeada" +!$LEGEND_EIGHT_SIDED ?= "octogonal" +!$LEGEND_DOTTED_LINE ?= "punteado" +!$LEGEND_DASHED_LINE ?= "discontinuo" +!$LEGEND_BOLD_LINE ?= "negrita" +!$LEGEND_SOLID_LINE ?= "sólido" +' !$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= "transparent, " +!$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= "" +!$LEGEND_BOUNDARY_DASHED_INCL_COMA ?= "discontinuo, " +' !$LEGEND_BOUNDARY_DASHED_INCL_COMA ?= "" +!$LEGEND_THICKNESS ?= "grosor" +!$SKETCH_FOOTER_WARNING ?= "Advertencia:" +!$SKETCH_FOOTER_TEXT ?= "Creado para discusión, necesita ser validado" + +!$COMPONENT_LEGEND_TEXT ?= "componente" +!$EXTERNAL_COMPONENT_LEGEND_TEXT ?= "componente externo" + +!$CONTAINER_LEGEND_TEXT ?= "contenedor" +!$CONTAINER_BOUNDARY_TYPE ?= "contenedor" +!$CONTAINER_BOUNDARY_LEGEND_TEXT ?= "límite del contenedor" +!$EXTERNAL_CONTAINER_LEGEND_TEXT ?= "contenedor externo" + +!$PERSON_LEGEND_TEXT ?= "persona" +!$EXTERNAL_PERSON_LEGEND_TEXT ?= "persona externa" + +!$SYSTEM_LEGEND_TEXT ?= "sistema" +!$SYSTEM_BOUNDARY_TYPE ?= "sistema" +!$SYSTEM_BOUNDARY_LEGEND_TEXT ?= "límite del sistema" +!$EXTERNAL_SYSTEM_LEGEND_TEXT ?= "sistema externo" + +!$ENTERPRISE_BOUNDARY_TYPE ?= "empresa" +!$ENTERPRISE_BOUNDARY_LEGEND_TEXT ?= "límite de la empresa" + +!$NODE_LEGEND_TEXT ?= "nodo" diff --git a/themes/puml-theme-C4Language_ukrainian.puml b/themes/puml-theme-C4Language_ukrainian.puml new file mode 100644 index 00000000..b18cf328 --- /dev/null +++ b/themes/puml-theme-C4Language_ukrainian.puml @@ -0,0 +1,52 @@ +!$THEME = "C4Language_ukrainian" + +!$BOUNDARY_LEGEND_TEXT ?= "межа" + +!$LEGEND_TITLE_TEXT ?= "Легенда" + +!$LEGEND_BOUNDARY ?= "межа" +!$LEGEND_BOUNDARY_PRE_PART ?= $LEGEND_BOUNDARY + "" +' !$LEGEND_BOUNDARY_POST_PART ?= " " + $LEGEND_BOUNDARY + +!$LEGEND_SHADOW_TEXT ?= "тінь" +!$LEGEND_NO_SHADOW_TEXT ?= "без тіні" +!$LEGEND_NO_FONT_BG_TEXT ?= "останній колір тексту та фону" + +!$LEGEND_NO_FONT_TEXT ?= "останній колір тексту" +!$LEGEND_NO_BG_TEXT ?= "останній колір фону" +!$LEGEND_NO_LINE_TEXT ?= "останній колір лінії" +!$LEGEND_ROUNDED_BOX ?= "округлий блок" +!$LEGEND_EIGHT_SIDED ?= "восьмикутний" +!$LEGEND_DOTTED_LINE ?= "пунктирна лінія" +!$LEGEND_DASHED_LINE ?= "штрихова лінія" +!$LEGEND_BOLD_LINE ?= "жирна лінія" +!$LEGEND_SOLID_LINE ?= "суцільна лінія" +' !$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= "transparent, " +!$LEGEND_BOUNDARY_TRANSPARENT_INCL_COMA ?= "" +!$LEGEND_BOUNDARY_DASHED_INCL_COMA ?= "штрихова, " +' !$LEGEND_BOUNDARY_DASHED_INCL_COMA ?= "" +!$LEGEND_THICKNESS ?= "товщина" + +!$SKETCH_FOOTER_WARNING ?= "Попередження:" +!$SKETCH_FOOTER_TEXT ?= "Створено для обговорення, потребує перевірки" + +!$COMPONENT_LEGEND_TEXT ?= "компонент" +!$EXTERNAL_COMPONENT_LEGEND_TEXT ?= "зовнішній компонент" + +!$CONTAINER_LEGEND_TEXT ?= "контейнер" +!$CONTAINER_BOUNDARY_TYPE ?= "контейнер" +!$CONTAINER_BOUNDARY_LEGEND_TEXT ?= "межа контейнера" +!$EXTERNAL_CONTAINER_LEGEND_TEXT ?= "зовнішній контейнер" + +!$PERSON_LEGEND_TEXT ?= "особа" +!$EXTERNAL_PERSON_LEGEND_TEXT ?= "зовнішня особа" + +!$SYSTEM_LEGEND_TEXT ?= "система" +!$SYSTEM_BOUNDARY_TYPE ?= "система" +!$SYSTEM_BOUNDARY_LEGEND_TEXT ?= "межа системи" +!$EXTERNAL_SYSTEM_LEGEND_TEXT ?= "зовнішня система" + +!$ENTERPRISE_BOUNDARY_TYPE ?= "підприємства" +!$ENTERPRISE_BOUNDARY_LEGEND_TEXT ?= "межа підприємства" + +!$NODE_LEGEND_TEXT ?= "вузол"