Topic: new translation file for use
hi!
jobberbase works with translation.ini file for the translations, but there are still a lot of hard coded files in it.
since i was bored to check how to correct them i did a small change and make a small extra translation file.
1. in config.php after the last include add
require_once '_includes/language.php';
2. Create a a file languages.php in /_includes/ folder
Paste the following code
<?php
// File Name: language.php
// File Location : ./_includes/
// File author: Alen Stimec
// ---------------------------------------------------------------------------
// English Language File
// ---------------------------------------------------------------------------
// Page_home.php changes
$_lang['seo_title'] = 'My seo title';
$_lang['seo_desc']= 'My seo_desc';
$_lang['seo_keys']= 'My seo_keys';
//PhpMailer.php
$_lang[''] = '';
?>
4. go to page_home.php and others and edit the files ....
$smarty->assign('seo_title', $_lang['seo_title']);
$smarty->assign('seo_desc', $_lang['seo_desc']);
$smarty->assign('seo_keys', $_lang['seo_keys']);
5. Do the same steps in the rest of the files you wish to translate your jobberbase app ![]()
Please post any comment if you find any bug ..or a better implementation
regards
A
p.s. i changed the variable name to $_lang since $lang is already in use in class.Textile.php
Last edited by elgreco (2009-02-16 11:18:00)