Skip to content

Commit

Permalink
Closes #57
Browse files Browse the repository at this point in the history
  • Loading branch information
shprink committed Sep 21, 2015
1 parent 521b588 commit b55d5b5
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
* Update dependencies: Angular 1.4, Ionic 1.1 etc <https://github.com/shprink/wordpress-hybrid-client/issues/58>
* Translation: Use wildcarts to cover all regions (e.g: en_* will use en.json) <https://github.com/shprink/wordpress-hybrid-client/issues/67>
* iOS9 support: <https://github.com/shprink/wordpress-hybrid-client/issues/68>
* [SEARCH] Empty input button not aligned: <https://github.com/shprink/wordpress-hybrid-client/issues/70>
* Translate back button: <https://github.com/shprink/wordpress-hybrid-client/issues/57>

<a name="1.5.1"></a>
### 1.5.1 (2015-09-03)
Expand Down
1 change: 0 additions & 1 deletion config.json.dist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
},
"backButton": {
"icon": null,
"text": null,
"previousTitleText": null
},
"form": {
Expand Down
2 changes: 0 additions & 2 deletions lib/config/ionic.config.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ module.exports = ($WPHCConfig, $ionicConfigProvider) ->
viewsForwardCache = _.get $WPHCConfig, 'ionicConfig.views.forwardCache'
scrollingJsScrolling = _.get $WPHCConfig, 'ionicConfig.scrolling.jsScrolling'
backButtonIcon = _.get $WPHCConfig, 'ionicConfig.backButton.icon'
backButtonText = _.get $WPHCConfig, 'ionicConfig.backButton.text'
backButtonPreviousTitleText = _.get $WPHCConfig, 'ionicConfig.backButton.previousTitleText'
formCheckbox = _.get $WPHCConfig, 'ionicConfig.form.checkbox'
formToggle = _.get $WPHCConfig, 'ionicConfig.form.toggle'
Expand All @@ -22,7 +21,6 @@ module.exports = ($WPHCConfig, $ionicConfigProvider) ->
$ionicConfigProvider.views.forwardCache viewsForwardCache if _.isBoolean viewsForwardCache
$ionicConfigProvider.scrolling.jsScrolling scrollingJsScrolling if _.isBoolean scrollingJsScrolling
$ionicConfigProvider.backButton.icon backButtonIcon if _.isString backButtonIcon
$ionicConfigProvider.backButton.text backButtonText if _.isString backButtonText
$ionicConfigProvider.backButton.previousTitleText backButtonPreviousTitleText if _.isBoolean backButtonPreviousTitleText
$ionicConfigProvider.form.checkbox formCheckbox if _.isString formCheckbox
$ionicConfigProvider.form.toggle formToggle if _.isString formToggle
Expand Down
3 changes: 2 additions & 1 deletion lib/language/language.provider.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = angular.module 'wordpress-hybrid-client.language'
getLanguages : getLanguages
getLanguagesMapping: getLanguagesMapping

$get : (amMoment) ->
$get : (amMoment, $ionicConfig, $filter) ->
locale: localStorage.getItem("locale") || 'en'
getPreferedLanguage : getPreferedLanguage
getLanguages : getLanguages
Expand All @@ -38,6 +38,7 @@ module.exports = angular.module 'wordpress-hybrid-client.language'
setLocale: (@locale) ->
localStorage.setItem "locale", @locale
$translateProvider.use @locale
$ionicConfig.backButton.text $filter('translate') 'back'
# specific to chinese so far
if @locale is 'zh'
amMoment.changeLocale 'zh-cn'
Expand Down
1 change: 1 addition & 0 deletions lib/translations/en.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"pullToRefresh": "Pull to refresh!",
"retry": "Retry",
"back": "Back",
"error": "Something wrong happened, please try again.",
"attemptToConnect": "Attempt to connect {{attempt}} of {{attemptMax}}.",
"yes": "Yes",
Expand Down
1 change: 1 addition & 0 deletions lib/translations/es.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"pullToRefresh": "Desliza para refrescar",
"retry": "Reintentar",
"back": "Regresar",
"error": "Ha ocurrido un error, inténtalo de nuevo.",
"attemptToConnect": "Attempt to connect {{attempt}} of {{attemptMax}}.",
"yes": "",
Expand Down
1 change: 1 addition & 0 deletions lib/translations/fr.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"pullToRefresh": "Tirer pour rafraîchir!",
"retry": "Réessayez",
"back": "Retour",
"error": "Quelque chose d'inattendu est survenu, veuillez réessayer.",
"attemptToConnect": "Tentative de connection {{attempt}} sur {{attemptMax}}.",
"yes": "Oui",
Expand Down
1 change: 1 addition & 0 deletions lib/translations/pl.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"pullToRefresh": "Pociągnij aby odświeżyć.",
"retry": "Spróbuj ponownie.",
"back": "Back",
"error": "O nie! Stało się coś strasznego! Spróbuj ponownie..",
"attemptToConnect": "{{attempt}} próba połączenia z {{attemptMax}}.",
"yes": "Tak",
Expand Down
1 change: 1 addition & 0 deletions lib/translations/zh.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"pullToRefresh": "下拉刷新!",
"retry": "重试",
"back": "Back",
"error": "系统遭遇未知错误,请重试。",
"attemptToConnect": "正在尝试第 {{attempt}} 次连接(最多 {{attemptMax}} 次)",
"yes": "",
Expand Down

0 comments on commit b55d5b5

Please sign in to comment.