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, Ed, biapar, Willr, Ingo, swaiba

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

Go to End

2 Posts   1137 Views


Community Member, 81 Posts

3 August 2010 at 8:52pm

Edited: 03/08/2010 8:53pm

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?


Community Member, 81 Posts

3 August 2010 at 11:48pm

Edited: 03/08/2010 11:50pm

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.