Permalink
Browse files

ability to configure the actions labels via brwConfig

  • Loading branch information...
1 parent 69decae commit f823eab55447c6437b8dd022141502bf66cda522 @maurozadu maurozadu committed Jun 19, 2012
Showing with 211 additions and 196 deletions.
  1. +188 −186 Locale/brownie.pot
  2. +9 −5 Model/Behavior/BrwPanelBehavior.php
  3. +5 −5 Model/Content.php
  4. +9 −0 View/Elements/translations.ctp
View
374 Locale/brownie.pot
@@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
-"POT-Creation-Date: 2012-06-06 16:09+0200\n"
+"POT-Creation-Date: 2012-06-19 16:57+0200\n"
"PO-Revision-Date: YYYY-mm-DD HH:MM+ZZZZ\n"
"Last-Translator: NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <EMAIL@ADDRESS>\n"
@@ -14,603 +14,605 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
-#: Config\bootstrap.php:49
+#: Plugin\Brownie\Config\bootstrap.php:49
msgid "Please provide a valid username and password"
msgstr ""
-#: Controller\BrownieController.php:35
+#: Plugin\Brownie\Controller\BrownieController.php:35
msgid "Username or password is incorrect"
msgstr ""
-#: Controller\ContentsController.php:190
+#: Plugin\Brownie\Controller\ContentsController.php:190
msgid "The %s has been saved [male]"
msgstr ""
-#: Controller\ContentsController.php:191
+#: Plugin\Brownie\Controller\ContentsController.php:191
msgid "The %s has been saved [female]"
msgstr ""
-#: Controller\ContentsController.php:199
+#: Plugin\Brownie\Controller\ContentsController.php:199
msgid "The %s could not be saved. Please, check the error messages.[male]"
msgstr ""
-#: Controller\ContentsController.php:200
+#: Plugin\Brownie\Controller\ContentsController.php:200
msgid "The %s could not be saved. Please, check the error messages.[female]"
msgstr ""
-#: Controller\ContentsController.php:260
-msgid "Successful delete"
+#: Plugin\Brownie\Controller\ContentsController.php:262
+msgid "Unable to delete"
msgstr ""
-#: Controller\ContentsController.php:262
-msgid "Unable to delete"
+#: Plugin\Brownie\Controller\ContentsController.php:265
+msgid "Successful delete"
msgstr ""
-#: Controller\ContentsController.php:304
+#: Plugin\Brownie\Controller\ContentsController.php:297
msgid "No %s selected to delete"
msgstr ""
-#: Controller\ContentsController.php:317
+#: Plugin\Brownie\Controller\ContentsController.php:310
msgid "%d %s deleted."
msgstr ""
-#: Controller\ContentsController.php:320
+#: Plugin\Brownie\Controller\ContentsController.php:313
msgid "%d %s no deleted."
msgstr ""
-#: Controller\ContentsController.php:357
+#: Plugin\Brownie\Controller\ContentsController.php:350
msgid "%s files saved"
msgstr ""
-#: Controller\ContentsController.php:358
+#: Plugin\Brownie\Controller\ContentsController.php:351
msgid "%s images saved"
msgstr ""
-#: Controller\ContentsController.php:362
+#: Plugin\Brownie\Controller\ContentsController.php:355
msgid "No files saved"
msgstr ""
-#: Controller\ContentsController.php:363
+#: Plugin\Brownie\Controller\ContentsController.php:356
msgid "No images saved"
msgstr ""
-#: Controller\ContentsController.php:392
+#: Plugin\Brownie\Controller\ContentsController.php:385
msgid "The file was deleted"
msgstr ""
-#: Controller\ContentsController.php:393
+#: Plugin\Brownie\Controller\ContentsController.php:386
msgid "The image was deleted"
msgstr ""
-#: Controller\ContentsController.php:397
+#: Plugin\Brownie\Controller\ContentsController.php:390
msgid "The file could not be deleted"
msgstr ""
-#: Controller\ContentsController.php:398
+#: Plugin\Brownie\Controller\ContentsController.php:391
msgid "The image could not be deleted"
msgstr ""
-#: Controller\ContentsController.php:426
+#: Plugin\Brownie\Controller\ContentsController.php:419
msgid "The import could not be done. Please try again"
msgstr ""
-#: Controller\ContentsController.php:440
+#: Plugin\Brownie\Controller\ContentsController.php:433
msgid "Warning: %s::brwImport() must be defined"
msgstr ""
-#: Controller\ContentsController.php:484
+#: Plugin\Brownie\Controller\ContentsController.php:477
msgid "Successfully reordered"
msgstr ""
-#: Controller\ContentsController.php:486
+#: Plugin\Brownie\Controller\ContentsController.php:479
msgid "Failed to reorder"
msgstr ""
-#: Controller\ContentsController.php:589
-#: View\Elements\form_filter.ctp:62
+#: Plugin\Brownie\Controller\ContentsController.php:582
+#: Plugin\Brownie\View\Elements\form_filter.ctp:62
msgid "Yes"
msgstr ""
-#: Controller\ContentsController.php:589
-#: View\Elements\form_filter.ctp:62
+#: Plugin\Brownie\Controller\ContentsController.php:582
+#: Plugin\Brownie\View\Elements\form_filter.ctp:62
msgid "No"
msgstr ""
-#: Controller\ContentsController.php:621
+#: Plugin\Brownie\Controller\ContentsController.php:614
msgid "Date not set"
msgstr ""
-#: Controller\ContentsController.php:630
+#: Plugin\Brownie\Controller\ContentsController.php:623
msgid "Datetime not set"
msgstr ""
-#: Controller\ContentsController.php:653
+#: Plugin\Brownie\Controller\ContentsController.php:646
msgid "After save"
msgstr ""
-#: Controller\ContentsController.php:655
+#: Plugin\Brownie\Controller\ContentsController.php:648
msgid "Back to where I was"
msgstr ""
-#: Controller\ContentsController.php:657
+#: Plugin\Brownie\Controller\ContentsController.php:650
msgid "View saved %s [male]"
msgstr ""
-#: Controller\ContentsController.php:658
+#: Plugin\Brownie\Controller\ContentsController.php:651
msgid "View saved %s [female]"
msgstr ""
-#: Controller\ContentsController.php:661
+#: Plugin\Brownie\Controller\ContentsController.php:654
msgid "Add another %s [male]"
msgstr ""
-#: Controller\ContentsController.php:662
+#: Plugin\Brownie\Controller\ContentsController.php:655
msgid "Add another %s [female]"
msgstr ""
-#: Controller\ContentsController.php:665
+#: Plugin\Brownie\Controller\ContentsController.php:658
msgid "Go to to index of all %s [male]"
msgstr ""
-#: Controller\ContentsController.php:666
+#: Plugin\Brownie\Controller\ContentsController.php:659
msgid "Go to to index of all %s [female]"
msgstr ""
-#: Controller\ContentsController.php:669
+#: Plugin\Brownie\Controller\ContentsController.php:662
msgid "Continue editing this %s [male]"
msgstr ""
-#: Controller\ContentsController.php:670
+#: Plugin\Brownie\Controller\ContentsController.php:663
msgid "Continue editing this %s [female]"
msgstr ""
-#: Controller\ContentsController.php:672
+#: Plugin\Brownie\Controller\ContentsController.php:665
msgid "Go home"
msgstr ""
-#: Controller\ContentsController.php:685
+#: Plugin\Brownie\Controller\ContentsController.php:678
msgid "Go to the %s [male]"
msgstr ""
-#: Controller\ContentsController.php:686
+#: Plugin\Brownie\Controller\ContentsController.php:679
msgid "Go to the %s [female]"
msgstr ""
-#: Controller\Component\BrwPanelComponent.php:73
+#: Plugin\Brownie\Controller\Component\BrwPanelComponent.php:73
msgid "Menu"
msgstr ""
-#: Model\Content.php:101
+#: Plugin\Brownie\Model\Content.php:101
msgid "This field is required"
msgstr ""
-#: Model\Content.php:112
+#: Plugin\Brownie\Model\Content.php:112
msgid "Please supply a valid number"
msgstr ""
-#: Model\Content.php:121
+#: Plugin\Brownie\Model\Content.php:121
msgid "Please supply a valid email address"
msgstr ""
-#: Model\Content.php:128
+#: Plugin\Brownie\Model\Content.php:128
msgid "Incorrect value"
msgstr ""
-#: Model\Content.php:137
+#: Plugin\Brownie\Model\Content.php:137
msgid "This value must be unique and it's already in use by another %s [male]"
msgstr ""
-#: Model\Content.php:138
+#: Plugin\Brownie\Model\Content.php:138
msgid "This value must be unique and it's already in use by another %s [female]"
msgstr ""
-#: Model\Content.php:354
-#: View\Contents\view.ctp:102
-msgid "Add"
-msgstr ""
-
-#: Model\Content.php:355
-#: View\Elements\file.ctp:10
-msgid "View"
-msgstr ""
-
-#: Model\Content.php:356
-#: View\Elements\file.ctp:15
-#: View\Elements\image.ctp:10
-msgid "Edit"
-msgstr ""
-
-#: Model\Content.php:357
-#: View\Elements\file.ctp:20
-#: View\Elements\image.ctp:14
-msgid "Delete"
-msgstr ""
-
-#: Model\Content.php:358
-msgid "List all"
-msgstr ""
-
-#: Model\Content.php:378
+#: Plugin\Brownie\Model\Content.php:385
msgid "Are you sure you want to delete this %s?[male]"
msgstr ""
-#: Model\Content.php:379
+#: Plugin\Brownie\Model\Content.php:386
msgid "Are you sure you want to delete this %s?[female]"
msgstr ""
-#: Model\Behavior\BrwPanelBehavior.php:646
+#: Plugin\Brownie\Model\Behavior\BrwPanelBehavior.php:650
msgid "Leave blank for no change"
msgstr ""
-#: Model\Behavior\BrwPanelBehavior.php:655;656
-#: View\Layouts\brownie_default.ctp:50
+#: Plugin\Brownie\Model\Behavior\BrwPanelBehavior.php:659;660
+#: Plugin\Brownie\View\Layouts\brownie_default.ctp:50
msgid "User"
msgstr ""
-#: Model\Behavior\BrwPanelBehavior.php:657
-#: View\Layouts\brownie_default.ctp:46
+#: Plugin\Brownie\Model\Behavior\BrwPanelBehavior.php:661
+#: Plugin\Brownie\View\Layouts\brownie_default.ctp:46
msgid "Users"
msgstr ""
-#: Model\Behavior\BrwPanelBehavior.php:747
+#: Plugin\Brownie\Model\Behavior\BrwPanelBehavior.php:751
msgid "type = owned is valid only for models that belongsTo authModel (model: %s)"
msgstr ""
-#: Model\Behavior\BrwUploadBehavior.php:22
+#: Plugin\Brownie\Model\Behavior\BrwUploadBehavior.php:22
msgid "File too heavy. Maximum allowed: %s KB (%s MB)"
msgstr ""
-#: Model\Behavior\BrwUploadBehavior.php:30
+#: Plugin\Brownie\Model\Behavior\BrwUploadBehavior.php:30
msgid "Invalid image. Only jpg, gif and png are allowed."
msgstr ""
-#: Model\Behavior\BrwUserBehavior.php:17
+#: Plugin\Brownie\Model\Behavior\BrwUserBehavior.php:17
msgid "Email already registered"
msgstr ""
-#: Model\Behavior\BrwUserBehavior.php:21
+#: Plugin\Brownie\Model\Behavior\BrwUserBehavior.php:21
msgid "Email not valid"
msgstr ""
-#: Model\Behavior\BrwUserBehavior.php:27
+#: Plugin\Brownie\Model\Behavior\BrwUserBehavior.php:27
msgid "Email cannot be empty"
msgstr ""
-#: Model\Behavior\BrwUserBehavior.php:34;41
+#: Plugin\Brownie\Model\Behavior\BrwUserBehavior.php:34;41
msgid "Password cannot be empty"
msgstr ""
-#: Model\Behavior\BrwUserBehavior.php:45
+#: Plugin\Brownie\Model\Behavior\BrwUserBehavior.php:45
msgid "Passwords do not match"
msgstr ""
-#: View\Brownie\login.ctp:3;15
+#: Plugin\Brownie\View\Brownie\login.ctp:3;15
msgid "Login"
msgstr ""
-#: View\Brownie\login.ctp:6
+#: Plugin\Brownie\View\Brownie\login.ctp:6
msgid "Welcome"
msgstr ""
-#: View\Brownie\login.ctp:7
+#: Plugin\Brownie\View\Brownie\login.ctp:7
msgid "Please provide your user and password."
msgstr ""
-#: View\Brownie\login.ctp:13
+#: Plugin\Brownie\View\Brownie\login.ctp:13
msgid "Username"
msgstr ""
-#: View\Brownie\login.ctp:14
+#: Plugin\Brownie\View\Brownie\login.ctp:14
msgid "Password"
msgstr ""
-#: View\Brownie\translations.ctp:1
-#: View\Elements\translations.ctp:2
-#: View\Layouts\brownie_default.ctp:19
+#: Plugin\Brownie\View\Brownie\translations.ctp:1
+#: Plugin\Brownie\View\Elements\translations.ctp:2
+#: Plugin\Brownie\View\Layouts\brownie_default.ctp:19
msgid "Done"
msgstr ""
-#: View\Contents\add_images.ctp:11
-#: View\Contents\edit_image.ctp:6
+#: Plugin\Brownie\View\Contents\add_images.ctp:11
+#: Plugin\Brownie\View\Contents\edit_image.ctp:6
msgid "Add image"
msgstr ""
-#: View\Contents\add_images.ctp:32
-#: View\Contents\edit_image.ctp:19
-#: View\Contents\edit_upload.ctp:29
+#: Plugin\Brownie\View\Contents\add_images.ctp:32
+#: Plugin\Brownie\View\Contents\edit_image.ctp:19
+#: Plugin\Brownie\View\Contents\edit_upload.ctp:29
msgid "Image"
msgstr ""
-#: View\Contents\add_images.ctp:37
-#: View\Contents\edit_image.ctp:28
+#: Plugin\Brownie\View\Contents\add_images.ctp:37
+#: Plugin\Brownie\View\Contents\edit_image.ctp:28
msgid "Image description"
msgstr ""
-#: View\Contents\add_images.ctp:50
-#: View\Contents\edit_file.ctp:42
-#: View\Contents\edit_image.ctp:39
-#: View\Contents\import.ctp:24
+#: Plugin\Brownie\View\Contents\add_images.ctp:50
+#: Plugin\Brownie\View\Contents\edit_file.ctp:42
+#: Plugin\Brownie\View\Contents\edit_image.ctp:39
+#: Plugin\Brownie\View\Contents\import.ctp:24
msgid "Submit"
msgstr ""
-#: View\Contents\edit.ctp:17
-#: View\Elements\index.ctp:12
+#: Plugin\Brownie\View\Contents\edit.ctp:17
+#: Plugin\Brownie\View\Elements\index.ctp:12
msgid "Add :name_singular"
msgstr ""
-#: View\Contents\edit.ctp:17
+#: Plugin\Brownie\View\Contents\edit.ctp:17
msgid "Edit :name_singular"
msgstr ""
-#: View\Contents\edit.ctp:48
+#: Plugin\Brownie\View\Contents\edit.ctp:48
msgid "(No parent)"
msgstr ""
-#: View\Contents\edit.ctp:130
-#: View\Contents\edit_upload.ctp:38
+#: Plugin\Brownie\View\Contents\edit.ctp:130
+#: Plugin\Brownie\View\Contents\edit_upload.ctp:38
msgid "Description"
msgstr ""
-#: View\Contents\edit.ctp:145
+#: Plugin\Brownie\View\Contents\edit.ctp:145
msgid "Add Image"
msgstr ""
-#: View\Contents\edit.ctp:145
+#: Plugin\Brownie\View\Contents\edit.ctp:145
msgid "Add File"
msgstr ""
-#: View\Contents\edit.ctp:163
-#: View\Contents\edit_upload.ctp:43
+#: Plugin\Brownie\View\Contents\edit.ctp:163
+#: Plugin\Brownie\View\Contents\edit_upload.ctp:43
msgid "Save"
msgstr ""
-#: View\Contents\edit_file.ctp:6
+#: Plugin\Brownie\View\Contents\edit_file.ctp:6
msgid "Add file"
msgstr ""
-#: View\Contents\edit_file.ctp:19
-#: View\Contents\edit_upload.ctp:29
+#: Plugin\Brownie\View\Contents\edit_file.ctp:19
+#: Plugin\Brownie\View\Contents\edit_upload.ctp:29
msgid "File"
msgstr ""
-#: View\Contents\edit_file.ctp:23
-#: View\Contents\edit_upload.ctp:33
+#: Plugin\Brownie\View\Contents\edit_file.ctp:23
+#: Plugin\Brownie\View\Contents\edit_upload.ctp:33
msgid "You can leave the file field blank if you don't want to change the file"
msgstr ""
-#: View\Contents\edit_file.ctp:31
+#: Plugin\Brownie\View\Contents\edit_file.ctp:31
msgid "File description"
msgstr ""
-#: View\Contents\edit_image.ctp:21
+#: Plugin\Brownie\View\Contents\edit_image.ctp:21
msgid "You can leave the Image field blank if you don't want to change the image"
msgstr ""
-#: View\Contents\import.ctp:9
+#: Plugin\Brownie\View\Contents\import.ctp:9
msgid "Import :name_plural"
msgstr ""
-#: View\Contents\view.ctp:11;13
+#: Plugin\Brownie\View\Contents\view.ctp:11;13
msgid "Previous"
msgstr ""
-#: View\Contents\view.ctp:19;21
+#: Plugin\Brownie\View\Contents\view.ctp:19;21
msgid "Next"
msgstr ""
-#: View\Contents\view.ctp:38;38
+#: Plugin\Brownie\View\Contents\view.ctp:38
msgid "Back"
msgstr ""
-#: View\Elements\file.ctp:13
+#: Plugin\Brownie\View\Contents\view.ctp:102
+#: Plugin\Brownie\View\Elements\translations.ctp:24
+msgid "Add"
+msgstr ""
+
+#: Plugin\Brownie\View\Elements\file.ctp:10
+#: Plugin\Brownie\View\Elements\translations.ctp:25
+msgid "View"
+msgstr ""
+
+#: Plugin\Brownie\View\Elements\file.ctp:13
msgid "Download"
msgstr ""
-#: View\Elements\file.ctp:23
+#: Plugin\Brownie\View\Elements\file.ctp:15
+#: Plugin\Brownie\View\Elements\image.ctp:10
+#: Plugin\Brownie\View\Elements\translations.ctp:26
+msgid "Edit"
+msgstr ""
+
+#: Plugin\Brownie\View\Elements\file.ctp:20
+#: Plugin\Brownie\View\Elements\image.ctp:14
+#: Plugin\Brownie\View\Elements\translations.ctp:27
+msgid "Delete"
+msgstr ""
+
+#: Plugin\Brownie\View\Elements\file.ctp:23
msgid "Are you sure you want to delete this file?"
msgstr ""
-#: View\Elements\form_filter.ctp:3
+#: Plugin\Brownie\View\Elements\form_filter.ctp:3
msgid "The following listing is filtered."
msgstr ""
-#: View\Elements\form_filter.ctp:4
+#: Plugin\Brownie\View\Elements\form_filter.ctp:4
msgid "View all"
msgstr ""
-#: View\Elements\form_filter.ctp:49
+#: Plugin\Brownie\View\Elements\form_filter.ctp:49
msgid "from"
msgstr ""
-#: View\Elements\form_filter.ctp:52
+#: Plugin\Brownie\View\Elements\form_filter.ctp:52
msgid "to"
msgstr ""
-#: View\Elements\form_filter.ctp:89
+#: Plugin\Brownie\View\Elements\form_filter.ctp:89
msgid "Filter"
msgstr ""
-#: View\Elements\image.ctp:17
+#: Plugin\Brownie\View\Elements\image.ctp:17
msgid "Are you sure you want to delete this image?"
msgstr ""
-#: View\Elements\index.ctp:21
+#: Plugin\Brownie\View\Elements\index.ctp:21
+#: Plugin\Brownie\View\Elements\translations.ctp:30
msgid "Import"
msgstr ""
-#: View\Elements\index.ctp:27
+#: Plugin\Brownie\View\Elements\index.ctp:27
+#: Plugin\Brownie\View\Elements\translations.ctp:29
msgid "Export"
msgstr ""
-#: View\Elements\index.ctp:66
+#: Plugin\Brownie\View\Elements\index.ctp:66
msgid "Delete selected"
msgstr ""
-#: View\Elements\index.ctp:81
+#: Plugin\Brownie\View\Elements\index.ctp:81
msgid "Select/Unselect all"
msgstr ""
-#: View\Elements\index.ctp:107
+#: Plugin\Brownie\View\Elements\index.ctp:107
msgid "Sort"
msgstr ""
-#: View\Elements\index.ctp:110
+#: Plugin\Brownie\View\Elements\index.ctp:110
msgid "Actions"
msgstr ""
-#: View\Elements\index.ctp:152;154
+#: Plugin\Brownie\View\Elements\index.ctp:152;154
msgid "Sort up"
msgstr ""
-#: View\Elements\index.ctp:156;158
+#: Plugin\Brownie\View\Elements\index.ctp:156;158
msgid "Sort down"
msgstr ""
-#: View\Elements\index.ctp:180
+#: Plugin\Brownie\View\Elements\index.ctp:180
msgid "There are no %s"
msgstr ""
-#: View\Elements\pagination.ctp:8
+#: Plugin\Brownie\View\Elements\pagination.ctp:8
msgid "previous"
msgstr ""
-#: View\Elements\pagination.ctp:12
+#: Plugin\Brownie\View\Elements\pagination.ctp:12
msgid "next"
msgstr ""
-#: View\Elements\pagination.ctp:20
+#: Plugin\Brownie\View\Elements\pagination.ctp:20
msgid "Page %page% of %pages%, showing %current% :name_plural out of %count% total, starting on record %start%, ending on %end%"
msgstr ""
-#: View\Elements\pagination.ctp:54
+#: Plugin\Brownie\View\Elements\pagination.ctp:54
msgid "%s per page"
msgstr ""
-#: View\Elements\translations.ctp:3
+#: Plugin\Brownie\View\Elements\translations.ctp:3
msgid "This field cannot be left blank"
msgstr ""
-#: View\Elements\translations.ctp:6
+#: Plugin\Brownie\View\Elements\translations.ctp:6
msgid "January"
msgstr ""
-#: View\Elements\translations.ctp:7
+#: Plugin\Brownie\View\Elements\translations.ctp:7
msgid "February"
msgstr ""
-#: View\Elements\translations.ctp:8
+#: Plugin\Brownie\View\Elements\translations.ctp:8
msgid "March"
msgstr ""
-#: View\Elements\translations.ctp:9
+#: Plugin\Brownie\View\Elements\translations.ctp:9
msgid "April"
msgstr ""
-#: View\Elements\translations.ctp:10
+#: Plugin\Brownie\View\Elements\translations.ctp:10
msgid "May"
msgstr ""
-#: View\Elements\translations.ctp:11
+#: Plugin\Brownie\View\Elements\translations.ctp:11
msgid "June"
msgstr ""
-#: View\Elements\translations.ctp:12
+#: Plugin\Brownie\View\Elements\translations.ctp:12
msgid "July"
msgstr ""
-#: View\Elements\translations.ctp:13
+#: Plugin\Brownie\View\Elements\translations.ctp:13
msgid "August"
msgstr ""
-#: View\Elements\translations.ctp:14
+#: Plugin\Brownie\View\Elements\translations.ctp:14
msgid "September"
msgstr ""
-#: View\Elements\translations.ctp:15
+#: Plugin\Brownie\View\Elements\translations.ctp:15
msgid "October"
msgstr ""
-#: View\Elements\translations.ctp:16
+#: Plugin\Brownie\View\Elements\translations.ctp:16
msgid "November"
msgstr ""
-#: View\Elements\translations.ctp:17
+#: Plugin\Brownie\View\Elements\translations.ctp:17
msgid "December"
msgstr ""
-#: View\Elements\translations.ctp:20
+#: Plugin\Brownie\View\Elements\translations.ctp:20
msgid "Brw User"
msgstr ""
-#: View\Elements\translations.ctp:21
+#: Plugin\Brownie\View\Elements\translations.ctp:21
msgid "Add User"
msgstr ""
-#: View\Helper\i18nHelper.php:8
+#: Plugin\Brownie\View\Elements\translations.ctp:28
+msgid "List all"
+msgstr ""
+
+#: Plugin\Brownie\View\Helper\i18nHelper.php:8
msgid "Catalá"
msgstr ""
-#: View\Helper\i18nHelper.php:9
+#: Plugin\Brownie\View\Helper\i18nHelper.php:9
msgid "Portugues"
msgstr ""
-#: View\Helper\i18nHelper.php:10
+#: Plugin\Brownie\View\Helper\i18nHelper.php:10
msgid "German"
msgstr ""
-#: View\Helper\i18nHelper.php:11
+#: Plugin\Brownie\View\Helper\i18nHelper.php:11
msgid "English"
msgstr ""
-#: View\Helper\i18nHelper.php:12
+#: Plugin\Brownie\View\Helper\i18nHelper.php:12
msgid "French"
msgstr ""
-#: View\Helper\i18nHelper.php:13
+#: Plugin\Brownie\View\Helper\i18nHelper.php:13
msgid "Italian"
msgstr ""
-#: View\Helper\i18nHelper.php:14
+#: Plugin\Brownie\View\Helper\i18nHelper.php:14
msgid "Dutch"
msgstr ""
-#: View\Helper\i18nHelper.php:15
+#: Plugin\Brownie\View\Helper\i18nHelper.php:15
msgid "Spanish"
msgstr ""
-#: View\Layouts\brownie_default.ctp:16
+#: Plugin\Brownie\View\Layouts\brownie_default.ctp:16
msgid "No records checked for deletion"
msgstr ""
-#: View\Layouts\brownie_default.ctp:17
+#: Plugin\Brownie\View\Layouts\brownie_default.ctp:17
msgid "Select"
msgstr ""
-#: View\Layouts\brownie_default.ctp:18
+#: Plugin\Brownie\View\Layouts\brownie_default.ctp:18
msgid "Unselect"
msgstr ""
-#: View\Layouts\brownie_default.ctp:20
+#: Plugin\Brownie\View\Layouts\brownie_default.ctp:20
msgid "Show advanced filters"
msgstr ""
-#: View\Layouts\brownie_default.ctp:21
+#: Plugin\Brownie\View\Layouts\brownie_default.ctp:21
msgid "Hide advanced filters"
msgstr ""
-#: View\Layouts\brownie_default.ctp:25
+#: Plugin\Brownie\View\Layouts\brownie_default.ctp:25
msgid "Admin panel"
msgstr ""
-#: View\Layouts\brownie_default.ctp:40
+#: Plugin\Brownie\View\Layouts\brownie_default.ctp:40
msgid "User: %s"
msgstr ""
-#: View\Layouts\brownie_default.ctp:42
+#: Plugin\Brownie\View\Layouts\brownie_default.ctp:42
msgid "Home"
msgstr ""
-#: View\Layouts\brownie_default.ctp:54
+#: Plugin\Brownie\View\Layouts\brownie_default.ctp:54
msgid "Logout"
msgstr ""
View
14 Model/Behavior/BrwPanelBehavior.php
@@ -45,14 +45,18 @@ class BrwPanelBehavior extends ModelBehavior {
'view' => true,
'add' => true,
'edit' => true,
- 'edit_image' => true,
- 'edit_file' => true,
'delete' => true,
'export' => false,
'import' => false,
- 'search' => false,
- 'print' => false,
- 'empty' => false,
+ ),
+ 'action_labels' => array(
+ 'index' => 'List all',
+ 'view' => 'View',
+ 'add' => 'Add',
+ 'edit' => 'Edit',
+ 'delete' => 'Delete',
+ 'export' => 'Export',
+ 'import' => 'Import',
),
'custom_actions' => array(),
'global_custom_actions' => array(),
View
10 Model/Content.php
@@ -351,11 +351,11 @@ function actions($Model, $record, $permissions) {
'confirmMessage' => false,
);
$actionsTitles = array_merge($actionsTitles, array(
- 'add' => __d('brownie', 'Add'),
- 'view' => __d('brownie', 'View'),
- 'edit' => __d('brownie', 'Edit'),
- 'delete' => __d('brownie', 'Delete'),
- 'index' => __d('brownie', 'List all'),
+ 'add' => __d('brownie', $Model->brwConfig['action_labels']['add']),
+ 'view' => __d('brownie', $Model->brwConfig['action_labels']['view']),
+ 'edit' => __d('brownie', $Model->brwConfig['action_labels']['edit']),
+ 'delete' => __d('brownie', $Model->brwConfig['action_labels']['delete']),
+ 'index' => __d('brownie', $Model->brwConfig['action_labels']['index']),
));
foreach ($actionsTitles as $action => $title) {
if (!empty($permissions[$action]) or in_array($action, array('up', 'down'))) {
View
9 View/Elements/translations.ctp
@@ -20,4 +20,13 @@ __d('brownie', 'December');
__d('brownie', 'Brw User');
__d('brownie', 'Add User');
+//Action labels
+__d('brownie', 'Add');
+__d('brownie', 'View');
+__d('brownie', 'Edit');
+__d('brownie', 'Delete');
+__d('brownie', 'List all');
+__d('brownie', 'Export');
+__d('brownie', 'Import');
+
?>

0 comments on commit f823eab

Please sign in to comment.