WPPizza – A Restaurant Plugin for WordPress › Support › General Support › how to prevent losing changes i have made in translation files
- AuthorPosts
- 21 November, 2014 at 8:18 am #6314
Hi,
on every update i lose my changes that i make in po file.
how to prevent this?Thanks
21 November, 2014 at 12:37 pm #6316you have to send it to me
22 November, 2014 at 7:03 am #6318Hi Olly,
the problem that sometimes you make dedicated translation. and that translation not fit to all so thats why i ask for solusion.when we will fix the exist translation that will fit to all i will send you the fiels.
now for this problem you can add some code that can check if the wppizza po exist in otherwise take from plugin folder. /public_html/wp-content/languages/ then take the translation from their. otherwise take from plugin folder.
this can help to many users that need to make some changes in the translation file without losing every update.
Thanks
22 November, 2014 at 5:58 pm #6320first of all, it’s quite deliberate that it’s not easy to just overwrite translations as I want people to send me their translations.
after all people benefit from the contributions of others too (and in many more ways than just translations), so it should go both ways.
secondly, what exactly is a “dedicated” translation supposed to be (we are not talking about poetry here) ?
either it’s translated or it is not. sure, translations can often be improved over time, but that doesn’t mean that there is a different interpretation (not in this case anyway) that could/should be applied in different cases ….
but feel free to correct me ..
10 December, 2014 at 8:52 am #6541Hi,
sorry for the late delay.
i will give good example.
for each temaple we have using wp-pizza plugin as the food menu. in some food restorans the give the food in defernce “Breads” “Pita”, “Baguette” “Plate” and etc…
so here we need to translate specific couple words to feet more to this restaurant.if we could just to move th PO files to theme folder the same as wp-pizza templates file it could help to many users to make translations to each template.
another solution that i see in many plugins is that they don’t include and po files. the give you the option to download this if you want.
in this way we could add our own PO file that cannot be changed on each update.
how can i use PO file in my theme folder?
Thanks
10 December, 2014 at 2:24 pm #6551> give the food in defernce “Breads” “Pita”, “Baguette” “Plate” and etc…
sorry, but that has no bearing on the translation from what i can see.
these are just categories you would enter as required for any restaurant anyway.
the chances are , that not one restaurant will have the same categories as another so you wold have to create a new po file for every single one, which makes the whole thing pointless from what i can seein any case, from what you are saying, it strikes m that the right approach would be to export/import categories as required instead of messing about with po/mo files here
10 December, 2014 at 7:35 pm #6553it’s not categories it’s how you Serves the food.
lets take for example “Shawarma” in “Pita” cost 10$ in “Baguette” cost 15$ in “Plate” cost 20$10 December, 2014 at 7:41 pm #6554that has even less to do with po files / translations those are individual prices …….?!
- AuthorPosts
- The topic ‘how to prevent losing changes i have made in translation files’ is closed to new replies.