Skip to content

Commit

Permalink
fix translations
Browse files Browse the repository at this point in the history
  • Loading branch information
Tropicalista committed Dec 29, 2023
1 parent fe6b76c commit 117e535
Show file tree
Hide file tree
Showing 45 changed files with 25 additions and 1,577 deletions.
2 changes: 1 addition & 1 deletion build/admin.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-blob', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-primitives', 'wp-url'), 'version' => '1f79f4fd721225378645');
<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-blob', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-primitives', 'wp-url'), 'version' => 'a9a13be262e0a2721c9d');
4 changes: 2 additions & 2 deletions build/admin.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/blocks/fieldset/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => '027ac07704f22344cb85');
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => 'd48067bc053f89d692b4');
2 changes: 1 addition & 1 deletion build/blocks/fieldset/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion formello.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Formello
* Plugin URI: https://formello.net/
* Description: Lightweight Gutenberg contact form builder, blazingly fast with no external dependencies and ReCaptcha support.
* Version: 2.4.1
* Version: 2.4.2
* Author: Formello
* Author URI: https://formello.net
* License: GPL2
Expand Down
6 changes: 3 additions & 3 deletions includes/Admin/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public function admin_bar_item( \WP_Admin_Bar $admin_bar ) {
'parent' => null,
'group' => null,
'title' => 'Formello ' . $badge,
'href' => admin_url( 'edit.php?post_type=formello_form&page=formello' ),
'href' => admin_url( 'admin.php?page=formello' ),
)
);

Expand All @@ -189,7 +189,7 @@ public function admin_bar_item( \WP_Admin_Bar $admin_bar ) {
'id' => 'formello-submissions',
'parent' => 'formello-menu',
'title' => __( 'Entries', 'formello' ) . $badge,
'href' => admin_url( 'edit.php?post_type=formello_form&page=formello' ),
'href' => admin_url( 'admin.php?page=formello' ),
)
);

Expand All @@ -198,7 +198,7 @@ public function admin_bar_item( \WP_Admin_Bar $admin_bar ) {
'id' => 'formello-docs',
'parent' => 'formello-menu',
'title' => 'Docs',
'href' => 'https://formello.net/en/documentation/',
'href' => 'https://docs.formello.net',
'meta' => array( 'target' => '_blank' ),
)
);
Expand Down
12 changes: 2 additions & 10 deletions includes/Assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ private function register_scripts( $scripts ) {
wp_register_script( $handle, $script['src'], $deps, $version, $in_footer );
}
wp_set_script_translations( 'formello-form-block-editor', 'formello', FORMELLO_ABSPATH . 'languages' );
wp_set_script_translations( 'formello-admin', 'formello', FORMELLO_ABSPATH . 'languages' );

$settings = array(
'settings' => get_option( 'formello' ),
Expand All @@ -99,9 +100,6 @@ private function register_scripts( $scripts ) {
$settings = apply_filters( 'formello_backend_settings', $settings );

wp_add_inline_script( 'formello-admin', 'const formello = ' . wp_json_encode( $settings ), 'before' );
wp_add_inline_script( 'formello-addons', 'const formello = ' . wp_json_encode( $settings ), 'before' );
wp_add_inline_script( 'formello-settings', 'const formello = ' . wp_json_encode( $settings ), 'before' );
wp_add_inline_script( 'formello-form-editor-script', 'const formello = ' . wp_json_encode( $settings ), 'before' );
}

/**
Expand Down Expand Up @@ -161,13 +159,7 @@ public function get_scripts() {
*/
public function get_styles() {
$styles = array(
'formello-form-block-editor' => array(
'src' => FORMELLO_ASSETS . '/index.css',
),
'formello-form-block' => array(
'src' => FORMELLO_ASSETS . '/style-index.css',
),
'formello-admin' => array(
'formello-admin' => array(
'src' => FORMELLO_ASSETS . '/style-admin.css',
'deps' => array( 'wp-components', 'wp-reset-editor-styles' ),
),
Expand Down
2 changes: 1 addition & 1 deletion includes/Rest/Controllers/Submissions.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function get_submissions( $request ) {
$orderby = $request->get_param( 'orderby' );
$search = $request->get_param( 'search' );
$filter = $request->get_param( 'filter' );
$status = $request->get_param( 'status' );
$status = $request->get_param( 'status' );

$columns = $this->get_columns( $form_id );

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 117e535

Please sign in to comment.