Willkommen im neuen Forum von concrete5.de.
Die Anmeldung ist ab dem 15.10.2020 nur noch mit E-Mail Adresse und Passwort möglich. Eine Anmeldung mit Benutzername ist nicht mehr möglich.

Diese Nachricht löschen.
Anhang entfernen?
Zurück zur Themenliste
A
ArleneS 0.png 04.03.2013 10:29

Limited Localization EN > DE

Hello Forum! I work with Concrete5 in English, but create sites for Swiss customers. They are small sites, and need limited localization - mainly validation for the form block (For example, if not filled out completely: "Complete required fields" appears. Translation: "Bitte sämtliche Felder mit * ausfüllen") I was able to do limited localization last Summer, when working with 5.2, but with 5.6 things have changed in the Form block. Now all validation is in concrete/core/controllers/blocks/form.php . See this forum entry: http://www.concrete5.org/marketplace/addons/form-tableless-layout/forums/where-can-i-change-the-success-and-error-text/ from JordanLev Unfortunately this all gets complicated when you also want to use the very excellent "form tableless addon". I freely admit that I am almost at the limit of my skills although I am not afraid to try things. I assume I have to do a "full Monty" localization. Does anyone know where I can find the .po files for this? Or does anyone have any other suggestions? By the way @Remo - loved the first book - it is full of post-it markers. New book ordered from Packt. Thanks for all your great work! And thanks in advance to the forum
A
ArleneS 0.png 04.03.2013 11:59
As is so typical of me, just as I begin to go crazy about a problem, the solution presents itself. In this case, the repository of bmatzner at GitHub: https://github.com/bmatzner/concrete5-de I did the "partial" localization - added the DE_de to the language folder, and edited config/site.php Whew!
A
ArleneS 0.png 04.03.2013 13:13
OK the euphoria wore off - I noticed both front-end AND back-end (Dashboard - "Verwaltung") are translated. Better than nothing but not my intention. Anybody have an idea how to separate these two? Thanks!
R
Remo 0.png 06.03.2013 09:13
Thanks! Glad you liked my book. Can you try to type "languages" in the intelligent search box on top and change the default language there. I haven't used it in a long time since we use a custom add-on we've built on our own as we needed quite a bit more functionality than the core offers. Something that quickly happens if most customers are Swiss, a small country with four languages...
A
ArleneS 0.png 06.03.2013 11:06
Thank you! I did that, and at least now I can change the language as needed - in development > English, live > German. It would be really nice to have the two separate - for instance, how does C5 decide, when you have 2-3 languages on a website, what the dashboard language is? I will have to look at the language add-ons more closely, although for my case they are overkill. (Or just get used to working in German!) Thanks again ArleneS
R
Remo 0.png 07.03.2013 08:41
You can specify that the user can pick a language during login in the same screen where you've changed the default language. There are other approaches in the "internationalization add-on" which you might want to try. I'm not an expert with these add-ons as we basically rewrote the whole thing for our own purpose, however, I remember that there's an option you can enable in which case concrete5 will try to determine the language based on the language of your browser.
R
Remo 0.png 08.03.2013 11:36
I'm not sure but a thought crossed my mind, can you try to add a new user? I think you should be able to select the lanuage there!
A
ArleneS 0.png 08.03.2013 11:55
Yes - I have now set the site up so language can be chosen at log-in. I could also add a user and choose the language. What I would like to achieve is that the language of the Dashboard is separated from the front-end - so no matter what Dashboard language is chosen, the front-end stays in German. I haven't tested it fully, but each time I change the language at log-in to English, the responses on the contact form change to English. Change at log-in to German, responses change to German. I don't feel like buying the internationalization block each time I create a site - I believe it is enough to develop in English, then go live in German. Should be okay. It is simply a convenience thing.
R
Remo 0.png 08.03.2013 13:09
The add-on is free! http://www.concrete5.org/marketplace/addons/internationalization/
A
ArleneS 0.png 08.03.2013 15:03
Yes I have that one installed - it allows you to choose between languages, but not mix. Looked further into this - the add-on I would need is this one: http://www.concrete5.org/marketplace/addons/translations-manager/ $30 / site Have to think about if it's worth it. Anyway, discussing it with you Remo was certainly worth it - really helped me get my head straight about the whole thing. Thank you.

Nachricht hinzufügen