- Posts: 2
- Thank you received: 0
Change Language in Input Fields
19 Apr 2011 22:19 #923
by Alves
Change Language in Input Fields was created by Alves
Hello.
I'm using the Sign Up Module in my frontpage, and i'm interested in translating the module in full Portuguese language.
I'm able to translate everything in the module with the help of JoomFish! and i've put a new language file in the languages folder called "pt-PT.mod_mailchimpsignup.ini" to help me translate messages and the subscribe button.
The only thing left to translate are the three input fields: "Email Address", "First Name" and "Last Name".
I need to have these translated according to the JoomFish language selection.
Can anyone help me out with this?
Thank You.
I'm using the Sign Up Module in my frontpage, and i'm interested in translating the module in full Portuguese language.
I'm able to translate everything in the module with the help of JoomFish! and i've put a new language file in the languages folder called "pt-PT.mod_mailchimpsignup.ini" to help me translate messages and the subscribe button.
The only thing left to translate are the three input fields: "Email Address", "First Name" and "Last Name".
I need to have these translated according to the JoomFish language selection.
Can anyone help me out with this?
Thank You.
Please Log in or Create an account to join the conversation.
19 Apr 2011 23:47 #924
by pete
Replied by pete on topic Change Language in Input Fields
Hello Alves,
These field labels are pulled directly from MailChimp. You can change them by logging into mailchimp.com then go to lists and click settings - fields and merge tags. There you can change the labels. Once you change thos labels you must open the signup module configuration in your Joomla site and select the fields again, which you want to be displayed!
To translate those labels you would have to edit the file: /modules/mod_mailchimpsignup/tmpl/default.php
At line 259 replace $title with: JText::_($title)
Then you can add the original title to the language file like:
ORIGINAL TITLE IN CAPITAL LETTERS="Translation"
We would be interested in the Portuguese language file to include it in the module! Please send it to contact@freakedout.de if you don't mind. Thank you!
Kind regards,
Pete
These field labels are pulled directly from MailChimp. You can change them by logging into mailchimp.com then go to lists and click settings - fields and merge tags. There you can change the labels. Once you change thos labels you must open the signup module configuration in your Joomla site and select the fields again, which you want to be displayed!
To translate those labels you would have to edit the file: /modules/mod_mailchimpsignup/tmpl/default.php
At line 259 replace $title with: JText::_($title)
Then you can add the original title to the language file like:
ORIGINAL TITLE IN CAPITAL LETTERS="Translation"
We would be interested in the Portuguese language file to include it in the module! Please send it to contact@freakedout.de if you don't mind. Thank you!
Kind regards,
Pete
Please Log in or Create an account to join the conversation.
20 Apr 2011 22:17 #936
by Alves
Replied by Alves on topic Change Language in Input Fields
Hello Pete!
Of course, i'll be more than happy to give you the file with the translation, but first i have to make sure it works for the input field labels, and here's the problem...
You told me to change the following line of code:
"At line 259 replace $title with: JText::_($title) "
But at line 259 of my "default.php" file i get only: "break;"
I did a code search on my php file, and i'll show you where i found "$title":
LINE 220: $title = $field[2];
LINE 221: if($field[3]){ $title = $title.' *'; }
LINE 240: $title = $field[2];
LINE 280: $attributes = array('maxlength'=>'10','readonly' => 'readonly', 'style' => 'width:85%;', 'title' => $title);
I've tried to change this in some of these lines but it didn't work. In which ones should i replace the code?
I'm maintaing the Mailchimp tags, these being EMAIL, FNAME and LNAME, and i'm using them on the language file to translate. ex: FNAME=text
So far it's not working…any clues how i can fix this with this new information?
EDIT: I'm using the latest version of joomla mailchimp integration component and signup module. Version 1.6.1.
I would appreciate a quick answer to this if possible...I'm trying to solve this before i can officially launch the website i'm working on.
Thank You!
Of course, i'll be more than happy to give you the file with the translation, but first i have to make sure it works for the input field labels, and here's the problem...
You told me to change the following line of code:
"At line 259 replace $title with: JText::_($title) "
But at line 259 of my "default.php" file i get only: "break;"
I did a code search on my php file, and i'll show you where i found "$title":
LINE 220: $title = $field[2];
LINE 221: if($field[3]){ $title = $title.' *'; }
LINE 240: $title = $field[2];
LINE 280: $attributes = array('maxlength'=>'10','readonly' => 'readonly', 'style' => 'width:85%;', 'title' => $title);
I've tried to change this in some of these lines but it didn't work. In which ones should i replace the code?
I'm maintaing the Mailchimp tags, these being EMAIL, FNAME and LNAME, and i'm using them on the language file to translate. ex: FNAME=text
So far it's not working…any clues how i can fix this with this new information?
EDIT: I'm using the latest version of joomla mailchimp integration component and signup module. Version 1.6.1.
I would appreciate a quick answer to this if possible...I'm trying to solve this before i can officially launch the website i'm working on.
Thank You!
Please Log in or Create an account to join the conversation.
23 Apr 2011 16:34 #966
by pete
Replied by pete on topic Change Language in Input Fields
Hello Alves,
Please upgrade joomlamailer to version 1.7. The JText function has been added to all labels in the signup module. If you add your translations to the language file as I described in post #2 they should be applied.
Kind regards,
Pete
Please upgrade joomlamailer to version 1.7. The JText function has been added to all labels in the signup module. If you add your translations to the language file as I described in post #2 they should be applied.
Kind regards,
Pete
Please Log in or Create an account to join the conversation.
joomlamailer uses cookies!
This website uses cookies to provide user authentication and improve your user experience. Please indicate whether you consent to our site placing these cookies on your device. We are not using cookies for marketing purposes. For more information visit our privacy policy
I agree
Copyright 2010 freakedout.de - All Rights Reserved
Joomlamailer.com is not affiliated with or endorsed by The Joomla! Project™, Open Source Matters, Inc. or Intuit Mailchimp.
Any products and services provided through this site are not supported or warrantied by The Joomla! Project, Open Source Matters, Inc. or Intuit Mailchimp.
Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.
Mailchimp® is a registered trademark of The Rocket Science Group.
Joomlamailer.com is not affiliated with or endorsed by The Joomla! Project™, Open Source Matters, Inc. or Intuit Mailchimp.
Any products and services provided through this site are not supported or warrantied by The Joomla! Project, Open Source Matters, Inc. or Intuit Mailchimp.
Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.
Mailchimp® is a registered trademark of The Rocket Science Group.