WPPizza – A Restaurant Plugin for WordPress › Support › General Support › some strings not translated
- AuthorPosts
- 23 October, 2014 at 9:56 am #5759
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
23 October, 2014 at 10:50 am #5763how 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 above26 October, 2014 at 4:06 pm #5829Hi,
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
26 October, 2014 at 4:52 pm #5834strikes me like you did not install your wordpress language files
26 October, 2014 at 5:44 pm #5835in 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
27 October, 2014 at 4:52 am #5841my 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.jpgand still here “WPPizza Categories”
http://s24.postimg.org/t28x947ud/WPP.jpgwhat else the problem can be?
Thanks
27 October, 2014 at 7:47 am #5842ah, 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
27 October, 2014 at 8:33 am #5843Thanks.
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
27 October, 2014 at 8:49 am #5844that 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)
27 October, 2014 at 8:54 am #5845the last one i translated in the language file.
so all ok now.Thanks!
27 October, 2014 at 9:02 am #5846actually 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
27 October, 2014 at 9:22 am #5847>the last one i translated in the language file.
ok - AuthorPosts
- The topic ‘some strings not translated’ is closed to new replies.