siefca
Forum Replies Created
-
Forum: Plugins
In reply to: [Cookie OK] Please set id="eu_cookie_notify" on elementSome other WP plug-ins or now. I’m just advocating for some common id that can be blocked with AdBlock.
Forum: Plugins
In reply to: [Attributron 2000] [Plugin: Attributron 2000] Translations?Hi,
You can add translations with some skills, the plug-in is translation ready, so the translations will probably appear in a future versions.
I resolved the case by creating translation file (for Polish):
wp-content/languages/dws_attributron-2000-pl_PL.po
Then I looked into plug-in source:
wp-content/plugins/attributron-2000/a2k.php
and searched for any instructions beggining with
_(
or__(
They contain translation keys. Then I put these keys into:
wp-content/languages/dws_attributron-2000-pl_PL.po
Partial example:
msgid "" msgstr "" "PO-Revision-Date: 2012-07-24 12:41:58+0000\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Project-Id-Version: 3.4.x\n" #: msgid "Sources:" msgstr "Wykorzystane materia?y:"
So for the found word
Sources:
(from code) I created its translated version, and so on.Next step is to convert PO file to MO file that WordPress understands. If you have shell access and the system is kind of Unix, then you can use
msgfmt
. In my case:cd wp-content/languages msgfmt -o dws_attributron-2000-pl_PL.mo dws_attributron-2000-pl_PL.po
If you don’t have shell access, then see the thread on StackOverflow.
The last step is telling your theme to load translation files just created. Edit your
functions.php
and add initializer. In my case it was:function attributron_trans_init() { load_textdomain('dws_attributron-2000', WP_CONTENT_DIR . "/languages/dws_attributron-2000-pl_PL.mo"); } add_action('init', 'attributron_trans_init');
Hi,
IMHO some option ‘secure previews’ would be nice. I have SSL tapped to subdomain and when I’m trying to preview something the page isn’t there (404).
It might be some caching issue (I’m using reverse proxies) or issue with securing administrative pages, but it helps setting ‘Secure post’ checkbox and then viewing the preview. So I thought such option would be nice thing — an option that would force previews to be served with HTTPS.
Regards,
pawe?It’s fixed! Thanks Mike!
More info on my configuration:
My base domain is https://7freuds.com/
I’m using subdomain for SSL – https://secure.7freuds.com/
Whole site (but without SSL) is behind CloudFlare proxy.Feed is under: https://7freuds.com/feed?cat=-84
When using https://direct.7freuds.com/feed?cat=-84 the JavaScript appears intead of XML, which shouldn’t happened since it has no value for RSS readers.
(subdomain ‘direct’ is for testing – it’s passes proxy)
When using https://secure.7freuds.com/feed?cat=-84 the feed is working. Unfortunatelly I cannot use it with Google Feedburner which is broken and cannot read many SSL-secured feeds.
I need for the WP HTTPS plug-in to not redirect visitor anywhere when the content is some feed.
Regards,
Pawel