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


Reply


2 Posts   863 Views

Avatar
lerni

Community Member, 80 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?

Avatar
lerni

Community Member, 80 Posts

3 August 2010 at 11:48pm

Edited: 03/08/2010 11:50pm

responding to myself... the ability to read is a nice gift :-)
http://theserverpages.com/php/manual/en/function.setlocale.php

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