Edit Record problem

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
canuck
Posts: 39
Joined: Thu Jul 08, 2004 11:58 am

Edit Record problem

Post by canuck »

Hi,
I'm getting

Code: Select all

Notice: Undefined index: ad_entry_allowComments in ./record.edit.php on line 145
everytime I edit a question. :?
Thorsten
Posts: 15742
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

where was a small bug inside the portuguese and russian language file. Do you use one of these?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
canuck
Posts: 39
Joined: Thu Jul 08, 2004 11:58 am

Post by canuck »

Hi,

Yes, I was testing the pt translation.
There are still some untranslated phrases, specially in the admin section.

By the way, there could be some fixes on the translation file, if your pt translator doesn't mind:

Where it is now

Code: Select all

Line 66  $PMF_LANG["msgYouCan"] = "Podia ";
     70 $PMF_LANG["msgCommentHeader"] = "Comment this record";
    121 $PMF_LANG["msgHelpText"] = "<p>The FAQ (<strong>F</strong>requently <strong>A</strong>sked <strong>Q</strong>uestions) is structered quite simple. You could either search the <strong><a href=\"".$_SERVER["PHP_SELF"]."?sid=".isset($_GET["sid"])."&action=show\">categories</a></strong> or let the <strong><a href=\"".$_SERVER["PHP_SELF"]."?sid=".isset($_GET["sid"])."&action=search\">FAQ search engine</a></strong> search for keywords.</p>";
    545 $PMF_LANG["err_bannedIP"] = "Your IP is banned.";
    546 $PMF_LANG["err_SaveQuestion"] = "Required fields are <strong>your Name</strong>, <strong>your email address</strong> and <strong>your question</strong>!<br /><br /><a href=\"javascript:history.back();\">one page back</a><br /><br />\n";
    549 $PMF_LANG["ad_entry_fontcolor"] = "Font color: ";
    550 $PMF_LANG["ad_entry_fontsize"] = "Font size: ";
    573 $PMF_LANG["ad_categ_new_main_cat"] = "as new main category";
    574 $PMF_LANG["ad_categ_paste_error"] = "Moving this category isn't possible.";
    575 $PMF_LANG["ad_categ_move"] = "move category";
    576 $PMF_LANG["ad_categ_lang"] = "Language";
    577 $PMF_LANG["ad_categ_desc"] = "Description";
    578 $PMF_LANG["ad_categ_change"] = "Change with";
    580 $PMF_LANG["lostPassword"] = "Password forgotten? Click here.";
    581 $PMF_LANG["lostpwd_err_1"] = "Error: Username and e-mail adress not found.";
    582 $PMF_LANG["lostpwd_err_2"] = "Error: Wrong entries!";
    583 $PMF_LANG["lostpwd_text_1"] = "Thank you for requesting your account information.";
    584 $PMF_LANG["lostpwd_text_2"] = "Please set a new personal password in the admin section of your FAQ.";
    585 $PMF_LANG["lostpwd_mail_okay"] = "E-Mail was sent.";
    587 $PMF_LANG["ad_xmlrpc_button"] = "Get latest phpMyFAQ version number by web service";
    588 $PMF_LANG["ad_xmlrpc_latest"] = "Latest version available on";
should become

Code: Select all

Line 66  $PMF_LANG["msgYouCan"] = "Pode ";
     70 $PMF_LANG["msgCommentHeader"] = "Comentar este registo";
    121 $PMF_LANG["msgHelpText"] = "<p>As FAQ (<strong>F</strong>requently <strong>A</strong>sked <strong>Q</strong>uestions em ingl&ecirc;s) tem uma estrutura bastante simples. Pode procurar nas <strong><a href=\"".$_SERVER["PHP_SELF"]."?sid=".isset($_GET["sid"])."&action=show\">categorias</a></strong> ou procure no <strong><a href=\"".$_SERVER["PHP_SELF"]."?sid=".isset($_GET["sid"])."&action=search\">motor de busca das FAQ</a></strong>.</p>";
    545 $PMF_LANG["err_bannedIP"] = "O seu IP est&aacute; banido.";
    546 $PMF_LANG["err_SaveQuestion"] = "Campos obrigat&oacute;rios: <strong>Nome</strong>, <strong>email</strong> e <strong>a sua quest&atilde;o</strong>!<br /><br /><a href=\"javascript:history.back();\">voltar atr&aacute;s</a><br /><br />\n";
    549 $PMF_LANG["ad_entry_fontcolor"] = "Cor da fonte: ";
    550 $PMF_LANG["ad_entry_fontsize"] = "Tamanho da fonte: ";
    573 $PMF_LANG["ad_categ_new_main_cat"] = "como a nova categoria principal";
    574 $PMF_LANG["ad_categ_paste_error"] = "Mover esta categoria &eacute; imposs&iacute;vel.";
    575 $PMF_LANG["ad_categ_move"] = "mover categoria";
    576 $PMF_LANG["ad_categ_lang"] = "L&iacute;ngua";
    577 $PMF_LANG["ad_categ_desc"] = "Descri&ccedil;&atilde;o";
    578 $PMF_LANG["ad_categ_change"] = "Trocar com";
    580 $PMF_LANG["lostPassword"] = "Password esquecida? Clique aqui.";
    581 $PMF_LANG["lostpwd_err_1"] = "Erro: Nome de utilizador e e-mail n&atilde;o foram encontrados.";                           582 $PMF_LANG["lostpwd_err_2"] = "Erro: Entradas inv&aacute;lidas!";
    583 $PMF_LANG["lostpwd_text_1"] = "Obrigado por requerer a informa&ccedil;&atilde;o da sua conta.";
    584 $PMF_LANG["lostpwd_text_2"] = "Por favor defina uma nova password na sec&ccedil;&atilde;o de administra&ccedil;&atilde;o da FAQ.";
    585 $PMF_LANG["lostpwd_mail_okay"] = "E-Mail enviado.";
    587 $PMF_LANG["ad_xmlrpc_button"] = "Obtenha a vers&atilde;o mais recente de phpMyFAQ";
    588 $PMF_LANG["ad_xmlrpc_latest"] = "Vers&atilde;o mais recente dispon&iacute;vel em";
I didn't translate any of the $LANG_CONF[] because they seems in a different format, I don't know if or how I should do it.

Bye.
canuck
Posts: 39
Joined: Thu Jul 08, 2004 11:58 am

Post by canuck »

Also, I found

Code: Select all

Notice: Undefined index: rightsLanguage in ./user.edit.php on line 70
in 'edit users', probably the same language error. If you tell me what was it, or give me a patch, maybe I can fix it myself and re-try.
Thorsten
Posts: 15742
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

thanks for the translation.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
canuck
Posts: 39
Joined: Thu Jul 08, 2004 11:58 am

Post by canuck »

Code: Select all

    
Line  87 $PMF_LANG["msgSearchWord"] = "Keyword";
     32 $PMF_LANG["msgOpenQuestions"] = "Quest&otilde;es abertas";

should be

Code: Select all

Line 87 $PMF_LANG["msgSearchWord"] = "Palavra-Chave";
     32 $PMF_LANG["msgOpenQuestions"] = "Quest&otilde;es em aberto";

Thorsten
Posts: 15742
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

thanks!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
canuck
Posts: 39
Joined: Thu Jul 08, 2004 11:58 am

Post by canuck »

Thorsten, in 1.4.0, you miscopied a part of my translations (I assume) into language_pt.php, making Portuguese unusable. Edit language_pt.php, and right to the end, delete the line number that appears there, and create a new line :)
Thorsten
Posts: 15742
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

oops, I fixed this.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply