9603 pointsLike some sort of WPMU DEV GodMindblowingly helpful memberLifetime member
Sales & Support Pro
—
10th February 2011 (1 year ago)
#
Hi spotlife!
Sorry for the delay in answering your question!
I've checked out the Async Analytics plugin and it does not appear to me to have support for localisation. This would suggest why your translation is having no effect on it's output.
I have alot of plugins from here translated into swedish so let me know if you want to exchange some.
I don't want to make a new thread about a small note but the subscribe by email plugin does not translate "Subscriptions" in the menu. Could be a small bugfix for next version.
Responses (29)
Sales & Support Pro — 10th February 2011 (1 year ago) #
Hi spotlife!
Sorry for the delay in answering your question!
I've checked out the Async Analytics plugin and it does not appear to me to have support for localisation. This would suggest why your translation is having no effect on it's output.
Hope that helps!
Sales & Support Lead — 11th February 2011 (1 year ago) #
All of our plugins should be fully translatable. I'll ask Ivan to take a look and if we need to get this fixed up, we'll do so quickly.
Thanks!
Developer — 11th February 2011 (1 year ago) #
Hi spotlife,
The plugin is fully localized, the text domain string is "ga_trans". So the correct language file name would be "ga_trans-sv_SE.mo".
Phil, Line 110 ;)
Member — 11th February 2011 (1 year ago) #
All, many thanks for your replies!
However changing the filename does not do it. Still the translation is not picked up.
'[root@server languages]# l
total 0
-rw-rw-r-- 1 nginx spot 2839 Feb 1 21:00 default.pot
-rw-rw-r-- 1 nginx spot 2919 Feb 9 18:49 ga_trans-sv_SE.mo
-rw-rw-r-- 1 nginx spot 3767 Feb 9 18:49 ga_trans-sv_SE.po
[root@server languages]# pwd
/srv/www/sitename/wp-content/plugins/google-analytics-async/languages
'
Developer — 11th February 2011 (1 year ago) #
Hm, strange, can you attach your .mo file so I can make few tests.
Member — 12th February 2011 (1 year ago) #
Sure Ivan, here it is
We go live on monday so I really appreciate your time
Thanks!
Member — 12th February 2011 (1 year ago) #
Hmm, will try again with a zip file
Member — 12th February 2011 (1 year ago) #
Again
Member — 12th February 2011 (1 year ago) #
ok I see, please rename fron lang.jpg to lang.zip after download
Thanks
Member — 12th February 2011 (1 year ago) #
Sorry for all the uploads. Please find the file here:
http://82.182.148.179/ga_trans-sv_SE.mo.zip
Member — 12th February 2011 (1 year ago) #
I have alot of plugins from here translated into swedish so let me know if you want to exchange some.
I don't want to make a new thread about a small note but the subscribe by email plugin does not translate "Subscriptions" in the menu. Could be a small bugfix for next version.
Member — 14th February 2011 (1 year ago) #
@Ivan, have you been able to do some tests yet?
@Qlof, sure I have done for admin-ads, admin-message, signup-language, signup-tos, wp-invites
Thanks!
Developer — 15th February 2011 (1 year ago) #
Hi spotlife,
I am working on an update, with some extra bug fixes mentioned by other users as well as this one. You can expect it very soon.
Member — 15th February 2011 (1 year ago) #
excellent Ivan
Member — 20th February 2011 (1 year ago) #
What do you mean by signup-language? That should be included in the general translation.
There is also an issue with the subscribe by e-mail plugin. Even though it's translated the e-mail is sent out in english.
Member — 21st February 2011 (1 year ago) #
@Qlof - Hmm, if it's built in it's not working then?!
@Ivan - Any progress on the update?
Lead Developer — 21st February 2011 (1 year ago) #
Not sure if this is the problem, but try changing
$plugin_dir = $this->plugin_dir . 'languages';to
$plugin_dir = $this->plugin_dir . '/languages';Developer — 22nd February 2011 (1 year ago) #
@spotlife,
There is a new version of the plugin. Please update to see whether the bug is resolved, also try Aaron's solution just in case.
Member — 22nd February 2011 (1 year ago) #
Hi, sorry I tried to upgrade and Aarons fix but neighter solved the problem
Developer — 23rd February 2011 (1 year ago) #
Please try the following and report back:
Replace:
add_action( 'init', array( &$this, 'load_plugin_textdomain' ) );with:
add_action( 'init', array( &$this, 'load_plugin_textdomain' ), 0 );The right way is to leave this this way:
$plugin_dir = $this->plugin_dir . 'languages';Do you have other plugins localized and working ?
Member — 24th February 2011 (1 year ago) #
Hi Ivan, thanks but I could not find the code example above...only
add_action( 'wpwp_loaded', array( &$this, 'load_plugin_textdomain' ) );Tried to change to
add_action( 'wpwp_loaded', array( &$this, 'load_plugin_textdomain' ), 0 );Verified setting
$plugin_dir = $this->plugin_dir . 'languages';Still no translation is being done
Yes I have many other plugins working with translation (i.e signup-tos)
Developer — 24th February 2011 (1 year ago) #
There is no such hook as "wpwp_loaded". You have to change the hook to "init" as described above.
Member — 26th February 2011 (1 year ago) #
Hi Ivan, ok but it's your plugin ;)
Anyway I changed to:
add_action( 'init', array( &$this, 'load_plugin_textdomain' ), 0 );
Still no go
Member — 27th February 2011 (1 year ago) #
Tried on a new install, still no translation
Member — 1st March 2011 (1 year ago) #
Hello,
I have the same problem with the French translation.
I also tried all the tips below but none of them make it work :(
Developer — 1st March 2011 (1 year ago) #
Try version 1.1.7 I think I finally fixed the damn thing :)
Member — 1st March 2011 (1 year ago) #
Works for me! thanks a lot!
If you want to include the translation files in your plugin just tel me and i'll send them to you.
Can you explain quickly where was the problem?
Thanks again!
Member — 1st March 2011 (1 year ago) #
Yes it works with v1.1.7, thanks for your work Ivan!
Developer — 8th March 2011 (1 year ago) #
Hi guys,
Please update to version 1.1.8 as I have introduced couple of bug fixes. Thanks.
Become a member