slramela
Forum Replies Created
-
To further elaborate, I am talking about searching for addresses in wordpress’s post editor view.
I could not find a way to force the language that is shown, which would be sufficient in this use case.
Forum: Plugins
In reply to: [SpeakOut! Email Petitions] Localisation not workingYea, it is weird. It is like the ′_n()′ function just refuses to load the string.
Hopefully I or my client won’t bumb into too many of those…
I overcame this with the ′do_shortcode_tag′ filter and ′str_replace′ but it is such a hack.
By the way, for that specific spot in the emailpetition.php, the best Finnish translation for ‘signatures’ is ‘allekirjoitusta’. Problematically in other contexts the word ‘allekirjoitus’ will have a different modifier applied to it and that one won’t apply.
I don’t know what you can do about that, though. Finnish is a pain in the ass to translate into.
- This reply was modified 5 years, 2 months ago by slramela.
Forum: Plugins
In reply to: [SpeakOut! Email Petitions] Localisation not working@123host I will make that change. However there are problems with the translation, for some reason. This code does not produce a translation :
_n( 'signature', 'signatures', $petition->signatures, 'speakout' )
It just prints ‘signatures’, even though the translation is present in the .po file. I even recompiled the .mo file form the .po file and that did not help.
The translation is on lines 295-296 of the .po file.
Forum: Plugins
In reply to: [SpeakOut! Email Petitions] Localisation not workingI managed to fix the problem for myself and force the right language file to be loaded by putting this into my functions.php file:
$text_domain = 'speakout'; $override_language_file = ABSPATH . 'wp-content' . DIRECTORY_SEPARATOR . 'plugins' . DIRECTORY_SEPARATOR . 'speakout' . DIRECTORY_SEPARATOR . 'languages' . DIRECTORY_SEPARATOR . 'speakout-fi.mo'; // Unload the translation for the text domain of the plugin unload_textdomain($text_domain); // Load the override file load_textdomain($text_domain, $override_language_file );
Forum: Plugins
In reply to: [SpeakOut! Email Petitions] Localisation not workingBTW, @tobifjellner I looked at the translate.wordpress project and most of the strings there seem to be from readme.txt file, is that normal?
Forum: Plugins
In reply to: [SpeakOut! Email Petitions] Localisation not workingSadly, renaming the file did not help.
I also tried copying the translation file to /wp-content/languages/plugins/ and that did not help either, regardless of whether I edited the load_plugin_textdomain function call to point to that folder or not.
But that is just me taking shots in the dark.
Forum: Plugins
In reply to: [SpeakOut! Email Petitions] Localisation not workingSo do you happen to know any easy way of manually translating the strings without having them overwritten whenever the plugin updates?
Forum: Plugins
In reply to: [SpeakOut! Email Petitions] Localisation not workingNo, it has not.
I’ve tried copying the language files to WP’s language folder (where a language file for Akismet was, for some reason), installing various multilingual plugins, switching the site language back and forth from fi_FI to en_Us and back.
I also tried installing it to other Finnish language WP sites and a Swedish language site and the translations did not work in any of them.
Forum: Plugins
In reply to: [SpeakOut! Email Petitions] Localisation not workingForum: Plugins
In reply to: [Contact Form 7] Spinning Ajax IssueFor me, rolling back to 4.7 does not fix the issue on Windows + Firefox