some strings not translated

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #5759
    foxpc
    Participant

      Hi,
      2 more things,
      one is the “WPPizza Categories” not change to the string i have set in the po file.
      all others strings works.
      how can i translate “WPPizza Categories” to my lang?

      and the other thing is that when you enter to some page like:
      page=wppizza-additives or wppizza-meal-sizes or wppizza-opening-times
      in the H2 tag before the translated string it always print “WPPizza”.
      how can i remove that or translate it?

      Thanks

      #5763
      Olly
      Admin & Mod

        how can i remove that or translate it?

        https://wordpress.org/plugins/wppizza/faq/ -> My shop doesn’t do Pizzas, how do I change the name and icon in the administration panel ?

        one is the “WPPizza Categories” not change to the string i have set in the po file.
        all others strings works

        “categories” is a wordpress string so install the correct language for your installation
        re WPPizza , see above

        #5829
        foxpc
        Participant

          Hi,
          i have set define(‘WPPIZZA_NAME’, ”); and this remove the “WPPizza”
          but not matter what i tried i can’t translate the “WPPizza Categories”
          i gave set lang define(‘WPLANG’, ‘he_IL’); and tried with many str_replace function but nothing! need your help with that.

          Thanks

          #5834
          Olly
          Admin & Mod

            strikes me like you did not install your wordpress language files

            #5835
            Olly
            Admin & Mod

              in other words:

              go here and download language pack
              http://wpcentral.io/internationalization/he/

              unzip into wp-content/languages

              assuming WP4.0+her: go to wp->settings->general ->site language: hebrew

              that’s that. no str_replace or any of that required

              #5841
              foxpc
              Participant

                my website working well with the language pack. you can see it here:
                http://postimg.org/image/acfqmnzr1/

                here you can see WP language files in ftp
                http://s18.postimg.org/ft50xtsyh/ftp.jpg

                and still here “WPPizza Categories”
                http://s24.postimg.org/t28x947ud/WPP.jpg

                what else the problem can be?

                Thanks

                #5842
                Olly
                Admin & Mod

                  ah, ok, we were talking about different things ( i assumed you meant the main admin sidebar on the left – or as the case may be on the right in your environment – where it says additives,settings etc)

                  essentially it’s an oversight on my part in the plugin which i will fix in the next version.

                  in the meantime, edit the following:

                  in classes/wppizza.actions.inc.php at approx line 1967 you find

                  
                  'name' => _x( 'WPPizza Categories', 'taxonomy general name' ),
                  

                  replace this with

                  
                  'name' => WPPIZZA_NAME. ' ' ._x( 'Categories', 'taxonomy general name' ),
                  

                  and it should work

                  #5843
                  foxpc
                  Participant

                    Thanks.

                    by the way, there is more place where the translate did work:
                    quick “add menu” in the top admin bar.
                    [link removed by admin]

                    Thanks

                    #5844
                    Olly
                    Admin & Mod

                      that you could have actually translated in the po file.

                      doesnt matter though, as that should have been different in the code to start off with really.

                      so – again – for the tims being, do this (same file approx line 1904) change

                      
                      'singular_name'      => __( 'WPPizza Menu Item', $this->pluginLocale ),
                      

                      to

                      
                      'singular_name'      => WPPIZZA_NAME.' '.__( 'Menu Item', $this->pluginLocale ),
                      

                      PS: please don’t put your screenshots (and links to them) on a site that servers porn ads !!(hence i removed the link above)

                      #5845
                      foxpc
                      Participant

                        the last one i translated in the language file.
                        so all ok now.

                        Thanks!

                        #5846
                        Olly
                        Admin & Mod

                          actually changing that bit will not help you until the next update (it will still say xyz menu item until th enext update of wppizza. just be patient for a couple of hours and i’ll update it and upload it to the repo

                          #5847
                          Olly
                          Admin & Mod

                            >the last one i translated in the language file.
                            ok

                          Viewing 12 posts - 1 through 12 (of 12 total)
                          • The topic ‘some strings not translated’ is closed to new replies.