Dodane tłumaczenia + usunięto nachalne komunikaty ulepszenia do wersji PRO

This commit is contained in:
PiotrParysek 2017-06-06 22:04:46 +02:00
parent 78298e5106
commit db17150983
8 changed files with 3255 additions and 4923 deletions

View File

@ -21,8 +21,8 @@ add_action( 'admin_menu', 'wppb_register_basic_info_submenu_page', 2 );
function wppb_basic_info_content() {
$version = 'Free';
$version = ( ( PROFILE_BUILDER == 'Profile Builder Pro' ) ? 'Pro' : $version );
$version = ( ( PROFILE_BUILDER == 'Profile Builder Hobbyist' ) ? 'Hobbyist' : $version );
//$version = ( ( PROFILE_BUILDER == 'Profile Builder Pro' ) ? 'Pro' : $version );
//$version = ( ( PROFILE_BUILDER == 'Profile Builder Hobbyist' ) ? 'Hobbyist' : $version );
?>
<div class="wrap wppb-wrap wppb-info-wrap">
@ -45,7 +45,7 @@ function wppb_basic_info_content() {
<p><?php printf( __( 'Straight forward edit profile forms using %s shortcode.', 'profile-builder' ), '<strong class="nowrap">[wppb-edit-profile]</strong>' ); ?></p>
</div>
</div>
<?php ob_start(); ?>
<?php ob_start(); /*?>
<hr/>
<div>
<h3><?php _e( 'Extra Features', 'profile-builder' );?></h3>
@ -76,6 +76,7 @@ function wppb_basic_info_content() {
</div>
<?php
// Output here the Extra Features html for the Free version
$extra_features_html = ob_get_contents();
ob_end_clean();
@ -189,5 +190,5 @@ function wppb_basic_info_content() {
</ul>
</div>
</div>
<?php
<?php*/
}

View File

@ -158,7 +158,7 @@ function wppb_general_settings_content() {
<?php } ?>
<?php
if ( PROFILE_BUILDER == 'Profile Builder Free' ) {
/*if ( PROFILE_BUILDER == 'Profile Builder Free' ) {
?>
<tr>
<th scope="row">
@ -168,7 +168,7 @@ function wppb_general_settings_content() {
<p><em> <?php printf( __( 'You decide who is a user on your website. Get notified via email or approve multiple users at once from the WordPress UI. Enable Admin Approval by upgrading to %1$sHobbyist or PRO versions%2$s.', 'profile-builder' ),'<a href="https://www.cozmoslabs.com/wordpress-profile-builder/?utm_source=wpbackend&utm_medium=clientsite&utm_content=general-settings-link&utm_campaign=PBFree">', '</a>' )?></em></p>
</td>
</tr>
<?php } ?>
<?php }*/ ?>
<tr>
<th scope="row">

View File

@ -80,9 +80,9 @@ function wppb_manage_fields_submenu(){
//Free to Pro call to action on Manage Fields page
$field_description = __('Choose one of the supported field types','profile-builder');
if( PROFILE_BUILDER == 'Profile Builder Free' ) {
/*if( PROFILE_BUILDER == 'Profile Builder Free' ) {
$field_description .= sprintf( __('. Extra Field Types are available in <a href="%s">Hobbyist or PRO versions</a>.' , 'profile-builder'), esc_url( 'https://www.cozmoslabs.com/wordpress-profile-builder/?utm_source=wpbackend&utm_medium=clientsite&utm_content=manage-fields-link&utm_campaign=PBFree' ) );
}
}*/
//user roles
@ -1212,12 +1212,12 @@ function wppb_add_content_before_manage_fields(){
<li><strong class="nowrap">[wppb-register role="author"]</strong></li>
</ul>
<p>
<?php
<?php/*
if( PROFILE_BUILDER == 'Profile Builder Pro' )
_e("If you're interested in displaying different fields in the registration and edit profile forms, please use the Multiple Registration & Edit Profile Forms Modules.", 'profile-builder');
else
_e( "With Profile Builder Pro v2 you can display different fields in the registration and edit profile forms, using the Multiple Registration & Edit Profile Forms module.", "profile-builder" )
?>
*/?>
</p>
<?php
}

View File

@ -234,10 +234,10 @@ function wppb_pms_cross_promo() {
*
* @Since 2.2.5
*/
/*
if ( !isset($_GET['page']) || $_GET['page'] != 'profile-builder-pms-promo'){
new WPPB_Add_General_Notices('wppb_pms_cross_promo',
sprintf(__('Allow your users to have <strong>paid accounts with Profile Builder</strong>. %1$sFind out how >%2$s %3$sDismiss%4$s', 'profile-builder'), "<a href='" . admin_url('options.php?page=profile-builder-pms-promo') . "'>", "</a>", "<a class='wppb-dismiss-notification' href='" . esc_url( add_query_arg('wppb_pms_cross_promo_dismiss_notification', '0') ) . "'>", "</a>"),
'pms-cross-promo');
}
*/

View File

@ -730,6 +730,7 @@ add_filter('wck_metabox_content_header_wppb_epf_page_settings', 'wppb_change_met
/* Add a notice if people are not able to register via Profile Builder; Membership -> "Anyone can register" checkbox is not checked under WordPress admin UI -> Settings -> General tab */
/*
if ( (get_option('users_can_register') == false) && (!class_exists('PMS_Add_General_Notices')) ) {
if( is_multisite() ) {
new WPPB_Add_General_Notices('wppb_anyone_can_register',
@ -741,7 +742,7 @@ if ( (get_option('users_can_register') == false) && (!class_exists('PMS_Add_Gene
'update-nag');
}
}
*/
/*Filter default WordPress notices ("Post published. Post updated."), add post type name for User Listing, Registration Forms and Edit Profile Forms*/
function wppb_change_default_post_updated_messages($messages){
global $post;

File diff suppressed because it is too large Load Diff

View File

@ -27,8 +27,8 @@ register_activation_hook(__FILE__,'upf_install');
register_deactivation_hook(__FILE__, 'upf_uninstall');
function upf_install(){
upf_uninstall();//force to uninstall option
add_option('upf_email_subject','New File Upload');
add_option('upf_email_message',"Hello %user_login%,\nYou have a new file upload. The file name is %filename%, you can download it here %download_url%");
add_option('upf_email_subject','Przesłano nowy plik');//New File Upload
add_option('upf_email_message',"Witaj %user_login%,\nPrzesłano dla Ciebie nowy plik o nazwie %filename%, możesz go pobrać na stronie %download_url%\nDo zobaczenia!");//Hello %user_login%,\nYou have a new file upload. The file name is %filename%, you can download it here %download_url%
}
function upf_uninstall(){
@ -63,7 +63,7 @@ function upf_options() {
update_option('upf_email_message',esc_attr($_POST['upf_email_message']) );
}
?>
<div class="updated settings-error" id="setting-error-settings_updated"><p><strong><?php _e('Settings Saved', 'user-private-files');?>.</strong></p></div>
<div class="updated settings-error" id="setting-error-settings_updated"><p><strong><?php _e('Ustawienia zapisane', 'user-private-files');?>.</strong></p></div><!--Settings Saved-->
<?php
}
@ -71,26 +71,26 @@ function upf_options() {
$upf_email_message = get_option('upf_email_message');
?>
<div class="wrap">
<h2><?php _e('User Private Files Settings', 'user-private-files');?></h2>
<h2><?php _e('Ustawienia plików użytkownika', 'user-private-files');?></h2><!--User Private Files Settings-->
<form method="POST" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
<h3><?php _e('Notification', 'user-private-files');?></h3>
<h3><?php _e('Notyfikacja', 'user-private-files');?></h3><!--Notification-->
<table class="form-table">
<tbody>
<tr valign="top">
<th scope="row"><label for="upf_email_subject"><?php _e('Email Subject:', 'user-private-files');?></label></th>
<th scope="row"><label for="upf_email_subject"><?php _e('Temat wiadomości email:', 'user-private-files');?></label></th><!--Email Subject:-->
<td><input type="text" class="regular-text" name="upf_email_subject" id="upf_email_subject" value="<?php echo $upf_email_subject; ?>"></td>
</tr>
<tr valign="top">
<th scope="row"><label for="upf_email_subject"><?php _e('Email Message:', 'user-private-files');?></label></th>
<th scope="row"><label for="upf_email_subject"><?php _e('Treść wiadomości email:', 'user-private-files');?></label></th><!--Email Message-->
<td>
<textarea name="upf_email_message" class="regular-text" rows="5" cols="50"><?php echo $upf_email_message; ?></textarea>
<p class="description"><?php _e('Available Variables: ', 'user-private-files');?> <br/><strong>%blogname%, %siteurl%, %user_login%, %filename%, %download_url%, %category%</strong></p>
<p class="description"><?php _e('Dostępne zmienne: ', 'user-private-files');?> <br/><strong>%blogname%, %siteurl%, %user_login%, %filename%, %download_url%, %category%</strong></p> <!--Available Variables-->
</td>
</tr>
</tbody>
</table>
<input type="hidden" name="update" value="update">
<p class="submit"><input type="submit" value="<?php _e('Save Changes', 'user-private-files');?>" class="button-primary" id="submit" name="submit"></p>
<p class="submit"><input type="submit" value="<?php _e('Zapisz zmiany', 'user-private-files');?>" class="button-primary" id="submit" name="submit"></p><!--Save Changes-->
</form>
</div>
<?php
@ -101,18 +101,18 @@ add_action( 'init', 'upf_register_cpt_userfile' );
function upf_register_cpt_userfile() {
$labels = array(
'name' => _x( 'User Files', 'userfile' ),
'singular_name' => _x( 'User File', 'userfile' ),
'add_new' => _x( 'Add New', 'userfile' ),
'add_new_item' => _x( 'Add New User File', 'userfile' ),
'edit_item' => _x( 'Edit User File', 'userfile' ),
'new_item' => _x( 'New User File', 'userfile' ),
'view_item' => _x( 'View User File', 'userfile' ),
'search_items' => _x( 'Search User Files', 'userfile' ),
'not_found' => _x( 'No user files found', 'userfile' ),
'not_found_in_trash' => _x( 'No user files found in Trash', 'userfile' ),
'parent_item_colon' => _x( 'Parent User File:', 'userfile' ),
'menu_name' => _x( 'User Files', 'userfile' ),
'name' => _x( 'Pliki użytkowników', 'userfile' ),//User Files
'singular_name' => _x( 'Plik użytkownika', 'userfile' ),//User File
'add_new' => _x( 'Dodaj nowy', 'userfile' ),//Add New
'add_new_item' => _x( 'Dodaj nowy plik użytkownika', 'userfile' ),//Add New User File
'edit_item' => _x( 'Zedytuj plik użytkownika', 'userfile' ),//Edit User File
'new_item' => _x( 'Nowy plik użytkownika', 'userfile' ),//New User File
'view_item' => _x( 'Wyświetl plik użytkownika', 'userfile' ),//View User File
'search_items' => _x( 'Wyszukaj pliki użytkownika', 'userfile' ),//Search User Files
'not_found' => _x( 'Nie znaleziono plików użytkownika', 'userfile' ),//No user files found
'not_found_in_trash' => _x( 'Nie znaleziono plików użytkownika w koszu', 'userfile' ),//No user files found in Trash
'parent_item_colon' => _x( 'Plik użytkownika "Rodzica"', 'userfile' ),//Parent User File:
'menu_name' => _x( 'Pliki użytkownika', 'userfile' ),//User Files
);
$args = array(
@ -149,21 +149,21 @@ add_action( 'init', 'upf_register_taxonomy_file_categories' );
function upf_register_taxonomy_file_categories() {
$labels = array(
'name' => _x( 'Categories', 'file_categories' ),
'singular_name' => _x( 'Category', 'file_categories' ),
'search_items' => _x( 'Search Categories', 'file_categories' ),
'popular_items' => _x( 'Popular Categories', 'file_categories' ),
'all_items' => _x( 'All Categories', 'file_categories' ),
'parent_item' => _x( 'Parent Category', 'file_categories' ),
'parent_item_colon' => _x( 'Parent Category:', 'file_categories' ),
'edit_item' => _x( 'Edit Category', 'file_categories' ),
'update_item' => _x( 'Update Category', 'file_categories' ),
'add_new_item' => _x( 'Add New Category', 'file_categories' ),
'new_item_name' => _x( 'New Category', 'file_categories' ),
'separate_items_with_commas' => _x( 'Separate categories with commas', 'file_categories' ),
'add_or_remove_items' => _x( 'Add or remove categories', 'file_categories' ),
'choose_from_most_used' => _x( 'Choose from the most used categories', 'file_categories' ),
'menu_name' => _x( 'Categories', 'file_categories' ),
'name' => _x( 'Kategorie', 'file_categories' ),//Categories
'singular_name' => _x( 'Kategoria', 'file_categories' ),//Category
'search_items' => _x( 'Wyszukaj kategorie', 'file_categories' ),//Search Categories
'popular_items' => _x( 'Popularne kategorie', 'file_categories' ),//Popular Categories
'all_items' => _x( 'Wszystkie kategorie', 'file_categories' ),//All Categories
'parent_item' => _x( 'Kategoria "Rodzica"', 'file_categories' ),//Parent Category
'parent_item_colon' => _x( 'Kategoria "Rodzica":', 'file_categories' ),//Parent Category
'edit_item' => _x( 'Edytuj kategorie', 'file_categories' ),//Edit Category
'update_item' => _x( 'Zaktualizuj kategorie', 'file_categories' ),//Update Category
'add_new_item' => _x( 'Dodaj nową kategorię', 'file_categories' ),//Add New Category
'new_item_name' => _x( 'Nowa kategoria', 'file_categories' ),//New Category
'separate_items_with_commas' => _x( 'Oddziel kategorie przecinkami', 'file_categories' ),//Separate categories with commas
'add_or_remove_items' => _x( 'Dodaj lub usuń kategorię', 'file_categories' ),//Add or remove categories
'choose_from_most_used' => _x( 'Wybierz z najczęściej wykorzystywanych kategorii', 'file_categories' ),//Choose from the most used categories
'menu_name' => _x( 'Kategorie', 'file_categories' ),//Categories
);
$args = array(
@ -270,9 +270,9 @@ function upf_meta_fields() {
<?php
}
?>
<p class="label"><label for="upf_file"><?php _e('Upload a PDF file here', 'user-private-files');?></label></p>
<p class="label"><label for="upf_file"><?php _e('Prześlij plik PDF tutaj', 'user-private-files');?></label></p><!--Upload a PDF file here-->
<p><input type="file" name="upf_file" id="upf_file" /></p>
<p class="label"><label for="upf_user"><?php _e('Select a user', 'user-private-files');?></label></p>
<p class="label"><label for="upf_user"><?php _e('Wybierz użytkownika', 'user-private-files');?></label></p><!--Select a user-->
<select name="upf_user" id="upf_user">
<?php
$users = get_users();
@ -283,7 +283,7 @@ function upf_meta_fields() {
}
?>
</select>
<p class="label"><input type="checkbox" name="upf_notify" value="1"> <label for="upf_notify"><?php _e('Notify User', 'user-private-files');?></label></p>
<p class="label"><input type="checkbox" name="upf_notify" value="1"> <label for="upf_notify"><?php _e('Powiadom użytkownika', 'user-private-files');?></label></p><!--Notify User-->
<?php
}