how to prevent losing changes i have made in translation files

WPPizza – A Restaurant Plugin for WordPress Support General Support how to prevent losing changes i have made in translation files

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #6314
    foxpc
    Participant

      Hi,
      on every update i lose my changes that i make in po file.
      how to prevent this?

      Thanks

      #6316
      Olly
      Admin & Mod

        you have to send it to me

        #6318
        foxpc
        Participant

          Hi 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

          #6320
          Olly
          Admin & Mod

            first 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 ..

            #6541
            foxpc
            Participant

              Hi,
              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

              #6551
              Olly
              Admin & Mod

                > 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 see

                in 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

                #6553
                foxpc
                Participant

                  it’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$

                  #6554
                  Olly
                  Admin & Mod

                    that has even less to do with po files / translations those are individual prices …….?!

                  Viewing 8 posts - 1 through 8 (of 8 total)
                  • The topic ‘how to prevent losing changes i have made in translation files’ is closed to new replies.