Permalink
Browse files

Update inline docs. Move function over to deprecated.php.

git-svn-id: http://svn.locallylost.com/themes/hybrid-core/trunk@959 dba0f204-706d-4bc1-bc29-8b92e0485636
  • Loading branch information...
1 parent 289a7ed commit e3e622ad5022291e53805743f35769257aebfa90 greenshady committed Dec 14, 2011
Showing with 12 additions and 11 deletions.
  1. +9 −0 functions/deprecated.php
  2. +3 −11 functions/i18n.php
View
@@ -417,6 +417,15 @@ function hybrid_settings_page_contextual_help() {
return;
}
+/**
+ * @since 0.9.0
+ * @deprecated 1.3.0
+ */
+function hybrid_load_textdomain( $mofile, $domain ) {
+ _deprecated_function( __FUNCTION__, '1.3.0', 'hybrid_load_textdomain_mofile' );
+ return hybrid_load_textdomain_mofile( $mofile, $domain );
+}
+
/* === Removed Functions === */
/* Functions removed in the 0.8 branch. */
View
@@ -1,8 +1,8 @@
<?php
/**
- * The core functions file for the Hybrid framework. Functions defined here are generally
- * used across the entire framework to make various tasks faster. This file should be loaded
- * prior to any other files because its functions are needed to run the framework.
+ * Internationalization and translation functions. Because Hybrid Core is a framework made up of various
+ * extensions with different textdomains, it must filter 'gettext' so that a single translation file can
+ * handle all translations.
*
* @package HybridCore
* @subpackage Functions
@@ -100,14 +100,6 @@ function hybrid_get_child_textdomain() {
}
/**
- * @since 0.9.0
- * @deprecated 1.3.0
- */
-function hybrid_load_textdomain( $mofile, $domain ) {
- return hybrid_load_textdomain_mofile( $mofile, $domain );
-}
-
-/**
* Filters the 'load_textdomain_mofile' filter hook so that we can change the directory and file name
* of the mofile for translations. This allows child themes to have a folder called /languages with translations
* of their parent theme so that the translations aren't lost on a parent theme upgrade.

0 comments on commit e3e622a

Please sign in to comment.