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

0 Members and 1 Guest are viewing this topic.

Offline IWS_steffen

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • Kreuzfahrtschiffe gestern und heute
Re: [MOD] Multi-Language support for any text
« Reply #90 on: September 30, 2005, 04:20:30 PM »

I'm confused..."admin category list"? what is it? in ACP? the screenshot u showed is dropdown on "regular" page...

for the categories names, u'll need search in files (mostly in includes/functions.php) for ['cat_name'] (which is only a part of a variable)
for example the full variable could look like: $cat_cache[$category_id]['cat_name'] or $cat_cache[$cat_id]['cat_name']
Quote

Hallo Matthias,

das Rätsel ist gelöst. Da habe ich doch klappt den Hinweis von V@no überlesen. D.h. ich hatte die Variable in functions.php nicht hinzugefügt.
Jetzt läuft alles bestens.  JUHU  :D

schönes WE

Steffen

Offline IWS_steffen

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • Kreuzfahrtschiffe gestern und heute
Re: [MOD] Multi-Language support for any text
« Reply #91 on: October 01, 2005, 11:25:20 PM »
Hallo

Ich benötige doch nochmal einen kleinen Tipp.

Auf einigen Seiten z.B. Startseite habe ich zusätzlich Texte in das Template geschrieben. Für dieses MOD wäre natürlich der Text in den jeweiligen Sprach main.php sinnvoller. D.h. ich habe bereits ein Beispiel  im template {lang_hompage} und in der main.php $lang['homepage'] = "test"; geschrieben. Leider reicht das nicht aus. Fehlt noch etwas in der dazugehörigen z.b. index.php???

Steffen

Offline IWS_steffen

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • Kreuzfahrtschiffe gestern und heute
Re: [MOD] Multi-Language support for any text
« Reply #92 on: October 23, 2005, 01:31:17 PM »
hallo

die Anwort auf meine Frage findet ihr hier http://www.4homepages.de/forum/index.php?topic=10150.msg49568#msg49568

Gruß Steffen

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 #93 on: November 05, 2005, 08:16:38 PM »
I just added Step 3.x for support multilanguage in date format.
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 GeneT

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: [MOD] Multi-Language support for any text (updated 05-11-2005)
« Reply #94 on: November 06, 2005, 11:31:29 AM »
Hi, thanks for adding the new step for date support.
But I am getting an error.

All files modifed, but get this:
Quote
Fatal error: Call to undefined function: multilang() in /web/www/frac/users/gene/global.php on line 251


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 #95 on: November 06, 2005, 03:35:48 PM »
Sorry, my bad, I've updated step 3, the two lines were supposed to be inserted below
Code: [Select]
include(ROOT_PATH.'includes/functions.php');
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 GeneT

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: [MOD] Multi-Language support for any text (updated 05-11-2005)
« Reply #96 on: November 06, 2005, 05:21:02 PM »
I still get this error:

Quote
Fatal error: Call to undefined function: multilang() in /web/www/frac/users/gene/global.php on line 264

It is the same, except I have moved the two lines down a few lines so their under the include(ROOT_PATH.'includes/functions.php');

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 #97 on: November 06, 2005, 07:04:19 PM »
Then you missed a step or something
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 GeneT

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: [MOD] Multi-Language support for any text (updated 05-11-2005)
« Reply #98 on: November 06, 2005, 07:39:57 PM »
Now we're talking!
I had to replace my two files (global.php and includes/functions.php) with the original file and then edit.
For some reason it worked. Thanks for everything V@no, honestly much appreciated.

Gene

Offline Pop_Black

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: [MOD] Multi-Language support for any text (updated 05-11-2005)
« Reply #99 on: November 06, 2005, 08:12:22 PM »
Hi v@no,
My cat_name in sitemap is translated :lol: but not translated in index :cry:
please help me :wink:

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 #100 on: November 06, 2005, 08:21:29 PM »
that's when you start reading through the replys and re-read the instructions on how to use this mod ;)
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 Matthias70

  • Full Member
  • ***
  • Posts: 199
    • View Profile
    • Bildergalerie
Re: [MOD] Multi-Language support for any text (updated 05-11-2005)
« Reply #101 on: November 13, 2005, 11:01:05 AM »
Is multilang for {site_name} possible?
When yes, where can I find the code where the "site_name" is generated ???

Matthias

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 #102 on: November 13, 2005, 04:48:39 PM »
in includes/page_header.php
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 Matthias70

  • Full Member
  • ***
  • Posts: 199
    • View Profile
    • Bildergalerie
Re: [MOD] Multi-Language support for any text (updated 05-11-2005)
« Reply #103 on: November 13, 2005, 05:27:15 PM »
Thank you V@no

Offline MadeInUSSR

  • Newbie
  • *
  • Posts: 36
    • View Profile
Re: [MOD] Multi-Language support for any text (updated 05-11-2005)
« Reply #104 on: March 09, 2006, 06:48:43 AM »
please help me I am not so good at PHP.... somehow I changed function.php,categories.php,member.php,details.php files and now multilang for categories works well..... but I don't know WHAT and WHERE to change php-code ,I need  category_dropdown_selfjump and member.php(this file I need to be worked when user added his image successfully and where clickstrim there must name of Category to be in chosen language) to be worked with multilang for categories

На русском... каким-то образом мне удалось изменить function.php,categories.php,member.php,details.php файлы, теперь категории стали многоязычными. вообщем все работает нормально за исключением выпадающего меню категорий и файл member.php (после удачного добавления фотографии там должно написано быть название категории на установленным пользователем языке в clickstrim ) подскажите что нужно изменить и что добавить... я не владею хорошо пхп... и мне сложно разобраться.. спасибо заранее
**MadeInUSSR**