Posted by: Monni Posted on: Jul 20th, 2014 at 7:48pm
In the forum statistics
Quote:
Eniten käyttäjiä paikalla: 36 Heinäkuun 12., 2014 klo 6:02am.
should be
Quote:
Eniten käyttäjiä paikalla: 36 kpl heinäkuun 12., 2014 klo 6:02pm.
Otherwise it will break miserably if day comes before month...
I added "kpl" as $maintxt{'30b'} on my forum... standalone numbers are not allowed on Finnish grammar... "kpl" is the default count word in Finnish grammar.
Posted by: Dandello Posted on: Jul 19th, 2014 at 11:15pm
Back to the Mod - considering how many languages use sentence case for dates I've gone ahead and hard-coded support. The spots where there WILL be something in front of the date now have 'flags' that will tell Sources/DateTime.pm to choose the alternate language item if it exists in that language's Main.lng.
I may have missed some but I think I got most of them.
Another spot that I'm sure will need fixing is the ordinal suffixes ('st', 'nd', 'rd', 'th' in English). Pyragony tells me that Russian uses them but not quite the same way as in English.
Posted by: Monni Posted on: Jul 19th, 2014 at 6:18pm
I once looked at the module exactly. I think you get the version 1.71 to work. Only, CPAN can not be reached in two days. Will I get it not to work with version 1.70 end.
meta::cpan still works... You can see sources of modules there too...
Posted by: pyragony54 Posted on: Jul 19th, 2014 at 6:01pm
I once looked at the module exactly. I think you get the version 1.71 to work. Only, CPAN can not be reached in two days. Will I get it not to work with version 1.70 end.
Posted by: Monni Posted on: Jul 19th, 2014 at 4:30pm
This is the last version that will have custom time format. (JonB and I discussed this a while back when we started looking at using the time formatting offered by the CPAN DateTime module.)
In terms of knowing when Today/Yesterday start a sentence - I'm pretty sure the only times those would be at the beginning would be for the date of the first post. All the other times those words are (or should be) within a sentence.
If you want to try adding it to the previous patch... Feel free to test it on this forum and I will notify if I find some spot where it is not what it is supposed to be...
Posted by: Dandello Posted on: Jul 19th, 2014 at 1:45pm
This is the last version that will have custom time format. (JonB and I discussed this a while back when we started looking at using the time formatting offered by the CPAN DateTime module.)
In terms of knowing when Today/Yesterday start a sentence - I'm pretty sure the only times those would be at the beginning would be for the date of the first post. All the other times those words are (or should be) within a sentence.
Posted by: pyragony54 Posted on: Jul 19th, 2014 at 8:16am
I'll check later. Now I must be abroad. Am back in the afternoon again.
Posted by: Monni Posted on: Jul 19th, 2014 at 8:01am
When it does not start a sentence. As far as I know all words are capitalized if start a sentence. The problem comes down to the fact that how to know inside DateTime.pm if the date string is used standalone or as part of a full sentence. Custom time formats are also pain in the a-s-s.
Posted by: Dandello Posted on: Jul 19th, 2014 at 2:55am