jobberBase Community

Welcome to jobberBase Developer Community!

You are not logged in.

Announcement

Announcement for new users: in order to combat the ever increasing spam, we no longer allow new users to post links in the message body. This limitation is automatically lifted once a new user has a specific number of 'valid' posts.

You can post links like google.com which will be rendered as text but you will not be able to post messages that contain complete URLs like www.google.com

Thank you for your understanding!

#1 2009-06-13 18:01:27

fred
Member
Registered: 2009-02-19
Posts: 21

Multi Language

Hello Everyone,

I got 2 Jobbers on my local server that running with the same config.php and database. Everything fine, so I guess that it is possible to make a multi language jobber using the subfolders on the production server.

Translate the translation.ini is not difficult but how can we use the same job categories with different names (because of the translation)?

Offline

#2 2009-06-14 14:27:21

filipcte
Administrator
From: Romania
Registered: 2008-08-19
Posts: 136
Website

Re: Multi Language

you can do it in to ways:

1. with a different database for each language. based on $_SERVER['SERVER_NAME'] or HTTP_HOST, you would load the correct db in config.php.

2. create a "languages" table in the db, then connect every entry in the other tables (jobs, categs, etc.) with a language_id foreign key with tha languages table. then again, in config.php, determine current/active language based on SERVER_NAME or HTTP_HOST.

I'd go for #1, it's a no-brainer.


Original jobberBase author
www.filipcte.com

Offline

Board footer

Powered by FluxBB