[wp-trac] [WordPress Trac] #41256: Core hardcoded translations

WordPress Trac noreply at wordpress.org
Thu Jul 6 08:51:43 UTC 2017


#41256: Core hardcoded translations
-------------------------------------------------+-------------------------
 Reporter:  sisalik                              |      Owner:
     Type:  feature request                      |     Status:  new
 Priority:  normal                               |  Milestone:  Awaiting
Component:  General                              |  Review
 Severity:  normal                               |    Version:
  Focuses:  accessibility, administration,       |   Keywords:
  template, performance                          |
-------------------------------------------------+-------------------------
 There is so many hardcoded words/texts ("Search", "Search results for",
 "Tag", "Tags", "Category", "Categories", "Pages" etc) in Wordpress
 templates (Pages, Posts, General). Instead of hardcoding, they should be
 in a language table/file. Wordpress needs a function that checks for a
 metatag "hreflang" or for a language tag in url (default "en" or empty).
 If any other language tag is found, then use a translation from the table,
 and if doesn't exist, then use default (en).
 This way it's easier to use other language translations or any translation
 plugins and add own languages. Else every Wordpress update might overwrite
 these hardcoded translations, that someone has written especially into
 code instead of English.
 Also if there would be an additional admin page to add languages to the
 table/file, this would make things much more easier.

 This is not a translation plugin! It is needed for Wordpress core, instead
 of template-hardcoded English.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41256>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list