Skip to content

Commit

Permalink
Fix PHP Fatal error on frontent
Browse files Browse the repository at this point in the history
  • Loading branch information
sibrenvansetten committed Oct 28, 2024
1 parent cd1c929 commit 60a1796
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
4 changes: 2 additions & 2 deletions gf_pll.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Translate Gravity Forms x Polylang
Plugin URI: https://github.com/siebsie23/gravity-forms-polylang
Description: This Wordpress plugin adds form titles, descriptions, field labels, etc, to Polylang string translations
Version: 1.0.0
Version: 1.0.1
Author: siebsie23
Author URI: https://github.com/siebsie23
License: GPL2GNU General Public License v2.0
Expand All @@ -25,7 +25,7 @@ public static function registerStrings(): void
$gf_pll->registerStrings();
}

public static function translateStrings($form): mixed
public static function translateStrings($form): array
{
$gf_pll = new GravityFormsPolylang();
return $gf_pll->translateStrings($form);
Expand Down
20 changes: 11 additions & 9 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,25 @@
Contributors: siebsie23
Tags: translate, gravityforms, polylang, translation
Requires at least: 5.7
Tested up to: 6.3.1
Tested up to: 6.6.2
Requires PHP: 7.4
Stable tag: 1.0.0
Stable tag: 1.0.1
License: GPL2GNU General Public License v2.0
License URI: https://github.com/siebsie23/gravity-forms-polylang/blob/master/LICENSE

Add form titles, descriptions, field labels, etc, to Polylang string translations
Add form titles, descriptions, field labels, etc. to Polylang string translations

== Description ==
This Wordpress plugin adds form titles, descriptions, field labels, etc, to Polylang string translations


This WordPress plugin adds form titles, descriptions, field labels, etc. to Polylang string translations

== Installation ==
Install and activate the plugin. After this, your translatable strings will appear in the "Translations" tab of PolyLang.

== Changelog ==
1.0.0
- Fixed 'Undefined array key page' error.
- Updated code styling

= 1.0.1 =
* Fixed PHP Fatal Error on frontend.

= 1.0.0 =
* Fixed "Undefined array key page" error.
* Updated code styling

0 comments on commit 60a1796

Please sign in to comment.