Translating WordPress (German)

Translating WordPress (German)

Small set of opening slides for a workshop at WordCamp Hamburg 2014 (#wchh14).

8a50eb4ed9bb4354d6df8e881befe64e?s=128

Caspar Hübinger

June 15, 2014
Tweet

Transcript

  1. WordPress
 übersetzen Core · Plugins · Themes

  2. i18n internationalization l10n localization

  3. „übersetzen“ en_US de_DE

  4. muss komplett ankommen. ! …nicht in Einzelteilen. Die Botschaft HANDLE

    WITH CARE!
  5. $textdomain Message-level Translation $msg

  6. __()
 _e() $textdomain $msg

  7. __() _e() _x() _ex() _n() esc_html__() esc_html_e() esc_html_x() esc_attr__() esc_attr_e()

    esc_attr_x() $textdomain $msg
  8. .pot – Portable Object Template .po – Portable Object .mo

    – Machine Object $textdomain $msg
  9. […]-de_DE.mo […]-de_DE.po $textdomain $msg

  10. __( $msg, $textdomain ); __( 'WordPress' ); __( 'Twenty Fourteen',

    'twentyfourteen' ); __( 'Robots', 'wpseo' ); $textdomain
  11. load_textdomain() ! load_plugin_textdomain() ! load_theme_textdomain() ! load_child_theme_textdomain() $textdomain

  12. Workshop! $textdomain („interaktiv“, war lustig!)

  13. None
  14. [en] wceu2013.ottopress.com [en] wp.me/pllYY-8bU (Video) ! [en] translate.wordpress.org [en] make.wordpress.org/polyglots

    [de] de.wordpress.org
 [de] de.forums.wordpress.org/forum/ wordpress-deutschland [de] teamwpde.wordpress.com
  15. Danke!

  16. @glueckpress glueckpress.com
 marketpress.com inpsyde.com Caspar Hübinger