[wp-polyglots] gettext default theme

Ryan Boren ryan at boren.nu
Mon Feb 28 03:49:27 GMT 2005


On Sun, 2005-02-27 at 18:00 -0800, Morgan Doocy wrote:
>- __()'ized all PHP date() formats in calls to the_time(), 
>get_the_time(), comment_date() and comment_time(), and added default 
>formats where they were not specified, so that date & time formats can 
>be gettexted. For example, the default post date format on the archive 
>pages is 'l, F jS, Y', which becomes 'Sunday, February 27th, 2005' in 
>English. However, the Danish translation, for example, would want to 
>change this to 'l, j. F Y', which becomes 'søndag, 27. februar 2005'. 
>Chinese and Japanese can even use something like 'Y年n月j日', which then 
>becomes '2005年2月27日'.

Good idea.  I've done the same with the date formats in
upgrade-schema.php.  This allows the default date formats to be set up
appropriately for the locale.

I committed the theme pot file to
http://svn.automattic.com/wordpress-i18n/pot/trunk/theme.pot

The theme pot creation script is
http://svn.automattic.com/wordpress-i18n/tools/trunk/theme-gettext

Ryan




More information about the wp-polyglots mailing list