Skip to content

Release v2.11.0

Latest
Compare
Choose a tag to compare
@kirchsth kirchsth released this 25 Oct 22:06

New Features

C4-PlantUML polyglott, predefined labels translatable via language themes

Previously, all predefined labels were in English. Now, C4-PlantUML supports multiple languages out of the box, similar to the existing “style” themes. This update introduces “language” themes.

Supported language themes include C4Language_chinese.puml, C4Language_dutch.puml, C4Language_english.puml, C4Language_french.puml, C4Language_german.puml, C4Language_italian.puml, C4Language_japanese.puml, C4Language_korean.puml, C4Language_portuguese.puml, C4Language_russian.puml, C4Language_spanish.puml, C4Language_ukrainian.puml.

These themes can be include like normal style themes.

@startuml
!theme C4Language_japanese from https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/themes
!theme C4_united from https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/themes

!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/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

https://www.plantuml.com/plantuml/uml/hP5FJzH06CRl_HJ3Ug2RB6qmd3onbeqSojBOel7Kp6x7tPfssaodsH1ZOcVyOw96emZnfeO8Qe8QOhmWV9XNsFqOlWLq3rxfgNddcT_pFEyi5f8AMQQ9CIE7B6N4MN0f7vHqmC8xDAUS5OpS5bbAXbBcnHNR5dHa3M8vB7jbmKG_uv9nQVMprCuJoclKN26Z9ExPpiASLu_MLbmxfOLamZxrAAPUOSbZoQABTp1cOjvFoeXT31MJEdY3nfm9Aw_NPRZjMwjhGUYskqk-q_OwPjCmF2QAZ9iqIcFU8etntllnoqUJ-myRJSDVHr0QNirA7b6nRlRdMsGMr0_G-w2tG7-PRPAx1i7ldv4vOhsGvZcIG7q4jGDw4zI7K_bdKDz17u3w2Hhd-mqKEPTQfErxLhSJ84GmSjcQ9oitdFfiiltuvCqtgFQ2KIon4QWZKDkWtu7-X3zr2lNgvEl6v413zHRKKwXUGxKBrJEeTg1w3jKXph77lVCcfZm38ViSYOV6TPRyRJyD__lNqNXZzmnRPraE0iz7DOgd5QSuq0_gH5XEFy5GnoysZm-t_hzj-CkhDqEtSwtJNSBTBp8UuRly0G00

Customize legend title text with UpdateLegendTitle(newTitle)

A new UpdateLegendTitle(newTitle) function has been added. This function allows you to customize the legend title.

For example, the following code

@startuml
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Container.puml

' NEW CALL UpdateLegendTitle
UpdateLegendTitle("Updated legend title")

Person(admin, "Administrator")
System_Boundary(c1, 'Sample') {
    Container(web_app, "Web Application")
}
System(twitter, "Twitter")

SHOW_LEGEND()
@enduml

produces the following diagram:

https://www.plantuml.com/plantuml/uml/PO-zQlCm541tFOM-B54WiVcWKwUuhca7DmqumQEvjYw9G3z2kiQ4qdUlr9GkrI9nf7iusaU2GBFHx9-oavubyYkHZuzb6M0fBegkypX739EpX9QAoPdIQx1vPXT9QZMMzSFkcD7vhIqDHCAGq52d2L0MG-6pdwtveUbvNRKjFti9X2rUqCgJ8eti3n6hEv9SVqDEcQusZ1qnH6S5IAFibg-glAj80SY5TD_TKe0Pdjni9OIRcFvl-Re3upMkD_o3yRH-qyI2um3U9q-F8w-yrse2Kiucq-UFIz2YY32aHwVxAMTqh-_zq3OlpU5PRDW-9QPVVW40

What's Changed

New Contributors

Fixes in PlantUML v1.2024.8beta6

With the latest PlantUML v1.2024.8beta6 following issue is fixed too

  • Rel styling $lineStyle does not work for sequence diagrams #369

Full Changelog: v2.10.0...v2.11.0