Support

Akeeba Backup for Joomla!

#19675 Updating Seblod Languages File - NOT Solved

Posted in ‘Akeeba Backup for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Akeeba Backup version
n/a

Latest post by nicholas on Thursday, 03 April 2014 09:29 CDT

joomleb
Hi to all,
this ticket is the following of this one

As I wrote:
I'm working with the "Extensions installation enhanced by Akeeba Backup" feature enabled.

So, when I start an update/install of Akeeba Backup / Akeeba Admin Tool / Template Creator CK / Seblod etc. etc. components from the "Upload & Install Joomla Extension", the Akeeba Backup perform a new System Restore Point.

When I install (update) languages files like the Akeeba Backup one, Template Creator CK, etc. etc. Akeeba Backup avoid that. (I think this is the right way).

But not when I update and install Seblod languages files.
For each Seblod Language file Akeeba Backup perform a complete site backup!

Please, How to avoid that ?

Davide suggest me that It depends on the package type, as defined by the developer in the manifest XML inside the package.
If they have set it up as a "package" or "files" extensions (instead of the proper type "language") SRP is triggered.

But I checked, tested again, and:
1 - J2.5: Making non-core language packs - Joomla! Documentation the type of package is "file" type;
2 - Infact as you can see all (Akeeba Backup, Template Creator CK, etc. etc., Seblod) are marked as "file" - I attach here the 3 xml languages files examples.

Please, Can you suggest me why issue is happening only installing Seblod languages file ?

tampe125
Akeeba Staff
Hello,

Can you please attach this language pack, so I can test it locally and reproduce the error?

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

joomleb
Hi Davide,
to be sure I gave you the direct links where I downloaded languages files. Anyway, here are again:
- Akeeba Backup
- Template Creator CK
- Seblod

My last test was on Italian language

Many Thanks for help :)

tampe125
Akeeba Staff
Please attach them here, so I'll be 100% to use the same files you are using

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

joomleb
Here are:

tampe125
Akeeba Staff
I just tried with your packages and found where the problem is.
It's because Seblod is not following a standard naming convention, they use the same extension name for their component AND its translations which is a Joomla best practice.

Sadly we can't fix it, because we would break System Restore Points for everyone else.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

joomleb
Hi Davide,
Please, Could you help me on solving the problem in Seblod ?
I checked the .zip files, Do you mean because opening the .zip files we have:

Seblod-it-IT.xml
admin folder
it-IT.SeblodCCK.zip
- SeblodCCK-it-IT.xml
- admin folder
- frontend folder

instead to be simply:

Seblod-it-IT.xml
admin folder
frontend folder

???

Many Thanks for help!

tampe125
Akeeba Staff
No, the problem is caused by the name of the .xml file: Joomla uses it to store it inside the extension table.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

joomleb
akeebabackup-it-IT-j25.zip
- it-IT.xml

it-IT.Template_Creator_CK.zip
- Template Creator CK-it-IT.xml

it-IT.Seblod.zip
- Seblod-it-IT.xml

As far as I can see, Template Creator CK in named like Seblod and it has no problem with Akeeba Backup.
Please, am I missing anything?
Please, What should be the .xml file name?

All us in Seblod community would be too happy to resolve this Akeeba Backup issue :)

tampe125
Akeeba Staff
The easiest thing do to is to have a manifest filename and the element "name" inside it different.
For example, name the file Seblod-translation-it-IT.xml

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

joomleb
Hi Davide,
the language file has been renamed and reorganized (I tested a lot of different solutions).
but still doesn't run yet as expected like for "Template Creator CK" for example.

Here attached the last "new" Seblod language file.

PS Can it depend on the file weight ? Maybe Seblod file is too big ?!?
(Is the only different I can see from the others files)

Many Thanks for Support :)

tampe125
Akeeba Staff
Hello,

the only solution is to name the xml file different from the element name that is inside the manifest file. Otherwise Joomla will report it as already installed, triggering the SRP.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

