• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
Bagisto Forum

Bagisto

  • Register
  • Login
  • Search
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups

String translations/changes

General Discussion
3
18
1.1k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • devansh-webkul
    devansh-webkul last edited by devansh-webkul 4 Jan 2022, 13:47 4 Jan 2022, 13:47

    You need to publish your translations.

    H 1 Reply Last reply 31 Jan 2022, 12:40 Reply Quote 0
    • L
      lukas last edited by 4 Jan 2022, 15:12

      Can you tell me how I can do that?

      1 Reply Last reply Reply Quote 0
      • devansh-webkul
        devansh-webkul last edited by 5 Jan 2022, 11:38

        Just check this path first,

        resources/lang/vendor/shop/en/app.php

        1 Reply Last reply Reply Quote 0
        • L
          lukas last edited by 5 Jan 2022, 12:42

          @devansh-webkul said in String translations/changes:

          resources/lang/vendor/shop/en/app.php

          Thank you so much! It's working now. I couldn't find this file and edited the wrong one.

          What about validation errors? Can I know in which file they are located?

          1 Reply Last reply Reply Quote 0
          • devansh-webkul
            devansh-webkul last edited by 6 Jan 2022, 04:17

            It's in the folder,
            resources/lang

            L 1 Reply Last reply 11 Jan 2022, 14:36 Reply Quote 0
            • L
              lukas @devansh-webkul last edited by 11 Jan 2022, 14:36

              @devansh-webkul

              I tried editing validation.php file, but it doesn't work for me. I can't find another same file except validation.php for different languages.

              1 Reply Last reply Reply Quote 0
              • devansh-webkul
                devansh-webkul last edited by 12 Jan 2022, 05:53

                Some are vue js validations which are coming from here,
                https://github.com/bagisto/bagisto/blob/0ec071674a5fa25f076569ba1528a79da25bf61a/packages/Webkul/Velocity/src/Resources/assets/js/app.js#L13

                1 Reply Last reply Reply Quote 0
                • L
                  lukas last edited by 14 Jan 2022, 08:15

                  I can't find these translations in this file

                  1 Reply Last reply Reply Quote 0
                  • devansh-webkul
                    devansh-webkul last edited by 14 Jan 2022, 14:30

                    Which version are you using?

                    L 1 Reply Last reply 17 Jan 2022, 15:28 Reply Quote 0
                    • L
                      lukas @devansh-webkul last edited by 17 Jan 2022, 15:28

                      @devansh-webkul v1.3.3

                      1 Reply Last reply Reply Quote 0
                      • devansh-webkul
                        devansh-webkul last edited by 18 Jan 2022, 04:13

                        Can you share the screenshot of the translation so that I can check which one you are referring to?

                        1 Reply Last reply Reply Quote 0
                        • L
                          lukas last edited by 18 Jan 2022, 10:23

                          Screenshot 2022-01-18 at 12.22.00.png

                          I am trying to edit this file

                          1 Reply Last reply Reply Quote 0
                          • devansh-webkul
                            devansh-webkul last edited by 18 Jan 2022, 12:02

                            But can you share the page where actually validation you want to change so that i can check.

                            1 Reply Last reply Reply Quote 0
                            • L
                              lukas last edited by 18 Jan 2022, 15:29

                              Screenshot 2022-01-18 at 17.24.33.png

                              I edited it a little bit, but it's s login page themes/bliss/views/customers/session/index.blade.php. Did you mean this? I want to edit these validations like The "Email" field is required or The "Password" field must be at least 6 characters. Is it possible that custom theme causes the problem?

                              1 Reply Last reply Reply Quote 0
                              • devansh-webkul
                                devansh-webkul last edited by 19 Jan 2022, 05:22

                                That validation is coming from v-validate. Please check this doc to override the message,
                                https://vee-validate.logaretm.com/v2/guide/messages.html#error-messages

                                1 Reply Last reply Reply Quote 0
                                • 12 days later
                                • H
                                  hedyd @devansh-webkul last edited by hedyd 31 Jan 2022, 12:49 31 Jan 2022, 12:40

                                  @devansh-webkul said in String translations/changes:

                                  You need to publish your translations.

                                  Hello There,

                                  I made changes in packages/Webkul/Admin/src/Resources/lang/en/app.php

                                  and changes canceled spelling under notification status

                                  'notification' => [
                                          'title'                       => 'Notification',
                                          'title-plural'                => 'Notifications',
                                          'status'                      => [
                                              'all'        => 'All',
                                              'pending'    => 'Pending',
                                              'processing' => 'Processing',
                                              'canceled'   => 'Cancelled',
                                              'closed'     => 'Closed',
                                              'completed'  => 'Completed',
                                          ],
                                  ]
                                  

                                  But it is not reflecting on admin panel. After a while I realized that this translation admin panel is picking from resources/lang/vendor/admin/en/app.php directory instead of Admin package directory.

                                  How to update the app.php file under resources/lang/vendor/admin/en/app.php

                                  I run the vendor:puslish command, but it didn't work.

                                  Is there any other way, As I am not pushing resources/lang/vendor directory to dev server.

                                  I also tried again by changing text in file under Admin package and again run the vendor:publish command and select 22 (AdminServiceProvider) But it didn't override the lang/app.php filder under resources/lang/vendor directory

                                  Nam in quod velit ni

                                  1 Reply Last reply Reply Quote 0
                                  • H
                                    hedyd last edited by 31 Jan 2022, 12:59

                                    Well I found the solution. I need to add --force to override files

                                    Nam in quod velit ni

                                    1 Reply Last reply Reply Quote 1
                                    11 out of 18
                                    • First post
                                      11/18
                                      Last post