canmove, Confirmed users
1,448
edits
No edit summary |
No edit summary |
||
| Line 2: | Line 2: | ||
* enable localizers to include locally defined resources (for example with macros or basic local entities) | * enable localizers to include locally defined resources (for example with macros or basic local entities) | ||
* enable build engineers to generate index resources that include language specific resources | * <del>enable build engineers to generate index resources that include language specific resources</del> | ||
== examples == | == examples == | ||
| Line 9: | Line 9: | ||
</pre> | </pre> | ||
This will include the resource into the current resource. | This will include the resource into the current resource. | ||
Things to consider: | |||
* circular imports (the compiler should detect them) | |||
* caching (when more than one file imports a resource) | |||
* refreshing (when the imported resource changes) | |||
== discussion == | |||
The first draft of this feature was more about preprocessing the lol files and inlining the contents of the imported resources into parent lol files. | |||
== status == | == status == | ||
* requested by kaze, fabien | * requested by kaze, fabien | ||
* | * gandalf: ok | ||
* | * stas: ok | ||
* pike: against the old draft | |||
* code in [https://github.com/zbraniecki/l20n/tree/statements branch "statements"] | * code in [https://github.com/zbraniecki/l20n/tree/statements branch "statements"] | ||