Lenin
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7] Bilingual implementationAlso, submitting the form changes the site language so I had to modify your
settings.php
like below:return ((string) '/'.qtrans_getLanguage().$wpcf7_request_uri);
Forum: Plugins
In reply to: [Contact Form 7] Bilingual implementationI am assuming that, when we select the locale before creating the contact form. It fetches the proper locale strings and the response strings with this post and maybe saves them also.
The lines of codes I pasted above are from:
contact-form-7/includes/classes.php
Without making the change directly into the plugin code I wasn’t able to get the form in TwitterBootstrap friendly manner.
Forum: Plugins
In reply to: [Contact Form 7] Bilingual implementationAlso, offtopic to this thread but. I would request you to make a dynamic option to have the sequence of elements changed like below:
if ( ! $this->responses_count ) $form .= $this->form_response_output(); $form .= $this->form_hidden_fields(); $form .= $this->form_elements();
Because, twitterbootstrap by default puts the markup at the top of form.
Forum: Plugins
In reply to: [Contact Form 7] Bilingual implementationIf that is so, please tell me how I can get different locale for an existing saved contact form.
Forum: Plugins
In reply to: [Contact Form 7] Bilingual implementationThanks!
Now can I change the locale of an existing form I saved?
Forum: Plugins
In reply to: [Mailchimp List Subscribe Form] PO/MO files not working between serversI have solved the problem and posted here. Thanks for your quick response and offer for support!
Forum: Plugins
In reply to: [Mailchimp List Subscribe Form] PO/MO files not working between serversYes, the trick I used works but thats for a single language as it relies upon
WPLANG
setting inwp-config.php
.I have found that WP’s
get_locale()
function fails to detect the WPLANG while the ajax call works either from the mailChimp widget or the form.I am using qTranslate for getting the sites bilingual. While, I used
qtrans_getLanguage()
inside themailchimp.php
, it also fails to tell the correct current language while the ajax calls from the form.I would appreciate if you provide us a known option for switching language s while supporting multilanguages.
Forum: Plugins
In reply to: [Mailchimp List Subscribe Form] PO/MO files not working between serversSolved this by:
if ( defined( ‘WPLANG’ ) )
$locale = WPLANG;$textdomain = ‘mailchimp_i18n’;
$locale = apply_filters( ‘plugin_locale’, $locale, $textdomain);But, this wont work for bilingual.
Forum: Plugins
In reply to: [Mailchimp List Subscribe Form] PO/MO files not working between serversI have found the problem. I need a little guide regarding this.
I have placed a
print_r
at themailchimp.php
at line 59, which looks like:function mailchimpSF_plugin_init() {
// Internationalize the plugin
$textdomain = ‘mailchimp_i18n’;
$locale = apply_filters( ‘plugin_locale’, get_locale(), $textdomain);
print_r(MCSF_LANG_DIR.$textdomain.’-‘.$locale.’.mo’);
load_textdomain(‘mailchimp_i18n’, MCSF_LANG_DIR.$textdomain.’-‘.$locale.’.mo’);// Bring in our appropriate JS and CSS resources
mailchimpSF_load_resources();
}Now this shows the proper language while the site’s language is changed at the head. But when I submit into the mailchimp subscription form it shows the en_US.mo as selected. what is wrong?
Forum: Plugins
In reply to: [Mailchimp List Subscribe Form] PO/MO files not working between serversThough I have followed these steps about 50times already, I’ll again try and then inform you.
I am using the same versions of .po I have submitted to github.
I know contribution is not mandatory. But as I had the chance to translate two of the languages which were not there yet, I would like to contribute. Especially, I want to contribute my own language from the same spirit I have translated Facebook in my own language and I am top translator for over 4 years.
Forum: Plugins
In reply to: [Mailchimp List Subscribe Form] PO/MO files not working between serversI have now pushed all the strings for Arabic as well. But not being able to see the result myself.
And for contribution, should I generate another pull request?
Forum: Plugins
In reply to: [Mailchimp List Subscribe Form] PO/MO files not working between serversI have kept the file naming convention correct to my knowlege and as I have also sent GIT pull request on the mailchimp repository. You’d be able to see the files for yourself too.
The WPLANG line I wrote here was typed so was wrong. In the file, I have checked that it is okay.
Tried to switch for both languages. And it didn’t work.
A question, when would the language change for Ajax? I have two modes, Arabic and English.
ps. I will submit the 4 missing arabic lines as soon as I can get all these working fine.
I have actually translated them using poEDit ofcourse and placed the generated .po and .mo to the
plugins/mailchimp/po
as well.On the provided link for the po files you’d see that I have saved configurations from poEdit too.
I posted on SO while not getting your responses.
Forum: Plugins
In reply to: [Mailchimp List Subscribe Form] PO/MO files not working between serversSo there’s nothing wrong with my .po? Have you also tested the Arabic one? There are four strings not submitted but I already translated them and was waiting for your response for I was not being able to see them in action.
I tested with
define('WPLANG), 'bn_BD')
anddefine('WPLANG','ar_SA')
.Why does the ‘Email Adress’ come in English in your screenshots?
And I just finished compliling for Bangla, Bangladesh. The file for bn_BD.po