iDEV Forums

Please login or register.

Login with username, password and session length
Advanced search  

News:

IDEVSPOT COMMUNITY FORUMS. -----( ( ( NOT FOR OFFICIAL TECH SUPPORT ) ) )-----

Pages: [1] 2

Author Topic: Language Translation  (Read 2322 times)

0 Members and 1 Guest are viewing this topic.

Infinitus 8

  • Jr. Member
  • **
  • Gender: Male
  • Posts: 57
    • View Profile
    • WWW
Language Translation
« on: January 09, 2010, 03:27:47 PM »
    Hello,
    Questions about translation:

    1 - Do I need to translate page by page manually?
    2 - Can I use BizDirectory in 2 or more languages connected to 1 database?
    3 - If I have to translate page by page, can I have a list of this files?

    Suggestion:
    Hey Arron, if you create a system to allow user to change the language, I can contribute with Brazilian Portuguese.

    Thank you all
« Last Edit: January 09, 2010, 03:29:50 PM by Infinitus 8 »
Logged

arron

  • iDevSpot
  • Administrator
  • Hero Member
  • *****
  • Gender: Male
  • Posts: 1202
    • View Profile
    • WWW
Re: Language Translation
« Reply #1 on: January 11, 2010, 11:58:41 PM »
1) Yes
2) Two installations could be preformed, that use the same database.

Logged

Join our Facebook Fan Page to receive special offers & update information : http://www.facebook.com/pages/iDevSpot/157097554841

Infinitus 8

  • Jr. Member
  • **
  • Gender: Male
  • Posts: 57
    • View Profile
    • WWW
Re: Language Translation
« Reply #2 on: February 06, 2010, 11:34:35 AM »
2) Two installations could be preformed, that use the same database.

Do you have some docs explaining how to do the installations in the same database?
About language translation, I found that multi-lingual versions of DigiVendorPro 1.06 is on the way, are you planning the same for BizDirectory ?
I can help translating to Brazilian Portuguese and Spanish.
« Last Edit: February 06, 2010, 12:05:38 PM by Infinitus 8 »
Logged

Infinitus 8

  • Jr. Member
  • **
  • Gender: Male
  • Posts: 57
    • View Profile
    • WWW
Re: Language Translation ::: Updated!
« Reply #3 on: February 06, 2010, 06:24:40 PM »
Hello, Arron!
I did 3 instalation with the same database, everything working fine, except:

1 - Categories name - It's still showing in English (first instalation).
2 - Logo and photos - I have to manually move around. i.e. If I upload to English Directory, I have to move manually to Spanish and Portuguese Directories.

Any idea or Suggestions beside to kill my self??
Logged

internet54

  • Full Member
  • ***
  • Posts: 104
    • View Profile
    • WWW
Re: Language Translation
« Reply #4 on: February 06, 2010, 07:23:41 PM »
^ You are pulling English from the database, what do you expect?

There are a few ways around this.
One includes creating a new database table, the other string replacement.
I would suggest the database table method.

Really shouldn't be too much work to get the categories working how you want them.

As for the photos, I would need more info.

Infinitus 8

  • Jr. Member
  • **
  • Gender: Male
  • Posts: 57
    • View Profile
    • WWW
Re: Language Translation
« Reply #5 on: February 06, 2010, 09:20:05 PM »
Thank you for quick reply!
Photos go to folder product_images and I have 3 folders:
www.infinitus8.net/product_images
www.infinitus8.net/es/product_images
www.infinitus8.net/br/product_images

I need to know wich .php files send/take the photos to/from product_images folder and make some change to redirect to one centralized folder. Got it?

Note: I didn't translate the pages yet, just place a big flag on top of the pages.

Thank you
« Last Edit: February 06, 2010, 09:21:39 PM by Infinitus 8 »
Logged

internet54

  • Full Member
  • ***
  • Posts: 104
    • View Profile
    • WWW
Re: Language Translation
« Reply #6 on: February 07, 2010, 11:45:10 AM »
Take a look at account_photos.php

Infinitus 8

  • Jr. Member
  • **
  • Gender: Male
  • Posts: 57
    • View Profile
    • WWW
Re: Language Translation
« Reply #7 on: February 09, 2010, 12:46:56 AM »
Hi,
Someone knows that if I replace this line
$filename = "$svr_rootscript/product_images/thumb/$row[IMAGENAME].jpg";

for this:
$filename = "http://infinitus8.net/product_images/thumb/$row[IMAGENAME].jpg";

It's the same?
Logged

internet54

  • Full Member
  • ***
  • Posts: 104
    • View Profile
    • WWW
Re: Language Translation
« Reply #8 on: February 09, 2010, 03:52:17 PM »
No it's not.
Look at include/mysql.php for the difference.

Infinitus 8

  • Jr. Member
  • **
  • Gender: Male
  • Posts: 57
    • View Profile
    • WWW
Re: Language Translation
« Reply #9 on: February 09, 2010, 09:22:55 PM »
I got it! ;D
It's not php code, I just change one piece of html in detail.php and browse_display.php, what I have so far?
3 BizDirectory installation
1 Database (shared)
1 folder product_images/  (shared)

About categories I got a short cut, Instead of 30 categories, now I have 90 (30 for each language).
Logged

spacezed

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Language Translation
« Reply #10 on: February 20, 2010, 02:45:42 PM »
Hi to all, i have BizDirectory turning ON multilingual, i'm now writing the admin area and contacted with idev team for a new release with my changes.

Now im waiting for a response from idev ;-)

Bye!!!

Saludos!!!
Hector Cabrera
Logged

Infinitus 8

  • Jr. Member
  • **
  • Gender: Male
  • Posts: 57
    • View Profile
    • WWW
Re: Language Translation
« Reply #11 on: February 20, 2010, 02:50:32 PM »
Great news!!
If you need help I can do Brazilian Portuguese.
Logged

spacezed

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Language Translation
« Reply #12 on: February 21, 2010, 06:42:54 AM »
Ok perfect!!!
I attached the definitions language file, please send COMPLETE translations to this thread. This file is only for visitors site translations.

HOW TO!:

This is simple:
define("_DEFINITION","This is the text.");

ONLY CHANGE "This is the text" with your translation.

------- DON'T TOUCH DEFINITIONS!! ------------------

When you finnish, change the name of the file to LANG CODE:

Example:

en-EN.php
es-ES.php

Now i have 2 translation finnished EN(English) and ES(Spanish), you can write other languages, german, brazillian, italian, ......

Thanks to All, i'm writing now the Admin Section.

Regards!,
Hector Cabrera
Logged

Infinitus 8

  • Jr. Member
  • **
  • Gender: Male
  • Posts: 57
    • View Profile
    • WWW
Re: Language Translation
« Reply #13 on: February 21, 2010, 12:18:30 PM »
How about Categories? Do you have solution to show only categories for each language?
My BD I got a turnaround making Categories 3 times:
30 in English
30 in Spanish
30 in Portuguese

The good point is that the user can be in the Spanish page searching for ads in English.
http://infinitus8.net/   - Working in progress  ;D
« Last Edit: February 21, 2010, 02:46:38 PM by Infinitus 8 »
Logged

spacezed

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Language Translation
« Reply #14 on: February 21, 2010, 12:44:54 PM »
mmmm, my MOD is only for interface not for listings.....

but I'll think about it  ;)

Logged
Pages: [1] 2
« previous next »