C4-PlantUML icon indicating copy to clipboard operation
C4-PlantUML copied to clipboard

spanish translation

Open rodverap opened this issue 2 years ago • 1 comments

It is posible to have a spanish translation of stereotipes names, person, enterprise, system, boundary, etc?

I have identified SetDefaultLegendEntries but I really dont know how to make changes

rodverap avatar Sep 14 '22 17:09 rodverap

Hi @rodverap,

I would not change the stereotypes itself. I would hide the stereotypes and show a translated legend Another simple solution could be that you hide the stereotype (if you don't want to show a legend)

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

UpdateElementStyle("person",  $fontColor=$ELEMENT_FONT_COLOR, $bgColor=$PERSON_BG_COLOR, $borderColor=$PERSON_BORDER_COLOR, $legendText = "persona")
UpdateElementStyle("container", $fontColor=$ELEMENT_FONT_COLOR, $bgColor=$CONTAINER_BG_COLOR, $borderColor=$CONTAINER_BORDER_COLOR,$legendText = "contendor")
UpdateElementStyle("system", $fontColor=$ELEMENT_FONT_COLOR, $bgColor=$SYSTEM_BG_COLOR, $borderColor=$SYSTEM_BORDER_COLOR,$legendText = "sistema")

Person(personAlias, "Persona 1", "Descripción")
Container(containerAlias, "Contenedor 1", "Tecnología", "Opcional descripción")
System(systemAlias, "Sistema 1", "Opcional descripción")

Rel(personAlias, containerAlias, "Label", "Optional Technology")

SHOW_LEGEND()
@enduml

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

Person(personAlias, "Persona 1", "Descripción")
Container(containerAlias, "Contenedor 1", "Tecnología", "Opcional descripción")
System(systemAlias, "Sistema 1", "Opcional descripción")

Rel(personAlias, containerAlias, "Label", "Optional Technology")

HIDE_STEREOTYPE()
@enduml

I hope it helps, best regards Helmut

kirchsth avatar Sep 17 '22 08:09 kirchsth

Hi @rodverap,

was it useful for you? Can we close the issue?

BR Helmut

kirchsth avatar Oct 22 '22 23:10 kirchsth

Yes this is helpfull Thank you a lot, fell fee to close the issue. (sorry for the delay)

rodverap avatar Oct 31 '22 03:10 rodverap