Forum Replies Created
- AuthorPosts
-
do you have a link i can check ?
for starters, you haven’t sent me a link so i can have a look 🙂
>the last one i translated in the language file.
okactually 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
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)
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
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
strikes me like you did not install your wordpress language files
having had a quick think, i think it will have to be done somewhat differently
i.e it *will* append – so there should be nothing but the shortcode on that page – but having an additional way to display some sort of text/html only on the initial view of the orderpage .
i will mull this over for a bit as to how to do this the best way considering how the whole shebang is implemented as it isyou are right actually.
the confirmation at the end of it all , should (optionally i guess) replace whatever there was before, not append.
seems like – although that’s what i had in mind – i never actually implemented it that way (surprised no-one else mentioned it before )let me see what i can do (maybe an additional option somewhere to not break existing installations)
can’t give you an ETA yet though
PS: I might add that to the next version though as it’s certainly an idea and should be quite simple to do
sorry, no. (not the way it is right now anyway)
but you can of course edit what’s there (in localization)>Now I would like to know, how can I switch on these translation?
just set wordpress to be in de
WP<4.0 : in wp-config.php set define('WPLANG', ''); to define('WPLANG', 'de_DE');
WP>=4.0 : WordPress settings -> general -> site languagewppizza->layout->Format of openingtimes (if displayed):
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 abovehave you tried just putting the plain shortcode on a page somewhere ?
(i.e create a page and put [wppizza category=’!all’ ] in the content area and save)(ps: that shortcode is a loop in itself by the way – i .e it loops through items in category(ies))
sounds to me like you are putting a loop into a loop
i would suggest you first just put the shortcode on a page as opposed to using
<?php echo do_shortcode('[wppizza category="!all" ]'); ?>
in a template somewhere and see what happens
>many restorans working on holidays so it could be where useful to many restaurants to show when the open in holidays
i would have thought just typing it in somewhere would do the job just fine
(not sure why you want to make things unnecessarily complicated, but maybe i’m missing things)
sorry, but this really is your customisation/programming
you can of course already set opening times for specific date that override the others under
“Any dates/days where opening times differ from the standard times above (such as christmas etc).”
but if you want to display holiday names etc etc , that’s really your baby
there are a bunch of codesnippets though you could have a look at here
https://www.wp-pizza.com/forum/code-snippets/
and in your case, the following would probably/possibly be a good starting point
https://www.wp-pizza.com/topic/extending-the-plugin-with-a-class/
PS: don’t know why you are using “echo do_shortcode” instead of just the plain shortcode on a page…but that’s up to you. just wondered
- AuthorPosts