intersystems / intersystems/ipm

How to define localized strings?

Open
#258 16 comments 0 reactions 0 assignees View on GitHub
documentation prio: medium
Dominant language
ObjectScript
Stars
41
Forks
29
Avg merge
23h 54m
Merged PRs (30d)
4

Description

I've figured out how to define localized error messages using LOC resource in module.xml

```

```

And supporting file `src/My/Errors.xml`

```




Value %1 is invalid


```

Which when loaded generates `localize/My/MyErrrors.xml` file in the working copy and `My.Errors` include routine (read only):

```
ROUTINE My.Errors [Type=INC]
#define MyErrCustomError "CustomError"
```

Which I can include and use as `$$$ERROR($$$MyErrCustomError, 42)`

Is there a ZPM way to do this for non-error strings such as form labels?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.