[wp-trac] [WordPress Trac] #45425: Add a filter to the translation file location for script localisation

WordPress Trac noreply at wordpress.org
Sun Dec 16 11:19:14 UTC 2018


#45425: Add a filter to the translation file location for script localisation
-------------------------------------+-------------------------
 Reporter:  johnbillion              |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  5.0.2
Component:  I18N                     |     Version:  5.0
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-refresh  |     Focuses:  javascript
-------------------------------------+-------------------------
Changes (by ocean90):

 * keywords:  has-patch => has-patch needs-refresh


Comment:

 [attachment:"45425.diff"]

 * Let's rename `load_script_translation()` to `load_script_translations()`
 (plural).
 * Also, `load_script_textdomain_file` to `load_script_translation_file`.
 * The `@since` tags need an update
 * "textdomain" => "text domain"

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45425#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list