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

googlesitemap.xml priority with comma instead of dot because of LC_ALL in _config.php


2 Posts   825 Views


3 August 2010 at 8:52pm (Last edited: 3 August 2010 8:53pm), Community Member, 80 Posts

If you set something like "setlocale(LC_ALL, 'de_DE');" in _config.php you'll get values like "0,9" instead of "0.9" for priority in the sitemap.xml and google does not like it (Ungültiger Tag-Wert -> invalid tag-value). Probable one shouldn't use LC_ALL but anyway sitemap should never use a comma instead of a dot. I guess this is a bug or what you suggest me to fill in to _config for having proper translated time & date values?


3 August 2010 at 11:48pm (Last edited: 3 August 2010 11:50pm), Community Member, 80 Posts

responding to myself... the ability to read is a nice gift :-)

setting back LC_NUMERIC after LC_ALL to a the default or set each value separate in the first place.