Author Topic: Salut j'ai un problemes avec le multilangue  (Read 27214 times)

0 Members and 1 Guest are viewing this topic.

orb42

  • Guest
Re: Salut j'ai un problemes avec le multilangue
« Reply #15 on: August 03, 2007, 11:54:21 PM »
 ok  :D thank you thunderstrike , et merci manurom .
Je n'ai plus d'erreur depuis l'install ds 2 mods.
I've installed both mods and I got another problem:
As my website is by defaut in french language (second language is english), when I click the english image to change, the site interface (i.e : login, logout, welcome, top images...) is still in french.  I must put english by defaut in ACp so that when I clik to translate in french it works..
How can I resolve this?

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Salut j'ai un problemes avec le multilangue
« Reply #16 on: August 04, 2007, 12:32:51 AM »
This how works:

[english]My english text[/english] (don recall [/english] but ... try - bean while).
[french]Mon texte français[/french].

8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

orb42

  • Guest
Re: Salut j'ai un problemes avec le multilangue
« Reply #17 on: August 04, 2007, 12:36:02 AM »
ok I found:  in includes/functions.php,    changed
Code: [Select]
(preg_match("/english/i",$folder)to
Code: [Select]
(preg_match("/french/i",$folder)

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Salut j'ai un problemes avec le multilangue
« Reply #18 on: August 04, 2007, 12:36:52 AM »
Ahh ! yes - that you mean - good you find. :)
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

orb42

  • Guest
Re: Salut j'ai un problemes avec le multilangue
« Reply #19 on: August 04, 2007, 07:03:06 PM »
HI  :D,
I got an error message when cliking on EDITING an image (to traduce in english):

Parse error: syntax error, unexpected '[', expecting ']' in /mnt/xxx/admin/images.php on line 1652

the first line is 1652:
Code: [Select]
echo "<td><a href=\"".$site_sess->url(ROOT_PATH."categories.php?".URL_CAT_ID."=".$image_row['cat_id'])."\" target=\"_blank\">.multilang(htmlspecialchars($cat_cache[$image_row['cat_id'])['cat_name']))." (ID: <b>".$image_row['cat_id']."</b>)</a></td>\n";
      $show_user_name = htmlspecialchars($image_row[$user_table_fields['user_name']]);
      if ($image_row['user_id'] != GUEST && empty($url_show_profile)) {
        $show_user_name = "<a href=\"".$site_sess->url(ROOT_PATH."member.php?action=showprofile&".URL_USER_ID."=".$image_row['user_id'])."\" target=\"_blank\">$show_user_name</a>";

I dont know what's wrong with it..?

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Salut j'ai un problemes avec le multilangue
« Reply #20 on: August 04, 2007, 07:06:58 PM »
Replace:

Quote
echo "<td><a href=\"".$site_sess->url(ROOT_PATH."categories.php?".URL_CAT_ID."=".$image_row['cat_id'])."\" target=\"_blank\">" . multilang(format_text($cat_cache[$image_row['cat_id']['cat_name']], 2)) . " (ID: <b>".$image_row['cat_id']."</b>)</a></td>\n";

Should work. ;)
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

orb42

  • Guest
Re: Salut j'ai un problemes avec le multilangue
« Reply #21 on: August 04, 2007, 07:26:32 PM »
really good  :)  it works now. No more problem. Thank you!