jonnsl / sliComments

Comments component for Joomla! 1.6
GNU General Public License v3.0
16 stars 5 forks source link

Text is not showed #18

Closed Ernis closed 12 years ago

Ernis commented 12 years ago

Instead of text I see this:

http://i42.tinypic.com/351vi1f.jpg

jonnsl commented 12 years ago

what version are you using? Did you uninstalled the english language pack?

Ernis commented 12 years ago

I translated everything to my language and everything is fine. Almost.

http://i44.tinypic.com/wmifd5.jpg

Ernis commented 12 years ago

I'm using joomla 1.7 and sliComments 1.2.0

jonnsl commented 12 years ago

you should have something like this in the ini file: COM_COMMENTS_COMMENTS_COUNT="Comments (%s)" the %s will be replaced with the number of comments (e.g. 'Comments (42)')

Ernis commented 12 years ago

Yeah, I have: COM_COMMENTS_COMMENTS_COUNT="Komentarai (%s)" But it's not working. I tried to copy/paste en-GB ini file but I still couldn't see "Comments (0)" line.

Ernis commented 12 years ago

Also, before Name, Email input fields shouldn't be "Name", "E-mail"? Like: Name: (input_field) E-mail: (input_field)

jonnsl commented 12 years ago

Enable "Debug System" and "Debug Language" in the global configuration and see if in the front-end it show a message like this

**Parsing errors in language files**

/[redacted]/joomla-slicomments/language/en-GB/en-GB.com_slicomments.ini : error(s) in line(s) 36, 37, 39, 40
jonnsl commented 12 years ago

Also, before Name, Email input fields shouldn't be "Name", "E-mail"? Like: Name: (input_field) E-mail: (input_field)

I think that this is not necessary because the fields have a placeholder, with a fallback using javascript if the browser dont support placeholder, and labels if javascript is disabled

bartiger commented 12 years ago

The situation seen in the first image occurs when a quotation mark is missing somewhere in the language file

Ernis commented 12 years ago

I found this:

/home/threeds/public_html/language/lt-LT/lt-LT.com_slicomments.ini : klaida(os) eilutėje(ėse) 1

Ernis commented 12 years ago

Ok, Everything is fine now. I had to change encoding from UTF-8 to UTF-8 without BOM.

Thanks for fast help!

After few days I'll send you Lithuanian translation.

jonnsl commented 12 years ago

did you saved the file as UTF-8? -- Edit -- never mind