[wp-trac] Re: [WordPress Trac] #3976: Support for Full Blog Translation

WordPress Trac wp-trac at lists.automattic.com
Wed Dec 19 07:37:53 GMT 2007


#3976: Support for Full Blog Translation
--------------------------------------+-------------------------------------
 Reporter:  harkos                    |        Owner:  harkos  
     Type:  enhancement               |       Status:  reopened
 Priority:  normal                    |    Milestone:  2.4     
Component:  General                   |      Version:  2.1.2   
 Severity:  normal                    |   Resolution:          
 Keywords:  translation dev-feedback  |  
--------------------------------------+-------------------------------------
Old description:

> I have spent the last week working between two WP translation plugins to
> get them working together and extend their funcionalities. From this
> work, I learned that in order to translate every bit of desired text, a
> few changes had to be made, specially access to other parts where there
> were no filters.
>
> So, I added the following filters:
> + translate (called from __l())
> + wp_get_archives (called from wp_get_archives())
> + before_sanitize_title (called from sanitize_title())
>
> And the following functions:
> + __l()
> + __le()
>
> Mostly, they speak for themselves, but all have important roles to allow
> the creation of fully multilanguage themes and blogs. I hope this helps
> many people like me.

New description:

 I have spent the last week working between two WP translation plugins to
 get them working together and extend their funcionalities. From this work,
 I learned that in order to translate every bit of desired text, a few
 changes had to be made, specially access to other parts where there were
 no filters.

 So, I added the following filters:
  * `translate` (called from `__l()`)
  * `wp_get_archives` (called from `wp_get_archives()`)
  * `before_sanitize_title` (called from `sanitize_title()`)

 And the following functions:
  * `__l()`
  * `__le()`

 Mostly, they speak for themselves, but all have important roles to allow
 the creation of fully multilanguage themes and blogs. I hope this helps
 many people like me.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/3976#comment:18>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list