Loading...
 
Skip to main content

Features / Usability


problem - maybe a bug

Whenever I do translate an article in a foreign language in my case from german (main language) to english the article does not appear in the article section (list), but in the wikipages (list).

Depending on the process of creation an error is shown at the bottom:

PHP (5.2.14) ERROR (E_WARNING):
File: tiki-editpage.php
Line: 1212
Type: implode() function.implode: Invalid arguments passed


Beneath you find the code snippet (nothing changed so far).

With kind regads, Gasti Gillen
and thanks a lot in advance for any hints + help in advance.



$smarty->assign('section',$section);

include_once ('tiki-section_options.php');

if ($prefs'feature_freetags' == 'y') {

include_once ('freetag_list.php');

// if given in the request, set the freetag list (used for preview mode, when coming back from zoom mode, ...)

if ( isset($_REQUEST'freetag_string') ) {

$smarty->assign('taglist', $_REQUEST'freetag_string');

} elseif( $editlib->isNewTranslationMode() ) {

$tags = $freetaglib->get_all_tags_on_object_for_language($editlib->sourcePageName, 'wiki page', $pageLang);

$smarty->assign( 'taglist', implode( ' ', $tags ) );

}

}

Are you sure you are using the correct method to have translations of articles? In my test, I made two articles, one of them having English specified as its language, and the other one French specified. At a url like tiki-edit_translation.php?id=1&type=article (which I reached after clicking the translation icon, I indicated that one was the translation of the other. This apparently works correctly. Depending on which language I select as a site visitor, one or the other appears at tiki-view_articles.php. No new wiki pages appear, because wiki editing is not involved at all.

-- Gary


What Tiki version are you using? I recall seeing some issues with article translations in older 5.x. It works fine in Tiki 6.x (you can see it for yourself on info.t.o.).

HTH,

- RickQuestion | My Tiki Blog | My Tiki UserPage
Need more help? Try Tiki for Dummies SmartiesQuestion: A beginner's guide and Tiki EssentialsQuestion: What all Smarties need to know about Tiki Wiki CMS Groupware.
Coming Soon: Tiki Essentials, the book, available from ))LuLu(( and Amazon.com