|
|
|
## Enables the following syntaxes in views, controllers and models :
|
|
|
|
## Enables the following syntax in views, controllers and models:
|
|
|
|
|
|
|
|
|syntax|description|
|
|
|
|
|---|---|
|
| ... | ... | @@ -6,7 +6,7 @@ |
|
|
|
|`Catalog.t`|gets the human name of the `Catalog` model (plural by default)|
|
|
|
|
|`Catalog.ts`|gets the human name of the `Catalog` model (singular)|
|
|
|
|
|`Catalog.tmf('name')`|gets the human name of the `Catalog` model's `name` attribute|
|
|
|
|
|`Catalog.t_action('new)`|gets the human name of the `Catalog` model's `new` action label (fallbacks on generic action labels)|
|
|
|
|
|`Catalog.t_action('new')`|gets the human name of the `Catalog` model's `new` action label (falls back on generic action labels)|
|
|
|
|
|
|
|
|
Furthermore, all these methods get the following features:
|
|
|
|
- fallback on the `default` key: if the lookup for `foo.bar.baz.bat` is unsucessful, we'll look for `foo.bar.default.bat`, then `foo.default.bat`, etc.
|
| ... | ... | |