Author Topic: [MOD] Multi-Language support for any text (updated 05-11-2005)  (Read 215660 times)

0 Members and 1 Guest are viewing this topic.

Offline cronk005

  • Newbie
  • *
  • Posts: 44
    • View Profile
    • Travelingtheworldaround
Re: [MOD] Multi-Language support for any text (updated 05-11-2005)
« Reply #135 on: March 04, 2007, 02:59:55 AM »
This is a great MOD and I have really enjoyed using it. I have over the past few months noticed (maybe I didn't pay too much attention earlier if this was a problem) but when I have multiple languages: ie: English, Nederlands, German if I do the tags I result this:

example: [english]Germany Munich Palaces[/][deutsch]Deutschland München Schloß[/][nederlands]Duitsland München Palaces[/]
         when language selected:   , Germany, Munich, Palaces

But if I add a space after the language tag I get
example: [english] Germany Munich Palaces[/][deutsch] Deutschland München Schloß[/][nederlands] Duitsland München Palaces[/]
         when language selected:   , Germany, Munich, Palaces.

Also, the URL for the last Keyword comes up with some weird scripting at the end of it, often-times not allowing the keyword to work properly. This only happens on the last keyword in the list and when using a multiple language. (What it looks like its doing is taking a little part of the next language tag and additing it into the url...

For example:
http://galleries.travelingtheworldaround.com/search.php?search_keywords=Porcelain%5B%2F%5D   [in just english]
http://galleries.travelingtheworldaround.com/search.php?search_keywords=Porcelain%5B%2F%5D&l=nederlands [what it looks like with Nederlands language selected
http://galleries.travelingtheworldaround.com/search.php?search_keywords=Porcelain&l=nederlands [what it should look like]

My question is, how can I get it so that I do not have to put a space after the language code, as I do not like the [comma ,] being the first character of the keyword feature. Second, what could have happened which would have caused these weird %5B%2F%5D to be added to the keyword search function...

Your help, as always, most appreciated.

Offline darvid

  • Jr. Member
  • **
  • Posts: 96
    • View Profile
    • KNOWTEBOOK.COM - Community for webdeveloper
Re: [MOD] Multi-Language support for any text (updated 05-11-2005)
« Reply #136 on: March 25, 2007, 05:18:22 PM »
which version of 4images are u using?

does somebody has tested it on 4images 1.7.4?
/* KNOWTEBOOK - BoostYourself community for webdeveloper
/* http://www.knowtebook.com

Integration von Wordpress Blog, PHPBB Forum und 4Images Bildergalerie:
http://www.sebastianscheuer.de/aktuell/integration-von-wordpress-blog-phpbb-forum-und-4images-bildergallerie/
DEMO: http://www.pilotenbilder.de/

Offline Alessio

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
    • Webax.it [Alessio's photogallery]
Re: [MOD] Multi-Language support for any text (updated 05-11-2005)
« Reply #137 on: April 04, 2007, 08:53:58 PM »
I have the same problem of Cronk, moreover I would like to know how to translate the ALT TAGS and the RSS.
I'm using 4images 1.7.4

« Last Edit: April 05, 2007, 08:58:56 AM by Alessio »
Alessio
my homepage: http://www.webax.it

Offline rockquick

  • Pre-Newbie
  • Posts: 7
    • View Profile
Need help with multilanguage setting
« Reply #138 on: July 03, 2007, 02:32:16 PM »
Hello, I just found the 4images software, and it pretty cool one .. .I wanted to setit in french and english at the same time I did follow the document I found it in this forum the 1st one for the navigation it works pretty good but for the once of categories (http://www.4homepages.de/forum/index.php?topic=6749.0 )  it didnt work for me I did follwed step by step but nothing...
So please can you explain me with a simple way how to transtate all the website (navigration,  categories ... ) when I change the language... from english to french ...
here is my website http://ecards.rockquick.com
by the way I use the version 1.7.4

Thanks for your help it is appreciated 



Offline orb4

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: [MOD] Multi-Language support for any text (updated 05-11-2005)
« Reply #139 on: August 09, 2007, 08:04:03 AM »
I ve installed [MOD] Dynamic Page Title.
This mod makes appears on the title bar 's pages the paths,like this:
SITE NAME \ CATEGORY NAME \ IMAGE NAME
 
BUT for me "Paths" are appearing exactly like this for me with "[...]" language translation:

SITE NAME \ [french]CATEGORY NAME [english]CATEGORY NAME \ [french]IMAGE NAME [english]IMAGE NAME

Hmmm...is there a way to exclude this 'function' multilang(...) from appearing on header.html???

Offline cronk005

  • Newbie
  • *
  • Posts: 44
    • View Profile
    • Travelingtheworldaround
Re: [MOD] Multi-Language support for any text (updated 05-11-2005)
« Reply #140 on: August 09, 2007, 01:05:03 PM »
Hi There--

I use version 1.7.2 and when I installed this into my site (which took a lot of trial and error), it came to my using a [/language] tag after each language and before the next language. Once I did this it worked well.....

[english]English Text[/english] [nederlands]Nederlandse tekst[/nederlands]

If this doesn't work, it may be because you forgot to put in a multilang() tag a long the way. They are easy to miss... ;-)

Offline KamelN

  • Newbie
  • *
  • Posts: 23
    • View Profile
problem with the [MOD] Multi-Language version 1.7.6
« Reply #141 on: April 15, 2008, 12:40:03 AM »
   
Hi,
I just istalleé The [MOD] Multi-Language support for any text runs on 4images 1.7.4 is very good script but I have some problems with my multilang Crying version 1.7.6 or Very sad, :cry:
Is there qq svp who can help me I would get my site in English, French and Arabic if posible Wink. :wink:

Thank you in advance ...

Offline KamelN

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: problem with the [MOD] Multi-Language version 1.7.6
« Reply #142 on: April 20, 2008, 10:32:29 PM »
up   :(

Offline egyptandy

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: [MOD] Multi-Language support for any text (updated 05-11-2005)
« Reply #143 on: April 18, 2009, 04:38:53 PM »
Just one short question before installing in version 1.7.6.
Will this also show all category descriptions (not only the names) in the different languages?
I assume yes, but I am not really sure. I will use English and German.
Thanks for your information.
Andy

Offline mediteran13

  • Newbie
  • *
  • Posts: 10
  • Enjoy it!
    • View Profile
    • Life as it should be!
Re: [MOD] Multi-Language support for any text (updated 05-11-2005)
« Reply #144 on: April 20, 2009, 03:20:41 AM »
Hi Andy,

yes, you can apply it o the category descriptions as well.
Vano wrote in his opening post of this thread:
"Finaly u can add multilanguage support not only for the interface but also for any text, …"

I must concede that I didn't use this MOD until now, but will try it soon…

Btw, are you Andy from Boxers Bar? If yes, we can exchange our knowledge
about 4images in the near future personally. I'll come to Gouna next time
on May 2nd and stay permanently… And we won't be the only users of 4images there…
-----
best rgds
Ralf

Offline egyptandy

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: [MOD] Multi-Language support for any text (updated 05-11-2005)
« Reply #145 on: May 10, 2009, 04:04:32 PM »
any function calls must have opening "(" and closing ")" parenthesises, you must be missing the closing one.

I have installed this mod in Version 1.7.6.
I have changed the global.php, the categories.php and the functions.php
But now the site does not open anymore and I get the following message:

Parse error: syntax error, unexpected T_STRING, expecting ')' in /usr/export/www/vhosts/funnetwork/hosting/schrieber/includes/functions.php on line 1197

The relevant code in the functions.php there is:
 $site_template->register_vars(array(
      "cat_id" => $category_id,
      "cat_name" => format_text multilang($cat_cache[$category_id]['cat_name']), 2),
      "cat_description" => format_text multilang($cat_cache[$category_id]['cat_description']), 1),
I do not see any mistake.
Any advise?

The code in the categories.php is:
$site_template->register_vars(array(
  "categories" => get_categories($cat_id),
  "cat_name" => format_text  multilang($cat_cache[$cat_id]['cat_name']), 2),
  "cat_description" => format_text  multilang($cat_cache[$cat_id]['cat_description']), 1, 0, 1),

Based on all comments here, I don't see a mistake.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Multi-Language support for any text (updated 05-11-2005)
« Reply #146 on: May 10, 2009, 09:13:30 PM »
You are missing ( in:
format_text(multilang(
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline egyptandy

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: [MOD] Multi-Language support for any text (updated 05-11-2005)
« Reply #147 on: May 11, 2009, 09:10:13 AM »
Dear V@no, thanks for your assistance, but I am still struggeling.

You are missing ( in:
format_text(multilang(

I did these changes in functions.php and in categories.php but still have a problem.
The error message is now the following:
Parse error: syntax error, unexpected ';' in /usr/export/www/vhosts/funnetwork/hosting/schrieber/includes/functions.php on line 1253
Line 1253 says:
 $path = "<a href=\"".$site_sess->url($cat_url)."\" class=\"clickstream\">".format_text(multilang($cat_cache[$cat_id]['cat_name'], 2)."</a>";

next line is only: }

When I delete the ; in line 1253 the error message tells my that the following } is wrong and so on.
     

Offline egyptandy

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: [MOD] Multi-Language support for any text (updated 05-11-2005)
« Reply #148 on: May 11, 2009, 11:13:27 AM »
Hi V@no,
in the meantime the error message for line 1253 disappears. Now i have a new one for line 1285:

Parse error: syntax error, unexpected T_VARIABLE in /usr/export/www/vhosts/funnetwork/hosting/schrieber/includes/functions.php on line 1285

These are the 1284 -1289 code lines, which look correct to me:

 if ($depth > 1) {
        $category_list .= ">".str_repeat("--", $depth - 1)." ".format_text(multilang($cat_cache $category_id]['cat_name']), 2)."</option>\n";
      }
      else {
        $category_list .= ">".format_text(multilang($cat_cache [$category_id]['cat_name']), 2)."</option>\n";
      }

Any idea about the mistake?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Multi-Language support for any text (updated 05-11-2005)
« Reply #149 on: May 11, 2009, 03:15:58 PM »
For some reason you are having problem with the brackets..allergy?
$category_list .= ">".str_repeat("--", $depth - 1)." ".format_text(multilang($cat_cache[$category_id]['cat_name']), 2)."</option>\n";


as of line 1253 again missing bracket:
$path = "<a href=\"".$site_sess->url($cat_url)."\" class=\"clickstream\">".format_text(multilang($cat_cache[$cat_id]['cat_name']), 2)."</a>";
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)