I'm trying to translate the subscribe by email plugin and I am unsuccessful.
Since the plugin doesn't have a textdomain I am translating it in the php file. However, when a mail is sent out characters like åäö can not be displayed.
I started off by using the html code for the characters but the email is printing them out. I then changed from the html code to the actual åäö, but the email won't pring them out correctly anyway.
Does anyone know how I can fix this? My script to add textdomain doesn't work for some reason so I can't add textdomain to these plugins manually any more.
I'm trying to translate the subscribe by email plugin and I am unsuccessful.
Since the plugin doesn't have a textdomain I am translating it in the php file. However, when a mail is sent out characters like åäö can not be displayed.
I started off by using the html code for the characters but the email is printing them out. I then changed from the html code to the actual åäö, but the email won't pring them out correctly anyway.
Does anyone know how I can fix this? My script to add textdomain doesn't work for some reason so I can't add textdomain to these plugins manually any more.
10625 pointsLike some sort of WPMU DEV GodMindblowingly helpful memberLifetime member
Sales & Support Lead
—
14th August 2010 (1 year ago)
#
Thanks for posting! I know the devs have been having some conversations about some better ways to provide for internationalization for the plugins here. I'm going to tag Aaron on this and see if he has any suggestions. It's the weekend, so expect a bit of a delay in a response. Thanks!
You can't put utf characters in the actual php file because it is not UTF-8 encoded. You can change the php file's encoding with most text editors.
Alternatively, you can add those strings to your main wp language file by rescanning.
Sorry about the textdomains. I really am working on making sure all our newer plugins have them, and will be forcing them when updating older versions.
I tried changing the file to UTF-8 but I recieved an error in wp saying that headers was already sent by this plugin... Any common root cause for this? I looked for spaces before and after php markup without success.
I think the solution is to manually add languagedomain to the file and translate it that way. If you would like to do that, please feel free to share the file with languagedomain :).
I really think an update for this plugin with internationalization would be good. The emails doesn't look good but I can't disable this feature as many bloggers use it.
Responses (11)
Sales & Support Lead — 14th August 2010 (1 year ago) #
Thanks for posting! I know the devs have been having some conversations about some better ways to provide for internationalization for the plugins here. I'm going to tag Aaron on this and see if he has any suggestions. It's the weekend, so expect a bit of a delay in a response. Thanks!
Lead Developer — 14th August 2010 (1 year ago) #
You can't put utf characters in the actual php file because it is not UTF-8 encoded. You can change the php file's encoding with most text editors.
Alternatively, you can add those strings to your main wp language file by rescanning.
Sorry about the textdomains. I really am working on making sure all our newer plugins have them, and will be forcing them when updating older versions.
Member — 15th August 2010 (1 year ago) #
Thanks. It's very appreciated.
Member — 16th August 2010 (1 year ago) #
I tried changing the file to UTF-8 but I recieved an error in wp saying that headers was already sent by this plugin... Any common root cause for this? I looked for spaces before and after php markup without success.
Lead Developer — 16th August 2010 (1 year ago) #
I don't have any experience with this. Perhaps php is not set to read utf-8 scripts.
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/Q_22675765.html
Lifetime member! — 20th August 2010 (1 year ago) #
@Qlof
well how did you manage that ? I have the same problem with that...
Tks
Member — 20th August 2010 (1 year ago) #
I didn't.
I think the solution is to manually add languagedomain to the file and translate it that way. If you would like to do that, please feel free to share the file with languagedomain :).
Member — 12th October 2010 (1 year ago) #
Hi,
Any news on internationalization of the plugins? I am having the same problems.
Member — 10th January 2011 (1 year ago) #
Upping this.
I really think an update for this plugin with internationalization would be good. The emails doesn't look good but I can't disable this feature as many bloggers use it.
Editing in ascii mode doesnt seem to work for me.
Lead Developer — 10th January 2011 (1 year ago) #
You'll be happy to know that by next week every one of our plugins should be fully internationalized with a text domain and default .po file.
Next up will be a way to share translation files.
Member — 14th January 2011 (1 year ago) #
Thanks Aaron. Looking forward to it.
Become a member