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
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:
What's Changed
- Fix
plantuml.com/logo3.png
image link by @Mengesh in #362 - #364,#365 Add
UpdateLegendTitle(newTitle)
call and multilingual themes by @kirchsth in #366 - Themes: Add danish by @BjoernGoettler in #370
New Contributors
- @Mengesh made their first contribution in #362
- @BjoernGoettler made their first contribution in #370
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