Sparx Systems Forum

Enterprise Architect => Bugs and Issues => Topic started by: Geert Bellekens on June 03, 2024, 05:14:57 pm

Title: Translations for operations cannot be added using the API
Post by: Geert Bellekens on June 03, 2024, 05:14:57 pm
Details:
In the API there are methods to set the translations for EA.Method, but they simply don't work.
The translation is not added (that, or the GetTX... methods don't work, that is possible as well)

There is unfortunately no way to view or update translations for operations using the GUI

Seriously, who tested this feature? Was this tested at all?


Steps to Reproduce:
Code: [Select]
function main
    dim language
    language = "nl"
    dim operation
    set operation = Repository.GetMethodByGuid("{1880D1F3-8CC0-4291-AC6F-2432AB636921}")
    Session.Output "Start: " & operation.GetTXName(language,0)
    operation.SetTXName lcase(language), UCase(language) & " TXName"
    operation.update
    Session.Output "txName: " & operation.GetTXName(language,0)
end function

Reported

Geert