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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

A first approach for a i18n installer (@chilluSS @ IRC @ 30-11-09 01.32)


Go to End


2 Posts   1155 Views

Avatar
Martijn

Community Member, 271 Posts

1 December 2009 at 4:33pm

Edited: 01/12/2009 4:39pm

Regarding my duplicate ticket about creating an i18n compatible installer, I translated almost all the strings of the install files today to en_US and nl_NL to see how far I could come to create a language selectable installer.

See tickets:
http://open.silverstripe.org/ticket/4782
http://open.silverstripe.org/ticket/1716

I successfully managed to install Silverstripe in Dutch.
This concerns a fully translated install procedure, admin user will be set to the selected Locale and the requireDefaults will be imported in the selected language.

I moved some files to a seperate install folder to keep the code together. All files in this folder can be removed after install.

I borrowed some code from the i18n class for a seperate Language translation class, to make it independed from Sapphire in case things are not supported. I uses _tr instead of _t function, to avoid conflicts with the Core _t during install.

The install process language is seperated from the final installation language, cause I only have 2 languages translated (I suck at most other languages...). The installer will try to recognize the browser setting for the initial language setting..

I think some things can be done better and I don't know how it works when it is being installed by the command line, but on my server It works like any other install.

I think this is a nice addition to Silverstripe.

And when the core devs want this to integrate, I would be happy to take this to a further level.

I can deliver a mulilang zip file for testing (seemed a little too big for the forum...).

Avatar
Martijn

Community Member, 271 Posts

2 December 2009 at 9:17am

Adding this files to SS 2.4 Alpha will run the Installer in English or Dutch (Other languages are Dummy files for testing, but you can let the installer use the core translations for requireDefaults and setting up Admin language). See readme, for more comments.

Attached Files