21302 Posts in 5736 Topics by 2603 members
General Questions
SilverStripe Forums » General Questions » googlesitemap.xml priority with comma instead of dot because of LC_ALL in _config.php
General questions about getting started with SilverStripe that don't fit in any of the categories above.
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 649 Views |
-
googlesitemap.xml priority with comma instead of dot because of LC_ALL in _config.php

3 August 2010 at 8:52pm Last edited: 3 August 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?
-
Re: googlesitemap.xml priority with comma instead of dot because of LC_ALL in _config.php

3 August 2010 at 11:48pm Last edited: 3 August 2010 11:50pm
responding to myself... the ability to read is a nice gift
http://theserverpages.com/php/manual/en/function.setlocale.phpsetting back LC_NUMERIC after LC_ALL to a the default or set each value separate in the first place.
| 649 Views | ||
|
Page:
1
|
Go to Top |

