Skip to content

Commit

Permalink
Translate form names
Browse files Browse the repository at this point in the history
  • Loading branch information
eduard93 committed Apr 14, 2017
1 parent 85a0d81 commit a72921c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Form/Generators.cls.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ Fill ^CacheMsg global for further translation</Description>
set formName = $get(%parameter($$$formNameParam))
return:(($$$skipClasses[className)||(formName="")||(formNameKey="")) sc
do ##class(Form.Util.Translate).insert(formName)
#dim prop As %Dictionary.PropertyDefinition
for i = 1:1:%class.Properties.Count() {
set prop = %class.Properties.GetAt(i)
Expand Down
2 changes: 1 addition & 1 deletion Form/Info.cls.xml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ For results see:
set formName = $parameter(className, $$$formNameParam)
set metadata = {}
set metadata.name = formName
set metadata.name = ##class(Form.Util.Translate).get(formName)
set metadata.class = className
set metadata.displayProperty = $parameter(className, $$$displayProp)
set metadata.objpermissions = $parameter(className, "OBJPERMISSIONS")
Expand Down

0 comments on commit a72921c

Please sign in to comment.