Index: sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-capital-p-dangit/wporg-gp-capital-p-dangit.php
===================================================================
--- sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-capital-p-dangit/wporg-gp-capital-p-dangit.php	(nonexistent)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-capital-p-dangit/wporg-gp-capital-p-dangit.php	(working copy)
@@ -0,0 +1,44 @@
+<?php
+/**
+ * Plugin name: GlotPress: capital_P_dangit()
+ * Description: Make sure "WordPress" is capitalized correctly in new translations.
+ * Version:     1.0
+ * Author:      WordPress.org
+ * Author URI:  http://wordpress.org/
+ * License:     GPLv2 or later
+ */
+
+class WPorg_GP_Capital_P_Dangit {
+
+	function __construct() {
+		add_action( 'gp_translation_saved', array( $this, 'apply_capital_P_dangit' ) );
+	}
+
+	function apply_capital_P_dangit( $translation ) {
+		foreach( range( 0, $translation->get_static( 'number_of_plural_translations' ) - 1 ) as $i ) {
+			if ( ! isset( $translation->{"translation_$i"} ) ) {
+				continue;
+			}
+
+			$translation->{"translation_$i"} = capital_P_dangit( $translation->{"translation_$i"} );
+		}
+
+		remove_action( 'gp_translation_saved', array( $this, 'apply_capital_P_dangit' ) );
+
+		$translation->save();
+
+		add_action( 'gp_translation_saved', array( $this, 'apply_capital_P_dangit' ) );
+	}
+
+}
+
+function wporg_gp_capital_P_dangit() {
+	global $wporg_gp_capital_P_dangit;
+
+	if ( ! isset( $wporg_gp_capital_P_dangit ) ) {
+		$wporg_gp_capital_P_dangit = new WPorg_GP_Capital_P_Dangit();
+	}
+
+	return $wporg_gp_capital_P_dangit;
+}
+add_action( 'plugins_loaded', 'wporg_gp_capital_P_dangit' );
