Jump to content

PDF Translations not saved


Recommended Posts

When I try to save translations with the button "Update translations and stay" in the backend for the PDF translations I get an empty screen and nothing happens.

This happens only with the PDF translations and with different languages.

 

Any idea?

 

 

 

Prestashop Version 1.5.0.13

Edited by Telesight (see edit history)
Link to comment
Share on other sites

Warning: fopen(/home/vhosts/domain.nl/httpdocs/prestashop/themes/default/pdf/lang/nl.php) [function.fopen]: failed to open stream: No such file or directory in /home/vhosts/domain.nl/httpdocs/prestashop/controllers/admin/AdminTranslationsController.php on line 270

 

Warning: Cannot modify header information - headers already sent by (output started at /home/vhosts/domain.nl/httpdocs/prestashop/controllers/admin/AdminTranslationsController.php:270) in /home/vhosts/domain.nl/httpdocs/prestashop/classes/exception/PrestaShopException.php on line 90

Edited by Telesight (see edit history)
Link to comment
Share on other sites

@Engineer

Just a detail; this is a version 1.5 forum part, questions about earlier versions can be put in the normal forum parts.

 

Are the pdf translations partly filled when you add a new translation, or are the pdf translation fields all empty when you add a new translation and try to save it?

"Before it works fine. " When is before ?

Edited by Telesight (see edit history)
Link to comment
Share on other sites

I have the same problem (1.5.0.13) I tried to add the Danish Language to prestashop. Afterwards I would try to update the missing translations.

 

translations/da/pdf.php actually has a complete translation. But it is somehow not loaded into prestashop. And if I try to manually update the translation via the admin-interface the translations already there will be deleted and replaced with an empty "pdf.php"

 

I tried to do a fresh install and the problem persists. I even tried downloading from SVN (1.5.0.14) and here I have the same problem.

 

However the two above warnings I don't have.. Actually I get no warning messages at all.. And prestashop claims it successfully saved the translation.

Link to comment
Share on other sites

Any news about it?

 

I'm trying to create a Brazilian Portuguese Back Office translation while I wait for 1.5 Final. But I'm having a similar problem as these guys up here.

 

Everytime I try to edit it via Back Office interface, it says the changes were successfully saved, but some fieldsets don't save anything. And it clears everything I did.

 

Aparently when I edit the br/admin.php file it works, but I can't find a full list of strings there as I find throught the interface.

Link to comment
Share on other sites

@Fabio - Maybe there is a solution to some of your trouble.. In the beginning I had your problem too.. Not all fields were saved when I translated the modules.

 

Solution to that was to change my server setup. I did step 1 to 5 of the solution described here:

http://www.prestasho...post__p__784471

and it made it possible to edit the modules tanslation.

 

So now I have the modules and the front-end translated.

 

email-translation does not work in the interface either but I got it to work by translating them manually.

 

But the PDF-translations still does not work. Even if I add the entire translation manually in /translatios/da/pdf.php the thanslation is not loaded into prestashop.

 

Now you may not be able to change your server setup. But you managed to translate manually by editing admin.php. Here are a list of files that you should translate If you would like to do it manually. However the untranslated strings are not in those files so you would need to copy them from a language that has a complete translation.

 

In /translations/br/ you should have the folowing files translated:

admin.php

errors.php

pdf.php

fields.php

 

In /mails/br/

All the html and txt files needs to be translated (there´s a lot of them)

 

In /modules/[modulename]/translations or in /modules/[modulename]/

br.php

 

In /modules/[modulename]/mails/br (if a "mail" directory exists in the module)

Translate the html and txt files

 

In /themes/[themename]/lang/

br.php

 

When all that is translated you should have a complete translation. But that is a lot of work.

Edited by kemuel (see edit history)
  • Like 1
Link to comment
Share on other sites

  • 4 months later...

I have the same problem with 1.5.2 When I save translation I get an error (just for PDF translation):

 

500 Internal Server Error

--------------------------------------------------------------------------------

nginx/1.1.19

Link to comment
Share on other sites

  • 3 weeks later...
×
×
  • Create New...