Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Translation link + other questions


Reply


422 Views

Avatar
homezonebenny

Community Member, 3 Posts

29 December 2011 at 7:09am

Hi,
after a longer "SilverStripe" break i finished my first SS-Project. :-)
I'm rly proud about this, all runs rly rly great!

I uses SS for my final exams, and there I learned alot with SilverStripe to realize my first little project.

But now I have some open questions (left):
-------------------------------------------------------
- Translation link if no Translation (Page) exists
- $Form is allways in english, not in the "current language"?!
- Contact form "requiredFields" are allways in english too, not in german if the page is german

1.Translation Link:
-----------------------
Page.ss:
http://pastie.org/3041112

_config.php:
http://pastie.org/3041521

Page_Controller:
http://pastie.org/3041526

If I set a "Home" Page in the BE (backend, admin menu) in the "German Area" of the Page, so a "Flag for the English" language apears in the FE (frontend, user view), look at my Page.ss template Code, thats all correct.
But if I have a "über uns" (german) and no "about us" (english) Page, the Flagg is not visible. In that case I wanna have a Flagg that link you to the "home page" of the other language. So if the user is on the "über uns" (german) Page, and there is NO english version of that page, the Flagg Link should direct you to the "starting page" in the other language.

And a little question to the _config.php line 7 and 8.
What did this 2 lines do? Line 8 (site config) I understand, so I have translations for this, but Line 7 makes no differents for me.
I tested this enabled and disabled :-\

2. Form - Login Form in the FE:
---------------------------------------

With $Form I create the "Login Form" to login into BE. (localhost/admin)
That works well, like every other things. But this form is allways in english, no matter if the FE is in german or other language.
That's not rly important at the moment, but for later it is, because if I create a site for a german company or something like that, they wanna have this in her own language.
It would be great if someone knows a solution for that :-)

3. Contact form in the FE:
--------------------------------

mysite/code/ContactPage.php:
http://pastie.org/3041574

There are the "RequiredFields" they are allways in english too, no translations for that.
Whats the easiest way to change this? It's rly strange that the Framework outputs are only in english?! O.o

Thats all from me, this 3 little questions are left in my first SilverStripe Project.
I have to search a "photo box" for SilverStripe, that means if I click on a picture, entered in a module OR tiny, this should be have the "pop up" javaScript feature, that expand the image. But I think I can find this alone, if someone have a link, I dont throw that link away :-D

Greetings and many THXs
Benny

Original Post (german forum):
http://www.silverstripes.de/erster-kontakt-allgemeine-fragen/show/2059?showPost=2059