Snicker Comments

User avatar
stani
Sr. Bludit
Posts: 46
Joined: Wed Oct 14, 2020 1:34 pm

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: 2245
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Contact:

The language files are at /bl-plugins/snicker-0.1.2/languages.
Planet Bludit, Tipps, Snippets und nützliche Links. - Newsletter, Informationen zu Bludit (auf Deutsch).
User avatar
SamBrishes
Master Bludit
Posts: 106
Joined: Tue Dec 25, 2018 8:07 pm
Location: Austria 'n' Germany
Contact:

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.
If you really like my projects and want to support me, I would be extremely grateful for a coffee! (Thanks to all Supporters):

Image
User avatar
stani
Sr. Bludit
Posts: 46
Joined: Wed Oct 14, 2020 1:34 pm

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

?...
User avatar
SamBrishes
Master Bludit
Posts: 106
Joined: Tue Dec 25, 2018 8:07 pm
Location: Austria 'n' Germany
Contact:

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.
If you really like my projects and want to support me, I would be extremely grateful for a coffee! (Thanks to all Supporters):

Image
User avatar
stani
Sr. Bludit
Posts: 46
Joined: Wed Oct 14, 2020 1:34 pm

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
Sr. Bludit
Posts: 46
Joined: Wed Oct 14, 2020 1:34 pm

Something else, I found a bug.

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


But at Reply is Answer and Answer:
2.jpg
2.jpg (29.97 KiB) Viewed 54 times
User avatar
SamBrishes
Master Bludit
Posts: 106
Joined: Tue Dec 25, 2018 8:07 pm
Location: Austria 'n' Germany
Contact:

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
If you really like my projects and want to support me, I would be extremely grateful for a coffee! (Thanks to all Supporters):

Image
User avatar
stani
Sr. Bludit
Posts: 46
Joined: Wed Oct 14, 2020 1:34 pm

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