Skip to content

Commit

Permalink
variable name correction
Browse files Browse the repository at this point in the history
variable name correction
  • Loading branch information
moncef-essid committed Sep 11, 2020
1 parent 9e0a70f commit 1dfba79
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ We can start improving this by keeping the first case, then replacing the variab
{capture name='my_module_tempvar'}{l s='World' mod='mymodule'}{/capture}
{assign var='my_module_name' value=$smarty.capture.my_module_tempvar}
{/if}
{l s='Hello,' mod='mymodule'} {$my_module_name$}!
{l s='Hello,' mod='mymodule'} {$my_module_name}!
```

This is a start! In this example, when `$my_module_name` is not defined, we capture the value of translating "World" and assign that value in `$my_module_name`. This way, we can simply display `$my_module_name` in any case.
Expand Down

0 comments on commit 1dfba79

Please sign in to comment.