Templates (ResourceBlender.NET)
From Lime 49 Wiki
(Redirected from Templates (ResourceBlender))
As well as the specialized formats ResourceBlender generates, templates can also be used to generate resources. This allows a custom filename and format to be used.
Tags can be used when specifying the format for different parts of each bundle which will be replaced by context dependant text like the bundle name.
Note: Only a limited set are available when specifying a filename, file start or file end (the element and translation are only relevant in the context of each translation).
Contents |
Available Tags
| Tag Name | Valid |
|---|---|
| {=LanguageCode} | Always |
| {=Bundle} | Always |
| {=Element} | Only for element format |
| {=Translation} | Only for element format |
Included Templates
Templates for PHP arrays and PHP definitions are included with ResourceBlender. These should help you get started creating custom templates.
PHP Array
| Filename | {=Bundle}_{=LanguageCode}.php |
| File Start | <?php ${=Bundle} = array( |
| File End | ); ?> |
| Element | "{=Element}" => "{=Translation}", |
PHP Definitions
| Filename | {=Bundle}_{=LanguageCode}.php |
| File Start | <?php |
| File End | ); ?> |
| Element | define("{=Element}","{=Translation}"); |
