summaryrefslogtreecommitdiff
path: root/bit_setup_inc.php
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2007-03-17 11:45:36 +0000
committerMax Kremmel <xing@synapse.plus.com>2007-03-17 11:45:36 +0000
commit59cc7aad4a5e4b45e56c399bdc10c728fdea34bd (patch)
tree9caa4c5ec37212c4bd7593bad9a4312f85139a8b /bit_setup_inc.php
parent4382eb944f31237387b8ec1719188475e1e00653 (diff)
downloadlanguages-59cc7aad4a5e4b45e56c399bdc10c728fdea34bd.tar.gz
languages-59cc7aad4a5e4b45e56c399bdc10c728fdea34bd.tar.bz2
languages-59cc7aad4a5e4b45e56c399bdc10c728fdea34bd.zip
some work on content translations - basics are working now. need to clean up included translation template in edit page.
Diffstat (limited to 'bit_setup_inc.php')
-rw-r--r--bit_setup_inc.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/bit_setup_inc.php b/bit_setup_inc.php
index 7c8445b..b649952 100644
--- a/bit_setup_inc.php
+++ b/bit_setup_inc.php
@@ -45,7 +45,7 @@ $gBitSmarty->assign('bitlanguage', $gBitLanguage->mLanguage);
if( !empty( $gLibertySystem ) && $gBitSystem->isFeatureActive( 'i18n_content_translation' ) ) {
require_once( LANGUAGES_PKG_PATH . 'LibertyTranslations.php' );
$gLibertySystem->registerService( LIBERTY_SERVICE_TRANSLATION, LANGUAGES_PKG_NAME, array(
- //'content_display_function' => 'translation_content_display',
+ 'content_display_function' => 'translation_content_display',
//'content_preview_function' => 'translation_content_edit',
'content_edit_function' => 'translation_content_edit',
'content_store_function' => 'translation_content_store',
@@ -53,7 +53,7 @@ if( !empty( $gLibertySystem ) && $gBitSystem->isFeatureActive( 'i18n_content_tra
//'content_list_sql_function' => 'translation_content_list',
//'content_load_sql_function' => 'translation_content_load',
'content_edit_mini_tpl' => 'bitpackage:languages/select_translations.tpl',
- //'content_icon_tpl' => 'bitpackage:languages/translate_service_icon.tpl',
+ 'content_icon_tpl' => 'bitpackage:languages/i18n_service_icons.tpl',
) );
}
@@ -66,6 +66,9 @@ if( !empty( $_POST['i18n']['translate'] ) ) {
if( @BitBase::verifyId( $_POST['i18n']['translation_id'] ) ) {
$get .= '&i18n[translation_id]='.$_POST['i18n']['translation_id'];
}
+ if( !empty( $_POST['i18n']['google'] ) ) {
+ $get .= '&i18n[google]=1';
+ }
$get .= '&i18n[from_id]='.$_POST['i18n']['from_id'];
header( 'Location: '.$_SERVER['PHP_SELF'].'?'.$get );
die;