Comments on: CodeIgniter Language File Translator http://mrkirkland.com/codeigniter-language-file-translator/ (mainly) Tokyo based developer and founder Thu, 04 Jun 2015 00:25:00 +0000 hourly 1 https://wordpress.org/?v=4.4.2 By: qhwa http://mrkirkland.com/codeigniter-language-file-translator/#comment-194 Sat, 31 May 2008 01:59:49 +0000 http://www.mrkirkland.com/codeigniter-language-file-translator/#comment-194 Nice work. I really love it!

If variables are wrapped in the language file, there will be some errors.

e.g. in freakauth language file:
[code]$lang[‘FAL_activation_email_body_message’] =
‘Thank you for your new member registration.

To activate your new account, please visit the following URL in the next 24 hours:’;[/code]

then in the tranlator interface, there will be an error message:

[code]Entry cannot be blank. Defaulted to master translation.
Mismatch – does not exist in master translation[/code]

If i submit the form without filling the input filed above the message, I will get none error message but the page refreshed (the same before I post). I checked the ‘translator’ controller and found why.

in the index function:

[code]elseif ( $this->validated && $this->input->post(‘SaveLang’) ) {
$this->data[‘page_content’] = ‘translator/saveLang’;
$this->data[‘page_title’] = ‘Confirm’;
}
else {
$this->data[‘page_content’] = ‘translator/translateLang’;
$this->data[‘page_title’] = ‘Translate ‘ . $this->langModule;
}[/code]

the logic is not exactly right, if I post but failed in validation.

hope these are helpful for you.

]]>
By: Marc http://mrkirkland.com/codeigniter-language-file-translator/#comment-193 Sat, 24 May 2008 23:10:06 +0000 http://www.mrkirkland.com/codeigniter-language-file-translator/#comment-193 great work guys! it’s really amazing.

take care,
marc

]]>
By: Mr Kirkland http://mrkirkland.com/codeigniter-language-file-translator/#comment-192 Mon, 19 May 2008 13:24:36 +0000 http://www.mrkirkland.com/codeigniter-language-file-translator/#comment-192 Looks like we broke the config reading bit with version 0.5.1. Will fix and update.

In the mean time, off the top of my head, around line 172 in the class constructor, this is the array you should change to the path for your language files:


$this->langDirs = array( BASEPATH . 'language', APPPATH . 'language' );

]]>
By: Jan http://mrkirkland.com/codeigniter-language-file-translator/#comment-191 Mon, 19 May 2008 12:28:23 +0000 http://www.mrkirkland.com/codeigniter-language-file-translator/#comment-191 Heya,
really nice work and I love to use it, but I don’t want to clutter my app with the translator files, so I created a standalone CI app for the translator and used the config/translator.php file to point it to my actual app’s language dir, but it looks like the config params are never picked up. I started hacking the initialization of the translator controller with not much luck. Is it, and if, how ist it supposed to work?

Cheers
Jan

]]>
By: matt http://mrkirkland.com/codeigniter-language-file-translator/#comment-190 Wed, 14 May 2008 14:57:32 +0000 http://www.mrkirkland.com/codeigniter-language-file-translator/#comment-190 Hey nice; hope you posted to the CI forums – they’ll love it!

]]>
By: Naruhodo » Blog Archive » Front End For Translating Codeigniter Language Files http://mrkirkland.com/codeigniter-language-file-translator/#comment-189 Wed, 14 May 2008 07:03:59 +0000 http://www.mrkirkland.com/codeigniter-language-file-translator/#comment-189 […] http://www.mrkirkland.com/codeigniter-language-file-translator/ […]

]]>
By: Derek Allard http://mrkirkland.com/codeigniter-language-file-translator/#comment-188 Sat, 10 May 2008 13:40:46 +0000 http://www.mrkirkland.com/codeigniter-language-file-translator/#comment-188 Super Nice! I love the simplicity and effectiveness of this. Great work both!

]]>