diff --git a/Source/MantisSourcePlugin.class.php b/Source/MantisSourcePlugin.class.php index d0d076e..ea6b5f9 100644 --- a/Source/MantisSourcePlugin.class.php +++ b/Source/MantisSourcePlugin.class.php @@ -70,8 +70,8 @@ */ class SourceGenericPlugin extends MantisSourcePlugin { function register() { - $this->name = lang_get( 'plugin_Source_title' ); - $this->version = lang_get( 'plugin_Source_version' ); + $this->name = plugin_lang_get( 'title', 'Source' ); + $this->version = plugin_lang_get( 'version', 'Source' ); } function get_types( $p_event ) { diff --git a/Source/Source.php b/Source/Source.php index 066294c..73ba38b 100644 --- a/Source/Source.php +++ b/Source/Source.php @@ -19,10 +19,10 @@ */ class SourcePlugin extends MantisPlugin { function register() { - $this->name = lang_get( 'plugin_Source_title' ); - $this->description = lang_get( 'plugin_Source_description' ); + $this->name = plugin_lang_get( 'title' ); + $this->description = plugin_lang_get( 'description' ); - $this->version = lang_get( 'plugin_Source_version' ); + $this->version = plugin_lang_get( 'version' ); $this->requires = array( 'MantisCore' => '1.2.0', ); diff --git a/Source/SourceIntegration.php b/Source/SourceIntegration.php index 77495a7..80426fc 100644 --- a/Source/SourceIntegration.php +++ b/Source/SourceIntegration.php @@ -13,8 +13,8 @@ final class SourceIntegrationPlugin extends MantisPlugin { function register() { - $this->name = lang_get( 'plugin_Source_title' ); - $this->version = lang_get( 'plugin_Source_version' ); + $this->name = plugin_lang_get( 'title', 'Source' ); + $this->version = plugin_lang_get( 'version', 'Source' ); } function hooks() { @@ -28,7 +28,7 @@ function menu_main() { $t_page = plugin_page( 'index', false, 'Source' ); - $t_repos = lang_get( 'plugin_Source_repositories' ); + $t_repos = plugin_lang_get( 'repositories', 'Source' ); return "$t_repos"; } @@ -50,7 +50,7 @@ - + > files as $t_file ) { echo ( $t_first ? '' : '' ); ?> @@ -94,7 +94,7 @@
-
author ) ?> -
timestamp ) ?> -
- +
author ) ?> +
timestamp ) ?> +
+
- - + +
- +
diff --git a/Source/pages/checkin.php b/Source/pages/checkin.php index ba0764e..5f97113 100644 --- a/Source/pages/checkin.php +++ b/Source/pages/checkin.php @@ -60,7 +60,7 @@ # Not validated by this point gets the boot! if ( !$t_valid ) { - die( lang_get( 'plugin_Source_invalid_checkin_url' ) ); + die( plugin_lang_get( 'invalid_checkin_url' ) ); } # Let plugins try to intepret POST data before we do @@ -80,7 +80,7 @@ # Repo not found if ( is_null( $t_repo ) ) { - die( lang_get( 'plugin_Source_invalid_repo' ) ); + die( plugin_lang_get( 'invalid_repo' ) ); } # Let the plugins handle commit data @@ -88,7 +88,7 @@ # Changesets couldn't be loaded apparently if ( is_null( $t_changesets ) ) { - die( lang_get( 'plugin_Source_invalid_changeset' ) ); + die( plugin_lang_get( 'invalid_changeset' ) ); } # Save all changesets found by the check-in diff --git a/Source/pages/index.php b/Source/pages/index.php index 02bbde1..4c1abe5 100644 --- a/Source/pages/index.php +++ b/Source/pages/index.php @@ -17,7 +17,7 @@ $t_types = SourceTypes(); $t_repos = SourceRepo::load_all(); -html_page_top1( lang_get( 'plugin_Source_title' ) ); +html_page_top1( plugin_lang_get( 'title' ) ); html_page_top2(); ?> @@ -25,16 +25,16 @@ - + - - - - - - + + + + + + @@ -67,19 +67,19 @@
name ) ) { - print_bracket_link( plugin_page( 'repo_delete' ) . '&id=' . $t_repo->id, lang_get( 'plugin_Source_delete' ) ); + print_bracket_link( plugin_page( 'repo_delete' ) . '&id=' . $t_repo->id, plugin_lang_get( 'delete' ) ); } - print_bracket_link( plugin_page( 'repo_manage_page' ) . '&id=' . $t_repo->id, lang_get( 'plugin_Source_manage' ) ); + print_bracket_link( plugin_page( 'repo_manage_page' ) . '&id=' . $t_repo->id, plugin_lang_get( 'manage' ) ); } ?>
- +> - +> - + - +
diff --git a/Source/pages/manage_config_page.php b/Source/pages/manage_config_page.php index 3e8c48f..64dc530 100644 --- a/Source/pages/manage_config_page.php +++ b/Source/pages/manage_config_page.php @@ -14,7 +14,7 @@ auth_reauthenticate(); access_ensure_global_level( plugin_config_get( 'manage_threshold' ) ); -html_page_top1( lang_get( 'plugin_Source_title' ) ); +html_page_top1( plugin_lang_get( 'title' ) ); html_page_top2(); print_manage_menu(); @@ -28,46 +28,46 @@ - +> - +> - +> - +> - +> - +> - +
-
+
-
+
>