plain-solutions-gmbh / kirby-form-block-suite

This form plugin for Kirby offers you maximum flexibility and usability. It can be used as a block anywhere you needed. This repository replaces the obsolete version 2.0.
Other
38 stars 12 forks source link

Translations for default language are not working, when default language is not English #6

Closed romanustin closed 1 year ago

romanustin commented 1 year ago

My default and only language is not English. When I add other languages, translations are working fine, but when I am adding translations for default and only language, here is what I see:

image
plain-solutions-gmbh commented 1 year ago

Thanks for report. What's your default language?

plain-solutions-gmbh commented 1 year ago

Or the language of your panel.

romanustin commented 1 year ago

Yes, to be more precise, I mean language of panel. In my case it's Lithuanian, code "lt"

plain-solutions-gmbh commented 1 year ago

Okay. That language is not support. You can copy the translation-file from site/plugins/kirby-form-block-suite/lib/languages/de.php to site/plugins/kirby-form-block-suite/lib/languages/lt.php and load it on the end of site/plugins/kirby-form-block-suite/index.php like this:


'translations' => [
   'en' => require __DIR__ . '/lib/languages/en.php',
   'de' => require __DIR__ . '/lib/languages/de.php'
   'lt' => require __DIR__ . '/lib/languages/lt.php',
]
romanustin commented 1 year ago

I understand, exactly what I did, but it works with other language, let's say Spanish, but doesn't work with my default language.

romanustin commented 1 year ago

Also block is not translated here:

image
plain-solutions-gmbh commented 1 year ago

I thing, that's a bug of kirby. I made a forum entry for you.

romanustin commented 1 year ago

Also "Submit" button in frontend doesn't have any text.

plain-solutions-gmbh commented 1 year ago

Thanks for translating. If you don't mind to translate the defaults too. I'm look forward to your pr.