[wp-trac] [WordPress Trac] #55866: wordpress 6 with arabic bug
WordPress Trac
noreply at wordpress.org
Sat May 28 15:47:16 UTC 2022
#55866: wordpress 6 with arabic bug
--------------------------+------------------------------
Reporter: sabry91 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: I18N | Version: 6.0
Severity: blocker | Resolution:
Keywords: | Focuses: rtl
--------------------------+------------------------------
Changes (by SergeyBiryukov):
* keywords: needs-unit-tests =>
* component: General => I18N
Old description:
> Once you install version 6 and change the language to Arabic.
> This problem occurs.
> Tested on more than one server
>
> Fatal error: Uncaught ValueError: Missing format specifier at end of
> string in //wp-includes/script-loader.php:1271 Stack trace: #0 //wp-
> includes/script-loader.php(1271): sprintf() #1 //wp-includes/class-wp-
> hook.php(307): wp_default_scripts() #2 //wp-includes/class-wp-
> hook.php(331): WP_Hook->apply_filters() #3 //wp-includes/plugin.php(524):
> WP_Hook->do_action() #4 //wp-includes/class.wp-scripts.php(167):
> do_action_ref_array() #5 //wp-includes/class.wp-scripts.php(142):
> WP_Scripts->init() #6 //wp-includes/functions.wp-scripts.php(24):
> WP_Scripts->__construct() #7 //wp-includes/functions.wp-scripts.php(147):
> wp_scripts() #8 //wp-includes/widgets/class-wp-widget-text.php(59):
> wp_add_inline_script() #9 //wp-includes/class-wp-widget.php(274):
> WP_Widget_Text->_register_one() #10 //wp-includes/class-wp-widget-
> factory.php(102): WP_Widget->_register() #11 //wp-includes/class-wp-
> hook.php(307): WP_Widget_Factory->_register_widgets() #12 //wp-includes
> /class-wp-hook.php(331): WP_Hook->apply_filters() #13 //wp-
> includes/plugin.php(476): WP_Hook->do_action() #14 //wp-
> includes/widgets.php(1854): do_action() #15 //wp-includes/class-wp-
> hook.php(307): wp_widgets_init() #16 //wp-includes/class-wp-
> hook.php(331): WP_Hook->apply_filters() #17 //wp-
> includes/plugin.php(476): WP_Hook->do_action() #18 //wp-
> settings.php(598): do_action() #19 //wp-config.php(96):
> require_once('/...') #20 //wp-load.php(50): require_once('/...') #21
> //wp-blog-header.php(13): require_once('/...') #22 //index.php(17):
> require('/...') #23 {main} thrown in
New description:
Once you install version 6 and change the language to Arabic.
This problem occurs.
Tested on more than one server
{{{
Fatal error: Uncaught ValueError: Missing format specifier at end of
string in //wp-includes/script-loader.php:1271
Stack trace:
#0 //wp-includes/script-loader.php(1271): sprintf()
#1 //wp-includes/class-wp-hook.php(307): wp_default_scripts()
#2 //wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#3 //wp-includes/plugin.php(524): WP_Hook->do_action()
#4 //wp-includes/class.wp-scripts.php(167): do_action_ref_array()
#5 //wp-includes/class.wp-scripts.php(142): WP_Scripts->init()
#6 //wp-includes/functions.wp-scripts.php(24): WP_Scripts->__construct()
#7 //wp-includes/functions.wp-scripts.php(147): wp_scripts()
#8 //wp-includes/widgets/class-wp-widget-text.php(59):
wp_add_inline_script()
#9 //wp-includes/class-wp-widget.php(274): WP_Widget_Text->_register_one()
#10 //wp-includes/class-wp-widget-factory.php(102): WP_Widget->_register()
#11 //wp-includes/class-wp-hook.php(307):
WP_Widget_Factory->_register_widgets()
#12 //wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#13 //wp-includes/plugin.php(476): WP_Hook->do_action()
#14 //wp-includes/widgets.php(1854): do_action()
#15 //wp-includes/class-wp-hook.php(307): wp_widgets_init()
#16 //wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#17 //wp-includes/plugin.php(476): WP_Hook->do_action()
#18 //wp-settings.php(598): do_action()
#19 //wp-config.php(96): require_once('/...')
#20 //wp-load.php(50): require_once('/...')
#21 //wp-blog-header.php(13): require_once('/...')
#22 //index.php(17): require('/...')
#23 {main} thrown in
}}}
--
Comment:
Hi there, welcome to WordPress Trac!
This appears to be a bug in the Arabic translation of a
[https://translate.wordpress.org/projects/wp/dev/ar/default/?filters%5Bterm%5D=Tell+me+more&filters%5Bterm_scope%5D=scope_any&filters%5Bstatus%5D=current_or_waiting_or_fuzzy_or_untranslated&filters%5Buser_login%5D=&filter=Apply+Filters&sort%5Bby%5D=original_date_added&sort%5Bhow%5D=desc
particular string]. Note `%2$` there, it should be `%2$s` instead.
Once the translation is corrected and the language pack is updated, the
error should disappear. Pinging @okfie as a Translation Editor for Arabic.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55866#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list