kisznera VIP
Total posts: 32
09 May 2016 10:37

Dear Support!

After install upload field, I add it to a type, but in the frontend only a grey area shown. I turn off my template to avoid jquery colflicts but still grey area there. I try html4, html5 and flash also. What should be wrong?

Thank you for your support!

Last Modified: 05 Apr 2017


Sergey
Total posts: 13,748
10 May 2016 05:42

Look into browser concole and see what are the errors.

Did you install Emerald 10 to try?


kisznera VIP
Total posts: 32
10 May 2016 09:53

Hi!

After a deeper analization I found the problem. I downloaded the Hungarian language files from transifex and the next lines

CERR_FILEDOSENTDELETED="File has not been deleted: %s"

CERR_FILEDOSENTEXIST="File does not exists: %s"

Were translatred to

CERR_FILEDOSENTDELETED="%s fájl nincs törölve"

CERR_FILEDOSENTEXIST="%s fájl nem létezik"

Because in the hungarian grammar the subject of sentence is in the beging. This cause a strange syntax error in the java script. I don't know why, but in this case in the cobalt genarated javascript /onFileDelete: function(error, filename)/ the quota marks were missing from the error message, and in the console I found a SyntaxError: missing ; before statement error.

In my local copy of the hungarian language file I corrected the two lines to

CERR_FILEDOSENTDELETED="fájl nincs törölve - %s"

CERR_FILEDOSENTEXIST="fájl nem létezik - %s"

And everything fine, but it sounds weird in hungarian.


Sergey
Total posts: 13,748
10 May 2016 11:14

I applied spme fixed.


aclertant VIP
Total posts: 14
05 Apr 2017 11:24

hi,

The same apply for CINSTALLFLASH in french. Just the variable as to be changed, there is no kind of %s or something else.

Powered by Cobalt