Commit ed2107bd778b3db0436b9d7778150c09e83a3622
1 parent
ecac812c
Exists in
master
and in
27 other branches
Translate basic editor component
Showing
4 changed files
with
20 additions
and
8 deletions
Show diff stats
src/app/article/basic-editor/basic-editor.component.ts
... | ... | @@ -40,7 +40,7 @@ export class BasicEditorComponent { |
40 | 40 | }).then((response: noosfero.RestResult<noosfero.Article>) => { |
41 | 41 | let article = (<noosfero.Article>response.data); |
42 | 42 | this.$state.go('main.profile.page', { page: article.path, profile: article.profile.identifier }); |
43 | - this.notification.success({ title: "Good job!", message: "Article saved!" }); | |
43 | + this.notification.success({ title: "article.basic_editor.success.title", message: "article.basic_editor.success.message" }); | |
44 | 44 | }); |
45 | 45 | } |
46 | 46 | ... | ... |
src/app/article/basic-editor/basic-editor.html
... | ... | @@ -3,15 +3,15 @@ |
3 | 3 | <div class="col-md-8"> |
4 | 4 | <form> |
5 | 5 | <div class="form-group"> |
6 | - <label for="titleInput">Title</label> | |
7 | - <input type="text" class="form-control" id="titleInput" placeholder="title" ng-model="vm.article.name"> | |
6 | + <label for="titleInput">{{"article.basic_editor.title" | translate}}</label> | |
7 | + <input type="text" class="form-control" id="titleInput" placeholder="{{'article.basic_editor.title' | translate}}" ng-model="vm.article.name"> | |
8 | 8 | </div> |
9 | 9 | <div class="form-group"> |
10 | - <label for="bodyInput">Text</label> | |
10 | + <label for="bodyInput">{{"article.basic_editor.body" | translate}}</label> | |
11 | 11 | <textarea ckeditor="vm.editorOptions" class="form-control" id="bodyInput" rows="10" ng-model="vm.article.body"></textarea> |
12 | 12 | </div> |
13 | - <button type="submit" class="btn btn-default" ng-click="vm.save()">Save</button> | |
14 | - <button type="button" class="btn btn-danger" ng-click="vm.cancel()">Cancel</button> | |
13 | + <button type="submit" class="btn btn-default" ng-click="vm.save()">{{"article.basic_editor.save" | translate}}</button> | |
14 | + <button type="button" class="btn btn-danger" ng-click="vm.cancel()">{{"article.basic_editor.cancel" | translate}}</button> | |
15 | 15 | </form> |
16 | 16 | </div> |
17 | 17 | <div class="col-md-2"></div> | ... | ... |
src/languages/en.json
... | ... | @@ -35,5 +35,11 @@ |
35 | 35 | "comment.pagination.more": "More", |
36 | 36 | "comment.post.success.title": "Good job!", |
37 | 37 | "comment.post.success.message": "Comment saved!", |
38 | - "comment.reply": "reply" | |
38 | + "comment.reply": "reply", | |
39 | + "article.basic_editor.title": "Title", | |
40 | + "article.basic_editor.body": "Body", | |
41 | + "article.basic_editor.save": "Save", | |
42 | + "article.basic_editor.cancel": "Cancel", | |
43 | + "article.basic_editor.success.title": "Good job!", | |
44 | + "article.basic_editor.success.message": "Article saved!" | |
39 | 45 | } | ... | ... |
src/languages/pt.json
... | ... | @@ -35,5 +35,11 @@ |
35 | 35 | "comment.pagination.more": "Mais", |
36 | 36 | "comment.post.success.title": "Bom trabalho!", |
37 | 37 | "comment.post.success.message": "Comentário salvo com sucesso!", |
38 | - "comment.reply": "responder" | |
38 | + "comment.reply": "responder", | |
39 | + "article.basic_editor.title": "Título", | |
40 | + "article.basic_editor.body": "Corpo", | |
41 | + "article.basic_editor.save": "Salvar", | |
42 | + "article.basic_editor.cancel": "Cancelar", | |
43 | + "article.basic_editor.success.title": "Bom trabalho!", | |
44 | + "article.basic_editor.success.message": "Artigo salvo com sucesso!" | |
39 | 45 | } | ... | ... |