Snicker Comments

User avatar
stani
Master Bludit
Posts: 79
Joined: Wed Oct 14, 2020 1:34 pm
Has thanked: 1 time

I also wrote and also nothing ... :(

But still, the original English can be translated and replaced, right?
I just don't know where, what file ...
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

The language files are at /bl-plugins/snicker-0.1.2/languages.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
SamBrishes
Master Bludit
Posts: 106
Joined: Tue Dec 25, 2018 8:07 pm
Been thanked: 3 times

Hellow,

I'm really sorry for the long wait and troubles. Can you please send me your cs_CZ.json file?

I tested this on my own and it worked without any problems (changing Bludit to "Čeština" using cs, cs_CZ as locale value, with an own created cs_CZ.json snicker-language file). I guess there are some issues on your translation file directly.
Edi wrote: Sat Nov 21, 2020 4:12 pm You are right. The plugin uses it's own language system. And there is a bug.
Not really, I'm using the same language system as Bludit, just adapted to be string-secure and in a plugin-based context to prevent overwriting of existing strings. It's also easier for the translation tool I'm using for my plugins, but that's just a side effect.


Thanks for your patience.

Sincerely,
Sam.
User avatar
stani
Master Bludit
Posts: 79
Joined: Wed Oct 14, 2020 1:34 pm
Has thanked: 1 time

OK, I can send. But so far I have a working one only, not a final one.
User avatar
stani
Master Bludit
Posts: 79
Joined: Wed Oct 14, 2020 1:34 pm
Has thanked: 1 time

?...
SamBrishes
Master Bludit
Posts: 106
Joined: Tue Dec 25, 2018 8:07 pm
Been thanked: 3 times

Hello,

I've already sent you the valid Czech `cs_CZ.json` language file directly via E-Mail (8th of February), this took a bit longer since I didn't update my E-Mail address here on the Bludit Forums (So I didn't see the mail, I've fixed it now). Sorry for that.

I've sent it to you again using the right E-Mail address.

The issue was, your JSON document was not valid, thus Bludit skipped it completely. JSON uses a really strict syntax, a missing comma, a not-escaped character or anything else will destroy the document completely.

Please use a JSON Linter / Validator such as

https://jsonlint.com/
https://jsonformatter.curiousconcept.com/

or write your language files in a Syntax-Checking Editor like

https://atom.io/

Thanks, sorry for waiting.

Sincerely,
Sam.
User avatar
stani
Master Bludit
Posts: 79
Joined: Wed Oct 14, 2020 1:34 pm
Has thanked: 1 time

So now it's OK.

I had to take the original JSON in English, and carefully perform the translation line by line.

The translation is complete, works, and I will now test the Sniker.
User avatar
stani
Master Bludit
Posts: 79
Joined: Wed Oct 14, 2020 1:34 pm
Has thanked: 1 time

Something else, I found a bug.

To add a (new) post is below Answer and Comment:
1.jpg
1.jpg (23.6 KiB) Viewed 9774 times


But at Reply is Answer and Answer:
2.jpg
2.jpg (29.97 KiB) Viewed 9774 times
SamBrishes
Master Bludit
Posts: 106
Joined: Tue Dec 25, 2018 8:07 pm
Been thanked: 3 times

Hellow,

you're right, that's really confusing. The answer field applies to the Captcha of course, the second is the action button to answer to a comment.

I'll rename this in a future update.

Thanks.

Sincerely,
Sam.

PS.: https://github.com/pytesNET/snicker/issues/32
User avatar
stani
Master Bludit
Posts: 79
Joined: Wed Oct 14, 2020 1:34 pm
Has thanked: 1 time

Hello Sam,

one small improvement - line 199:

Code: Select all

"Written by <b>%s<\/b>",
And please be in the next update Subscription, Registration and Email notification?

thanks
Post Reply