Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in translation when using a theme other than classic in Prestashop 1.7.6.0 #17324

Closed
Gaja-A opened this issue Jan 23, 2020 · 10 comments
Closed
Labels
Duplicate Resolution: issue closed because already reported

Comments

@Gaja-A
Copy link

Gaja-A commented Jan 23, 2020

Hi,

I use the Prestashop 1.7.6.0 and custom theme. I have a problem with the back office translations on my site which is in multiboutique. The translation is not working for my custom theme (i.e., not classic).

I saw the old ticket (#14962) and with the help of this, I had also checked my code where everything seems to be normal but still I can't edit the translations for my theme custom.

And here is the error I get when I want to translate in my custom theme -

Invalid resource provided: "1.2"; Errors: [ERROR 1871] Element '{urn:oasis:names:tc:xliff:document:1.2}xliff': Missing child element(s). Expected is one of ( ##other{urn:oasis:names:tc:xliff:document:1.2}*, {urn:oasis:names:tc:xliff:document:1.2}file ). (in /data/www/gti/gti-moondream/ps17/adminmoon/ - line 2, column 0)

If someone has a solution ?

Thanks!

@khouloudbelguith
Copy link
Contributor

Hi @Gaja-A,

Your issue is fixed with PS1.7.6.1 with this PR: #14962
Your ticket is a duplicate of #14733
So, I close it.
Thanks !

@khouloudbelguith
Copy link
Contributor

Duplicate of #14733

@khouloudbelguith khouloudbelguith marked this as a duplicate of #14733 Jan 23, 2020
@khouloudbelguith khouloudbelguith added the Duplicate Resolution: issue closed because already reported label Jan 23, 2020
@Gaja-A
Copy link
Author

Gaja-A commented Jan 23, 2020

Hi @khouloudbelguith,

I tried the steps and commits mentioned in those tickets but nothing works for me ? I still have the error.

Thanks !

@khouloudbelguith
Copy link
Contributor

@Gaja-A,

with PS1.7.6.0, we cannot translate a Back office or modules when using a theme other than classic
#15133 fixed with this PR: #15139
#14733 fixed with PR: #14962

They are fixed in the PrestaShop v1.7.6.1.
Thanks!

@Gaja-A
Copy link
Author

Gaja-A commented Jan 24, 2020

Hi @khouloudbelguith,

Infact, we already have the same code as like in the ticket #14962 but it doesn't works. So I tried to do with #15139, where I modified all the files as mentioned in that ticket but still have the same error ?

Thanks !

@khouloudbelguith
Copy link
Contributor

@Gaja-A, I did not manage to reproduce the issue with PS1.7.6.3 & PS1.7.6.1.
It is fixed.
I attached a screen record
https://drive.google.com/file/d/16riTYgpDjHNNDYSlqb8E374VncdTdEmh/view
Thanks!

@Gaja-A
Copy link
Author

Gaja-A commented Jan 24, 2020

@khouloudbelguith, I understand that it is fixed with PS1.7.6.1.
But I need to clarify something. In our case, we are using PS1.7.6.0 and I tried both PRs on my current PS (PR: #15139 and PR: #14962), but still I got the same error.
So could you confirm me that it's just enough to put those PRs on or anything else to do?
Thanks !

@khouloudbelguith
Copy link
Contributor

@Gaja-A, Other issues fixed in PS1.7.6.1 related to the translations:
#14932
#14966
#15051
#15017
#14938
#14719
You can check the changelog for PS1.7.6.1: https://www.prestashop.com/en/system/files/ps_releases/changelog_1.7.6.1.txt

Thanks!

@ShaimyWinda
Copy link

@khouloudbelguith Hi !

The problem is that we can no longer translate our theme. (soundtrack > Translation > Theme translation)
Where we used to be able to. We've put in your various PRs and nothing works.

And in Apache, I have this error:
[Fri Jan 24 18:33:52.204726 2020] [php7:error] [pid 14287] [client 45.90.224.168:41770] script '/var/www/preprod.moondreamwebstore.fr/adminmoon/themes/new-theme/public/index.php' not found or unable to stat, referer: https://fr.preprod.moondreamwebstore.fr/adminmoon/index.php/improve/international/translations/?lang=fr&type=themes&locale=fr-FR&selected=moondream&_token=HJb8pDzKb_aCR7h7aQQsCPsIa7p_zlVLsA2psrHlnYM

Thanks!

@khouloudbelguith
Copy link
Contributor

Hi @ShaimyWinda,

This issue is currently closed, can you open a new one with more information about your configuration.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate Resolution: issue closed because already reported
Projects
None yet
Development

No branches or pull requests

3 participants