diff options
author | Silvio <silvio@socioambiental.org> | 2012-08-02 18:07:06 -0300 |
---|---|---|
committer | Silvio <silvio@socioambiental.org> | 2012-08-02 18:07:06 -0300 |
commit | 08f7f4c28c411dce90ebb608cadad3192b14915b (patch) | |
tree | 4a83c83760cda7bbd9bd6ae2bc969ad3264f0b67 | |
parent | d3a74e983d82df74190408bf657471b72e9491d9 (diff) | |
download | timelinejs-08f7f4c28c411dce90ebb608cadad3192b14915b.tar.gz timelinejs-08f7f4c28c411dce90ebb608cadad3192b14915b.tar.bz2 |
Setting language of the timeline
-rw-r--r-- | timelinejs.module | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/timelinejs.module b/timelinejs.module index 9147b16..48899bb 100644 --- a/timelinejs.module +++ b/timelinejs.module @@ -54,7 +54,7 @@ function timelinejs_theme($existing, $type, $theme, $path) { 'hash_bookmark' => 'true', 'css' => NULL, 'js' => '/sites/all/libraries/timelinejs/compiled/js/timeline.js', - 'lang' => '/sites/all/libraries/timelinejs/compiled/js/locale/pt-br.js', + 'lang' => NULL, ), ), 'timelinejs_json' => array( @@ -123,10 +123,13 @@ function timelinejs_json($nid) { * Menu callback. */ function timelinejs($nid) { + global $language; + return theme('timelinejs', array( 'width' => '960px', 'height' => '500px', 'source' => '/timelinejs/json/'. (int) $nid, - 'css' => '/sites/boletim/themes/boletimclean/timeline.css' + 'css' => '/sites/boletim/themes/boletimclean/timeline.css', + 'lang' => '/sites/all/libraries/timelinejs/compiled/js/locale/'. $language->language .'.js', )); } |