-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<cfcomponent output="false" hint="My App Configuration"> | ||
<cfscript> | ||
// Module Properties | ||
this.title = "My Test Module"; | ||
this.author = "Luis Majano"; | ||
this.webURL = "http://www.coldbox.org"; | ||
this.description = "A funky test module"; | ||
// If true, looks for views in the parent first, if not found, then in the module. Else vice-versa | ||
this.viewParentLookup = true; | ||
// If true, looks for layouts in the parent first, if not found, then in module. Else vice-versa | ||
this.layoutParentLookup = true; | ||
this.entryPoint = "test1"; | ||
// CFML Mapping for this module, the path will be the module root. If empty, none is registered. | ||
this.cfmapping = "test1"; | ||
|
||
function configure(){ | ||
|
||
// SES Routes | ||
routes = [ | ||
{ pattern="/", handler="test",action="index" }, | ||
{ pattern="/:handler/:action?" } | ||
]; | ||
|
||
// i18n | ||
i18n = { | ||
defaultLocale = "es_SV", | ||
resourceBundles = { | ||
"module@test1" = "#moduleMapping#/includes/module" | ||
} | ||
}; | ||
|
||
} | ||
|
||
function onLoad(){ | ||
} | ||
|
||
function onUnload(){ | ||
} | ||
</cfscript> | ||
</cfcomponent> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/** | ||
* My Event Handler Hint | ||
*/ | ||
component{ | ||
|
||
/** | ||
* i18n | ||
*/ | ||
any function i18n(event,rc,prc){ | ||
return "<h2>i18n from module: #getResource( resource="welcome", bundle="module@test1" )#</h2>"; | ||
} | ||
|
||
} |
2 changes: 2 additions & 0 deletions
2
test-harness/modules_app/test1/includes/module_en_US.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
welcome = Welcome to my awesome multi-lingual module |
3 changes: 3 additions & 0 deletions
3
test-harness/modules_app/test1/includes/module_es_SV.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#Generated by ResourceBundle Editor (http://eclipse-rbe.sourceforge.net) | ||
|
||
welcome = Bienvenido a mi modulo multi-lenguajes |