Ignacio
Forum Replies Created
-
After digging in the code I managed to add the
glossary_id
parameter on the api request:File: /wp-content/plugins/translatepress-business/add-ons-pro/deepl/includes/class-deepl-machine-translator.php
public function send_request( $source_language, $language_code, $strings_array, $formality = "default" ){ /* build our translation request */ $translation_request = 'auth_key=' . $this->get_api_key(); $translation_request .= '&source_lang=' . $source_language; $translation_request .= '&target_lang=' . $language_code; $translation_request .= '&split_sentences=1'; $translation_request .= '&glossary_id=AAAAAA-BBBBB-CCCC-DDDDD-FFFFFFFFFFFFF';
Not great, but seems to do the trick in the meantime.
Forum: Plugins
In reply to: [Translate Multilingual sites - TranslatePress] Translatepress with GlossaryHi @ancavictoria,
We’re running into this very issue with a client who’s using DeepL. They’re using a glossary and don’t want to go through every page to update every instance of a word.
Is this a feature with a planned date? Any place we can upvote or monitor its progress?If not, would it be possible/simple enough to hardcode a
glossary_id
for the time being?Thanks in advance!
Ignacio
Forum: Fixing WordPress
In reply to: White spacebar before footer on each pageFrom inspecting the site, seems that your main wrapper (<div id=”main-wrapper”…) has some padding and content inside.
You could add the following CSS:
#main-wrapper { display: none; }
That would hide the div completely, which might cause unintended consecuences on other parts of the site, so be careful.
Besides from that, you’ll probably going to get better help from the theme’s support.
- This reply was modified 4 years, 2 months ago by Ignacio.
Forum: Fixing WordPress
In reply to: Broken css and js file pathsHa, happens all the time! Glad I could help.
Happy launch!Forum: Fixing WordPress
In reply to: Permalinks are appended a “-2” when title is emptyThanks. Yeah, probably not worth trying out that code…
What I want to achieve is to have some posts that don’t really matter what they have as permalink, since it’s just a photo without a title. It looks OK if it’s just the ID, but kinda bothers me to see 1000-2 instead of a plain number.
I’m now thinking of generating some random string upon save and title is empty, a bit like url shorteners do. So I might get site.com/aAXy8 which I prefer.
Maybe there’s a plugin or something… :thinking:Forum: Fixing WordPress
In reply to: Permalinks are appended a “-2” when title is emptyHey @fierevere thanks for your quick reply!
Yeah, I’ve also checked colliding posts, trashed items.
So basically this boils down to 3., wow. I had no idea.
For anyone looking for this answer, there’s some information about that here: https://wordpress.stackexchange.com/questions/210487/why-can-posts-never-have-a-number-as-the-link
Thanks
- This reply was modified 4 years, 2 months ago by Ignacio.
Forum: Fixing WordPress
In reply to: Broken css and js file pathsHey @asiareekie, seems like the CSS/JS files are not linked correctly, from looking at the output.
Take a look at this:
href='http:olivereekie.com/wp-content/themes/olive-reekie-theme/style.css?ver=5.5'...
It’s missing the
//
onhttps://
for starters.Maybe you used a find&replace plugin and messed that up?
- This reply was modified 4 years, 2 months ago by Ignacio.
Forum: Plugins
In reply to: [Simple Custom Post Order] Enable Post Order programmaticallyHi @mplusb, thanks for your quick reply.
After digging into the plugin’s code I ended up doing what you suggest. Here’s the code in case someone finds it useful.
if (is_plugin_active('simple-custom-post-order/simple-custom-post-order.php')) { if (!get_option('scporder_options')) { update_option('scporder_options', array('objects' => '', 'tags' => array('category'))); } }
Would it make sense to have a function set this programmatically?
Likescp_enable('tags' => array('category'))
Thanks again!