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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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   1198 Views

Avatar
lerni

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?

Avatar
lerni

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 :-)
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.