5102 Posts in 1520 Topics by 1116 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1044 Views |
-
How do I localize a whole site at once?

12 April 2011 at 9:53pm
It seems when I want to add a language to a site, it is per page only. For instance, when I want to add German as a language, I prepare the site as per http://doc.silverstripe.org/sapphire/en/topics/translation and add to my config file:
Translatable::set_allowed_locales(array(
'en_US',
'de_DE
)
);This works: when I add a language to the home page via the Translations tab, I can make a German page appear. But when I look at the page in a browser, all navigation is gone, because all other pages in the site didn't have any language added yet. Is there a way to make all pages accessible in the site, even when no other languages are added to these pages? In other words, I would be able to navigate through the site and see the default English pages when no other language has been added to the respective pages? Or do I have to add a language to every page manually in order to make them visible?
Thanks,
- Ray. -
Re: How do I localize a whole site at once?

17 April 2011 at 10:53pm
Thats not possible with existing code, although it'll be fairly easy to write a task for that.
See MigrateTranslatableTask.php to get you started
-
Re: How do I localize a whole site at once?

20 April 2011 at 7:57pm
OK, I'll have a look. Guess I'm spoiled by things like Cocoa frameworks...
Thanks!
| 1044 Views | ||
|
Page:
1
|
Go to Top |


