Support has been upgraded!
The Support Forum is closed. Not to worry! Providing the top quality support you expect and we're known for will continue! We're not ending support, just changing where you submit requests. This will provide you with the best experience possible.
Premium Support
Have you purchased an addon for Connections such as one of our premium templates or extensions with a valid license and you need help?
Please open a Support Ticket in your user account.
Free Support
Are you using the free Connections plugin? Don't worry, you are still very important to us! We are still providing you with the same high quality support that we're known for.
Please open a new support topic in the WordPress support forums for Connections.
Tagged: 8.1.5, cn_address_options, cn_phone_options, code snippets, filter, form, gettext, translation
- This topic has 2 replies, 2 voices, and was last updated 8 years, 10 months ago by
Steven Zahm.
-
AuthorPosts
-
11/15/2014 at 10:36 pm #310135
Jesus Enrique Vasquez
ParticipantHello, I need to know where can I fix those translation errors in connections form plugin.
The two highlighted are wrong
In the first one it says “Apellidos” and should say “Empresa” or “Organización”. Apellidos in spanish means “Last Name”.
In the second one there is no translation, the word is in english and it should be in spanish.
I have tryied to translate .mo files using “poedit” but I was unable to do that. Also tryied to do a hard change in .php files and also I can’t.
Please help. Thanks.
Thanks.
Attachments:
You must be logged in to view attached files.11/15/2014 at 10:59 pm #310138Jesus Enrique Vasquez
ParticipantAnother question.
I need to include or exclude addresses, phones and emails types.
I mean, I want people can only be able to select in addresses: “Work”, in Phones: “Mobile” and “Work”, etc.
Is it possible to do that?
Thanks.
11/17/2014 at 11:14 am #310194Steven Zahm
Keymaster@ Jesus Enrique
Which Form version do you have installed? This is important because the latest versions (2.0 and greater) of Form pull most of its content from the Connections plugin core so the strings may need to be fixed here. There are Form specific string which would need translated using POedit, by opening the POT file and sav the new MO file.
If you’re using the latest version, which Spanish translation … US, Spain, Mexico or Latin America? Maybe it’s easy to tell me what you set the WPLANG constant to?
In any event, you would not edit the MO file, you would edit the POT file. What file name and path were you trying to edit?
Yes, the addresses and phone types can be filtered to limit the choices. Here’s how:
Install the Code Snippets plugin.
Add the following code to a new snippet:
function cn_add_address_types( $options ) { unset( $options['home'] ); unset( $options['school'] ); unset( $options['other'] ); return $options; } add_filter( 'cn_address_options', 'cn_add_address_types' ); function cn_add_phone_types( $options ) { unset( $options['homephone'] ); unset( $options['homefax'] ); unset( $options['workfax'] ); return $options; } add_filter( 'cn_phone_options', 'cn_add_phone_types' );
Hope that helps!
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.