Skip to content

Commit

Permalink
docs(demo): changes $translate.uses() to $translate.use() + path fix …
Browse files Browse the repository at this point in the history
…for ex7 and ex10
  • Loading branch information
Edgars Zagorskis authored and knalli committed Sep 27, 2014
1 parent 428ce3b commit c06106c
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 23 deletions.
32 changes: 16 additions & 16 deletions demo/ex10_translate-cloak.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,21 @@
<h1>{{ 'load.static.HEADER' | translate }}</h1>
<h2 translate>load.static.SUBHEADER</h2>

<script src="../../bower_components/angular/angular.js"></script>
<script src="../../bower_components/angular-cookies/angular-cookies.js"></script>
<script src="../../src/translate.js"></script>
<script src="../../src/service/default-interpolation.js"></script>
<script src="../../src/service/handler-log.js"></script>
<script src="../../src/service/loader-static-files.js"></script>


<script src="../../src/service/storage-key.js"></script>
<script src="../../src/service/storage-local.js"></script>
<script src="../../src/service/storage-cookie.js"></script>
<script src="../../src/service/translate.js"></script>
<script src="../../src/directive/translate.js"></script>
<script src="../../src/directive/translate-cloak.js"></script>
<script src="../../src/filter/translate.js"></script>
<script src="../bower_components/angular/angular.js"></script>
<script src="../bower_components/angular-cookies/angular-cookies.js"></script>
<script src="../src/translate.js"></script>
<script src="../src/service/default-interpolation.js"></script>
<script src="../src/service/handler-log.js"></script>
<script src="../src/service/loader-static-files.js"></script>


<script src="../src/service/storage-key.js"></script>
<script src="../src/service/storage-local.js"></script>
<script src="../src/service/storage-cookie.js"></script>
<script src="../src/service/translate.js"></script>
<script src="../src/directive/translate.js"></script>
<script src="../src/directive/translate-cloak.js"></script>
<script src="../src/filter/translate.js"></script>
<script>
angular.module('app', ['pascalprecht.translate', 'ngCookies'])

Expand Down Expand Up @@ -70,7 +70,7 @@ <h2 translate>load.static.SUBHEADER</h2>

$scope.setLang = function(langKey) {
// You can change the language during runtime
$translate.uses(langKey);
$translate.use(langKey);
};

}]);
Expand Down
2 changes: 1 addition & 1 deletion demo/ex2_remember_language_(cookies).htm
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ <h2 translate>SUBHEADER</h2>

$scope.setLang = function(langKey) {
// You can change the language during runtime
$translate.uses(langKey);
$translate.use(langKey);
};

}]);
Expand Down
2 changes: 1 addition & 1 deletion demo/ex3_remember_language_(local_storage).htm
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ <h2 translate>SUBHEADER</h2>

$scope.setLang = function(langKey) {
// You can change the language during runtime
$translate.uses(langKey);
$translate.use(langKey);
};

}]);
Expand Down
2 changes: 1 addition & 1 deletion demo/ex4_set_a_storage_key.htm
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ <h2 translate>SUBHEADER</h2>

$scope.setLang = function(langKey) {
// You can change the language during runtime
$translate.uses(langKey);
$translate.use(langKey);
};

}]);
Expand Down
2 changes: 1 addition & 1 deletion demo/ex5_set_a_storage_prefix.htm
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ <h2 translate>SUBHEADER</h2>

$scope.setLang = function(langKey) {
// You can change the language during runtime
$translate.uses(langKey);
$translate.use(langKey);
};

}]);
Expand Down
2 changes: 1 addition & 1 deletion demo/ex6_namespace_support.htm
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ <h2 translate>ns2.SUBHEADER</h2>

$scope.setLang = function(langKey) {
// You can change the language during runtime
$translate.uses(langKey);
$translate.use(langKey);
};

}]);
Expand Down
2 changes: 1 addition & 1 deletion demo/ex8_lazy_load_files_without_autoupload.htm
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ <h2 translate>load.predefined.SUBHEADER</h2>

$scope.setLang = function(langKey) {
// You can change the language during runtime
$translate.uses(langKey);
$translate.use(langKey);
};

}]);
Expand Down
2 changes: 1 addition & 1 deletion demo/ex9_load_dynamic_files.htm
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ <h2 translate>load.dynamic.SUBHEADER</h2>

$scope.setLang = function(langKey) {
// You can change the language during runtime
$translate.uses(langKey);
$translate.use(langKey);
};

}]);
Expand Down

0 comments on commit c06106c

Please sign in to comment.