Forum Replies Created
-
AuthorPosts
-
Darlan ten CatenMemberThis reply has been marked as private.
Darlan ten CatenMemberSent a new one Steve. The first one contains a variable name error and didn’t work, sorry!
Darlan ten CatenMemberSent! 🙂
Darlan ten CatenMemberHi Steve!
Well after hours of errors I found this article: http://ottopress.com/2012/internationalization-youre-probably-doing-it-wrong/
In short we can’t use variables inside of __( ) and my plan didn’t work well.
But I found another way to do it and it is working very well!
I finished the first version of a plugin using this technique right now and I will attach it as private here so you can review my code.
I plan to publish this plugin as free at WordPress.org when it is ready.
—
Well .zip aren’t allowed here so I will send it to your mail Steve.
Darlan ten CatenMemberUps, the function’s name is wrong.
add_filter( 'piklist_get_file_data', 'allow_metabox_text_domain' );
function allow_metabox_text_domain( $data ) {
$data['text_domain'] = 'Text Domain';return $data;
}add_filter( 'piklist_add_part', 'config_metabox_title_text_domain' );
function config_metabox_title_text_domain( $data ) {
if ( !empty( $data['text_domain'] ) ) {
$data['name'] = __( $data['name'], $data['text_domain'] );
}return $data;
}
Darlan ten CatenMemberTried now with v0.9.4.23 and the problem continues.
Darlan ten CatenMember@Steve the problems continue on the last version.
The “Big problem”: When I set the ‘Page’ paremeter on my tabs and then I click to edit a post the second tab is open by default. That’s ugly.
If I remove the ‘Page’ paremeter everything works fine. Like it:
First Tab:
<?php /* Title: Principal Order: 10 Flow: Fluxo Ordem de Servico Default: true */Second Tab:
<?php /* Title: Adicionais Order: 20 Flow: Fluxo Ordem de Servico */
Darlan ten CatenMember@Steve the 0.9.4.21 version isn’t handling well the tabs.
In fact I’m finding several problems in Workflows with the last version.
Darlan ten CatenMember@Steve that way don’t work very well because if the post status is ‘auto-draft’ the tab will show.
Make this test: Create a Workflow with two Tabs. The second one should be visible only on Page: post.php.
Now add a new post and click on the first tab (the only one visible). The page will reload and now the post status is ‘auto-draft’ and the second tab is visible!
Darlan ten CatenMember@Steve it will be awesome!
The inputs on second tab depend in values inserted on the first tab when the new custom post is created. So the user should see the second tab only if the post status is not ‘draft’.
At the moment I’m hiding all the metaboxes of the second tab by post status but will be a lot better if I can just hide the entire tab.
Darlan ten CatenMember@Steve when the new version (0.9.4?) will be released?
Darlan ten CatenMemberYes Steve, fixed.
Thank you!
Darlan ten CatenMemberI mean Piklist replace all the infos for the media. Why Piklist need to replace this view?
Darlan ten CatenMemberGreat! Thank you for being so fast.
Regards!
Darlan ten CatenMember@steve Thats Great, keep the excelent work!
-
AuthorPosts