[l18n] More minor fixes

stable
David Barragán Merino 2015-04-17 13:32:05 +02:00
parent d14c17a956
commit 24379ed235
3 changed files with 7 additions and 12 deletions

View File

@ -200,9 +200,8 @@ configure = ($routeProvider, $locationProvider, $httpProvider, $provide, $tgEven
$httpProvider.interceptors.push('authHttpIntercept')
# If there is an error in the version throw a notify error
versionCheckHttpIntercept = ($q, $confirm) ->
versionErrorMsg = "Someone inside Taiga has changed this before and our Oompa Loompas cannot apply your changes.
Please reload and apply your changes again (they will be lost)." #TODO: i18n
versionCheckHttpIntercept = ($q, $confirm, $translate) ->
versionErrorMsg = $translate.instant("ERROR.VERSION_ERROR")
httpResponseError = (response) ->
if response.status == 400 && response.data.version
@ -216,9 +215,9 @@ configure = ($routeProvider, $locationProvider, $httpProvider, $provide, $tgEven
responseError: httpResponseError
}
$provide.factory("versionCheckHttpIntercept", ["$q", "$tgConfirm", versionCheckHttpIntercept])
$provide.factory("versionCheckHttpIntercept", ["$q", "$tgConfirm", "$translate", versionCheckHttpIntercept])
$httpProvider.interceptors.push('versionCheckHttpIntercept');
$httpProvider.interceptors.push('versionCheckHttpIntercept')
window.checksley.updateValidators({
linewidth: (val, width) ->
@ -230,10 +229,6 @@ configure = ($routeProvider, $locationProvider, $httpProvider, $provide, $tgEven
return valid
})
window.checksley.updateMessages("default", {
linewidth: "The subject must have a maximum size of %s"
})
$compileProvider.debugInfoEnabled(window.taigaConfig.debugInfo || false)
$translateProvider.useStaticFilesLoader({
@ -258,7 +253,6 @@ init = ($log, $config, $rootscope, $auth, $events, $analytics, $translate) ->
$analytics.initialize()
modules = [
# Main Global Modules
"taigaBase",

View File

@ -582,7 +582,8 @@
"NOT_FOUND": "Not found",
"NOT_FOUND_TEXT": "Error 404. The page you are looking for no longer exists. Perhaps you can return back to TAIGA homepage and see if you can find what you are looking for.",
"PERMISSION_DENIED": "Permission denied",
"PERMISSION_DENIED_CODE": "Error 403."
"PERMISSION_DENIED_CODE": "Error 403.",
"VERSION_ERROR": "Someone inside Taiga has changed this before and our Oompa Loompas cannot apply your changes. Please reload and apply your changes again (they will be lost)."
},
"TASKBOARD": {
"SECTION_NAME": "Taskboard",

View File

@ -25,7 +25,7 @@ div.wrapper.roles(tg-github-webhooks, ng-controller="GithubController as ctrl",
.icon.icon-copy
.help-copy(translate="COMMON.COPY_TO_CLIPBOARD")
button.button-green.submit-button(type="submit", title="{{'COMMON.SAVE' | translate}}")
button.button-green.submit-button(type="submit", title="{{'COMMON.SAVE' | translate}}", translate="COMMON.SAVE")
a.help-button(href="https://taiga.io/support/github-integration/", target="_blank")
span.icon.icon-help