I have a Silverstripe website set up in English. I would like to duplicate the same website, but using another language (Chinese).
I don't want to create Chinese translations for the English pages / data objects on the already existing website, I want a separate installation of the same website but using Chinese.
Is there a quick way to do this without loosing the English content on the Chinese website ? I would like to migrate the English content too to use as a guide for the translator - who will replace the English text with Chinese text (again, no separate translations will be created in Chinese on the new page).
I realize this can be done by duplicating the whole website and content, as a separate installation and then somehow change the locales of the pages - but I need this for everything: pages, and all the data objects.
Export the database as an sql-file from phpmyadmin. Create a new hostingpackage and database. Import the sql file into the new database.
Copy over the files from the orginal website. Edit your configuration and htaccess (default language, databasepath) so the new site gets it's information from the right database.
About the chinese though... you maybe have to look into rtl-options.
I know how to do that but I was asking for something like this:
- I create the new website (chinese version) and use the english content
- what should I do in the DB so that the system thinks that the english content is actually chinese ?
Hi Biagio. If you mean translating the content automatically... i haven't run into something like that yet.
I think you have to follow the procedure that i stated earlier and change the default language in mysite/_config.php
Something like this
// Set the site locale
i18n::set_locale('zh-CN'); //language code for simplied chinese
and then replace the existing english text in pages and dataobjects with their chinese equivalent.