joomleb
Hi Davide,
many thanks for the quick reply.

Right now Seblod language file is packed as:
- "it-IT.Seblod-translation.zip"
- "Seblod-translation-it-IT.xml"
- "<name>Seblod-translation - it-IT</name>"
and the installation (already installed and I reinstall it) doesn't run as expected!

But, "Template Creator CK" is a good example, it is packed from transifex like Seblod and It's running as expected, also if it is already installed and I reinstall it! Why? So, its names are:
- "it-IT.Template Creator CK.zip"
- "Template Creator CK-it-IT.xml"
- "<name>Template Creator CK - it-IT</name>"

Here in Seblod I'm discussing about this issue. As you can see horus68 speak about the automatic file creation...

tampe125
Akeeba Staff
Please take a look at the attached package.
As you can see the manifest name is different from the name element tag.

While processing, Joomla strips out the spaces, so they file you attached before is the same of the previous one.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

joomleb
Well,

1 - I thought "it-IT.Seblod-translation.zip" it is different from "Seblod-translation-it-IT.xml" and "<name>Seblod-translation - it-IT</name>", no ?!?

2 - Anyway, if Seblod is not well named, I change my question: Why is "Template Creator CK" running without any issues ?
They are using the same packaging way and they are named in the same way, but Seblod doesn't run, Template Creator CK run;

2 - Thanks for the attached file. It is packed as:
- "it-IT.Seblod-translation_NO_SRP.zip"
- "Seblod-translation-it-IT.xml"
- "<name>Seblod-translation - it-IT</name>"
I tested it, but also that file doesn't run as expected

tampe125
Akeeba Staff
  1. While processing, Joomla strips out the spaces
    So no, they are not different.
  2. Remove any installed package and then install it-IT.Seblod-translation_NO_SRP.zip twice. You will see that SRP are not triggered.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

joomleb
Hi Davide,
ok I'm back. In first of all I followed your instructions and:
I removed any installed Seblod language File from Joomla Manager Extension;
Then I installed twice your file packed as:
- "it-IT.Seblod-translation_NO_SRP.zip"
- "Seblod-translation-it-IT.xml"
- "<name>Seblod-translation - it-IT</name>"
It run.

But "While processing, Joomla strips out the spaces" cannot be completely true, simply because "Template Creator CK" pack:
- "it-IT.Template Creator CK.zip"
- "Template Creator CK-it-IT.xml"
- "<name>Template Creator CK - it-IT</name>"
is running without any issues.

So, I made a more tests and:
- "it-IT.Seblod.zip"
- "Seblod-it-IT.xml"
- "<name>Seblod - it-IT</name>"
doesn't run

- "it-IT.Seblod-translation.zip"
- "Seblod-translation-it-IT.xml"
- "<name>Seblod-translation - it-IT</name>"
doesn't run

- "it-IT.Seblod translation.zip"
- "Seblod translation-it-IT.xml"
- "<name>Seblod translation - it-IT</name>"
run !. I attach for you, so you can test and reply.

- "it-IT.Seblod Translation.zip"
- "Seblod Translation-it-IT.xml"
- "<name>Seblod Translation - it-IT</name>"
run !. I attach for you, so you can test and reply.

So, as you can see: uppercase or lowercase seem to be the same, but with "-" or without (as in Template Creator) "-" seem to make the difference!
Seem that to work well with Transifex and its packager CTransifex the package must be at least of two words with space between them and no "-"...

I have no the competence to extrapolate correctly how joomla works, but seem it doesn't depend on "while processing, Joomla strips out the spaces".
Please, can you help us to understand the final rule ?
PS I think that have a note on this in Akeeba Backup documentation would be a good thing for all us :)

nicholas
Akeeba Staff
Manager
You seem to have forgotten to add client="site" in the XML manifest's header. See attached.

Please note that with the attached file and the latest dev release we can no longer reproduce your issue. On our end it is considered as a non-issue and this ticket will be closed. Thanks!

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!