I updated LanguageJbo.php to HEAD, as well as I could understand the code, but would like some help with these: *Date formats are rather different. There are two sets of month names in use, and two sets of weekday names, but such formats as "Friday, January 14, 2005" cannot be used in a sentence, it has to be "the 14th of January of the 2005th, which is Friday" or else just numbers. *Initial capitalization does not exist. Capitalization indicates stress. If you'd like to help me with this, please let me know.
phma
On Jan 14, 2005, at 7:19 PM, Pierre Abbat wrote:
I updated LanguageJbo.php to HEAD, as well as I could understand the code, but would like some help with these: *Date formats are rather different. There are two sets of month names in use, and two sets of weekday names, but such formats as "Friday, January 14, 2005" cannot be used in a sentence, it has to be "the 14th of January of the 2005th, which is Friday" or else just numbers.
Dates and times occur in three types: * date only (year/month/day given in some particular format) * time only (hour and seconds) * date and time together
(I don't think we actually use the day of the week for anything.)
Each is formatted by a method of the Language object (time(), date(), timeanddate()), which can be overridden in the child class for a particular language.
Usually they occur as headers (dates on Special:Recentchanges) or as part of a table (times on Special:Recentchanges, date+time on history list, etc). They may appear in a sentence only in a couple of places I think, such as "Show new changes starting from 19:43, Jan 14, 2005", though you could modify those messages to some more appropriate form if necessary.
*Initial capitalization does not exist. Capitalization indicates stress. If you'd like to help me with this, please let me know.
I added the $wgCapitalLinks option some time ago to disable forced title capitalization for languages such as lojban (though it's also gotten used on several of the Wiktionaries simply to enforce lowercase page titles for definitions). If there's anything else necessary to support this, we'll need more detail. :)
User names are still forced to capitalization to avoid introducing gratuitous incompatibilities for the future common login system.
-- brion vibber (brion @ pobox.com)
On Friday 14 January 2005 22:53, Brion Vibber wrote:
Dates and times occur in three types:
- date only (year/month/day given in some particular format)
- time only (hour and seconds)
- date and time together
(I don't think we actually use the day of the week for anything.)
Each is formatted by a method of the Language object (time(), date(), timeanddate()), which can be overridden in the child class for a particular language.
Usually they occur as headers (dates on Special:Recentchanges) or as part of a table (times on Special:Recentchanges, date+time on history list, etc). They may appear in a sentence only in a couple of places I think, such as "Show new changes starting from 19:43, Jan 14, 2005", though you could modify those messages to some more appropriate form if necessary.
Is it possible to set the date format in preferences? For different formats in different contexts, can I define a new method of the Language object?
*Initial capitalization does not exist. Capitalization indicates stress. If you'd like to help me with this, please let me know.
I added the $wgCapitalLinks option some time ago to disable forced title capitalization for languages such as lojban (though it's also gotten used on several of the Wiktionaries simply to enforce lowercase page titles for definitions). If there's anything else necessary to support this, we'll need more detail. :)
That should work, but I don't see wgCapitalLinks in the files I have, which are: Language.php LanguageDe.php LanguageJbo.php Language1.3.php LanguageFr.php LanguageJbo1.3.php So I tried to do it by modifying ucfirst and lcfirst.
Can you install the language file so that I can see what it's doing?
phma
On Jan 14, 2005, at 8:08 PM, Pierre Abbat wrote:
Is it possible to set the date format in preferences?
In limited ways, this is somewhat hardcoded for the English situation and is not used otherwise.
For different formats in different contexts, can I define a new method of the Language object?
No, there is no provision for this.
That should work, but I don't see wgCapitalLinks in the files I have, which are: Language.php LanguageDe.php LanguageJbo.php Language1.3.php LanguageFr.php LanguageJbo1.3.php
It wouldn't be in any of those, as it's a site configuration setting and goes into LocalSettings.php
So I tried to do it by modifying ucfirst and lcfirst.
That would break everything that tries to do upper and lowercasing, so you might not want to do that.
Can you install the language file so that I can see what it's doing?
Well, not until it's fixed...
-- brion vibber (brion @ pobox.com)
On Saturday 15 January 2005 00:33, Brion Vibber wrote:
On Jan 14, 2005, at 8:08 PM, Pierre Abbat wrote:
That should work, but I don't see wgCapitalLinks in the files I have, which are: Language.php LanguageDe.php LanguageJbo.php Language1.3.php LanguageFr.php LanguageJbo1.3.php
It wouldn't be in any of those, as it's a site configuration setting and goes into LocalSettings.php
So I tried to do it by modifying ucfirst and lcfirst.
That would break everything that tries to do upper and lowercasing, so you might not want to do that.
Okay, I deleted that.
Can you install the language file so that I can see what it's doing?
Well, not until it's fixed...
What else needs to be fixed?
phma
wikitech-l@lists.wikimedia.org