Efficient and affordable software for Macintosh - Maker of MaxBulk Mailer, eMail extractor, eMail Checker, e-Mail Bounce Handler

Home

Products

Downloads

News

Store

Support

Forums

Forums

It is currently Sun May 26, 2013 9:14 am

All times are UTC




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: How to create a new language ?
PostPosted: Fri Mar 23, 2012 4:38 pm 
Offline

Joined: Fri Mar 23, 2012 4:10 pm
Posts: 11
Location: SC, Brazil
Hello MLM Community.
I need to include portugues language, for subscription pages and e-mails sent to users. (Perhaps all that a final user can see).

So I created a "pt" folder with the txt files in portugues inside "templates". But I'm not sure what else I have to do.

Any ideas ?

Thank you.


Top
 Profile E-mail  
 
 Post subject: Re: How to create a new language ?
PostPosted: Fri Mar 23, 2012 7:35 pm 
Offline

Joined: Fri Mar 23, 2012 4:10 pm
Posts: 11
Location: SC, Brazil
I will be grateful for any related info that can help


Top
 Profile E-mail  
 
 Post subject: Re: How to create a new language ?
PostPosted: Mon Mar 26, 2012 7:11 am 
Offline
Site Admin
User avatar

Joined: Wed Dec 28, 2005 9:13 pm
Posts: 6743
This is part of the work indeed. Now you have to open the 'lm_strings.php' file and translate all the text used by MLM. For example first entry:
Code:
$kErr_missingparam_cmd = array(
   'en' => htmlentities( 'Error - You forgot to provide the command parameter', $enc_quotes, $enc_charset ),
   'fr' => htmlentities( 'Erreur - Vous n\'avez pas spécifié la commande à exécuter', $enc_quotes, $enc_charset ),
   'de' => htmlentities( 'Fehler - Sie haben vergessen, den Parameter für den Befehl anzugeben', $enc_quotes, $enc_charset ),
   'es' => htmlentities( 'Error - No ha especificado el comando a ejecutar', $enc_quotes, $enc_charset ),
   'it' => htmlentities( 'Errore - non hai fornito un parametro di comando', $enc_quotes, $enc_charset ),
   'nl' => htmlentities( 'Fout - Je bent vergeten de opdracht parameter te geven', $enc_quotes, $enc_charset ),
   'cz' => htmlentities( 'Chyba - zapomněli jste zadat jeden z příkazových parametrů.', $enc_quotes, $enc_charset )
);

should look like this:
Code:
$kErr_missingparam_cmd = array(
   'en' => htmlentities( 'Error - You forgot to provide the command parameter', $enc_quotes, $enc_charset ),
   'fr' => htmlentities( 'Erreur - Vous n\'avez pas spécifié la commande à exécuter', $enc_quotes, $enc_charset ),
   'de' => htmlentities( 'Fehler - Sie haben vergessen, den Parameter für den Befehl anzugeben', $enc_quotes, $enc_charset ),
   'es' => htmlentities( 'Error - No ha especificado el comando a ejecutar', $enc_quotes, $enc_charset ),
   'it' => htmlentities( 'Errore - non hai fornito un parametro di comando', $enc_quotes, $enc_charset ),
   'nl' => htmlentities( 'Fout - Je bent vergeten de opdracht parameter te geven', $enc_quotes, $enc_charset ),
   'cz' => htmlentities( 'Chyba - zapomněli jste zadat jeden z příkazových parametrů.', $enc_quotes, $enc_charset ),
   'pt' => htmlentities( 'THE_PORTUGUESE_TRANSLATION_HERE', $enc_quotes, $enc_charset )
);

Don't forget to escape any ' you have in your strings, ' should replaced by \'


Top
 Profile E-mail  
 
 Post subject: Re: How to create a new language ?
PostPosted: Mon Mar 26, 2012 12:01 pm 
Offline

Joined: Fri Mar 23, 2012 4:10 pm
Posts: 11
Location: SC, Brazil
Thank you Stanbusk.
Now, I must change the language.

So, All I need to do is define $defaults_language to "pt"; in lm_setting.php ? Or this works just for the first installation?

And setting this "pt" value, does the script include "...template>pt" txt files for e-mail confirmation ?


Top
 Profile E-mail  
 
 Post subject: Re: How to create a new language ?
PostPosted: Mon Mar 26, 2012 5:07 pm 
Offline
Site Admin
User avatar

Joined: Wed Dec 28, 2005 9:13 pm
Posts: 6743
Yes, set the default language and it will be sued everywhere, including templates.


Top
 Profile E-mail  
 
 Post subject: Re: How to create a new language ?
PostPosted: Tue Mar 27, 2012 12:50 am 
Offline

Joined: Fri Mar 23, 2012 4:10 pm
Posts: 11
Location: SC, Brazil
stanbusk wrote:
Yes, set the default language and it will be sued everywhere, including templates.


Well... after setting the default language, everything continues in English. (Forms, administrative pages, e-mail confirmations...)

Same result changing existing languages like "es" or "it".

I don't know if this can affect the result, but I did a manual MLM installation...

Something is missing... :(


Top
 Profile E-mail  
 
 Post subject: Re: How to create a new language ?
PostPosted: Tue Mar 27, 2012 6:53 am 
Offline
Site Admin
User avatar

Joined: Wed Dec 28, 2005 9:13 pm
Posts: 6743
Have you added your languages to the available language list? It is line 54:

$languages = array( 'en', 'fr', 'de', 'es', 'it', 'nl', 'cz' );

replace it with:

$languages = array( 'en', 'fr', 'de', 'es', 'it', 'nl', 'cz', 'pt' );


Top
 Profile E-mail  
 
 Post subject: Re: How to create a new language ?
PostPosted: Tue Mar 27, 2012 12:49 pm 
Offline

Joined: Fri Mar 23, 2012 4:10 pm
Posts: 11
Location: SC, Brazil
stanbusk wrote:
Have you added your languages to the available language list? It is line 54:

$languages = array( 'en', 'fr', 'de', 'es', 'it', 'nl', 'cz' );

replace it with:

$languages = array( 'en', 'fr', 'de', 'es', 'it', 'nl', 'cz', 'pt' );


Thank you stanbusk

I added my "pt" language list in lm.php, and now it's working in portugues !

I noted that after this setup, the first attempt still worked in English.

Subscribe forms in the html folder must be translated manually ?


Top
 Profile E-mail  
 
 Post subject: Re: How to create a new language ?
PostPosted: Tue Mar 27, 2012 3:23 pm 
Offline
Site Admin
User avatar

Joined: Wed Dec 28, 2005 9:13 pm
Posts: 6743
Yes, subscribe from only comes in English actually.


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Home

Products

Downloads

News

Store

Support

Forums


Maxprog ® - MAX Programming, LLC - © 2001-2006 - All Rights reserved
Company Info | Site Map | Legal Notice | Privacy Policy | Jobs