Community Forums

Translation

Incorrect «Successful Import» message when language pack contains a folder


You must be signed-in to post.

AuthorSubject
 
Page: 1
komputist
Subject: Incorrect «Successful Import» message when language pack contains a folderQuote this post in your reply
I have found a language import bug. Do this:

1) EITHER create the empty folder "folder1"
OR create folder "folder2" and place these files inside: language_text.sql, language.xml readme.txt
2) Zip each folder so you get 'folder1.zip' and 'folder2.zip'
3) Import 'folder1.zip' as if it was a language pack.

EXPECTED RESULT: Error message + no import happening (of course)
ACTUAL RESULT: ATutor repports "successful import of language pack"!

4) Import 'folder2.zip'

EXPECTED RESULT: Success message + import actually happening!
ACTUAL RESULT: ATutor repports "successful import of language pack", but nothing actually gets imported - the new language does not appear.

PROPOSED FIX: Make it so that importing a zipped folder always results in a error message.

(Alternatively, make it so that if the content of a zipped folder is a valid language pack, *then* make ATutor actually import those file. However, I suspect that this might not be worth it.)

PS: How did it come to experience this bug? Well, I simply downloaded some language packs using the Safari web browser. Safari will, by default, unzip zip files and place the unzipped files inside a folder with the same name as the zip file. Thus, in order import the file into ATutor, I had to re-zip the downloaded files, which I did. And then I came to simply zip the very folder with the files inside.

PPS: I knew, but had forgotten, that I should not simply zip the folder.
Posted: 2015-02-07 14:02:25
 
Page: 1

You must be signed-in to post.

Related Articles