Skip to content

Commit

Permalink
Update localization.md (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
mprinkezs authored Jan 23, 2025
1 parent 379d24e commit e141a9c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion doc/howtos/localization/localization.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,12 @@ DIALOG=gom.script.sys.create_user_defined_dialog (dialog={

Texts in scripts have to be tagged as translatable via using the `tr ()`  function. During translation file generation, these texts will be processed and later replaced at runtime with the available translations.

print (tr ('This text will be translated'))
``` Python
import gom
from gom import tr

print (tr ('This text will be translated'))
```

## Translating scripts

Expand Down

0 comments on commit e141a9c

Please sign in to comment.