pods-framework / pods

The Pods Framework is a Content Development Framework for WordPress - It lets you create and extend content types that can be used for any project. Add fields of various types we've built in, or add your own with custom inputs, you have total control.
https://pods.io/
GNU General Public License v2.0
1.07k stars 264 forks source link

Slovak language conflicts with sprintf.js - Bi-Directional Relationship broken #5887

Closed xube closed 3 years ago

xube commented 3 years ago

Describe the bug Bi-directional relationship labels will not show on back-end of CPT with autocompletation type set with taggable checkbox checked. There is also broken display of another labels after affected one.

There is error in Browser console: Uncaught SyntaxError: [sprintf] unexpected placeholder //sprintf.js:185

To Reproduce Switch to Slovak language and go to the to a CPT with bi-directional relationship set. Labels are shown as list, not as ajaxed input field

Expected behavior It should show as tag (built-in tag taxonomies window in post)

Screenshots image

Pods Version

2.7.24

WordPress Environment

` ### wp-core ### version: 5.5.3 site_language: en_US user_language: en_US timezone: Europe/Bratislava permalink: /%postname%/ https_status: true multisite: false user_registration: 0 blog_public: 0 default_comment_status: open environment_type: production user_count: 1 dotorg_communication: true ### wp-paths-sizes ### wordpress_path: /data/web/virtuals/202430/virtual/www/subdom/shop wordpress_size: loading... uploads_path: /data/web/virtuals/202430/virtual/www/subdom/shop/wp-content/uploads uploads_size: loading... themes_path: /data/web/virtuals/202430/virtual/www/subdom/shop/wp-content/themes themes_size: loading... plugins_path: /data/web/virtuals/202430/virtual/www/subdom/shop/wp-content/plugins plugins_size: loading... database_size: loading... total_size: loading... ### wp-dropins (1) ### advanced-cache.php: true ### wp-active-theme ### name: Neve (neve) version: 2.8.4 author: ThemeIsle author_website: https://themeisle.com parent_theme: none theme_features: core-block-patterns, hfg_support, title-tag, post-thumbnails, automatic-feed-links, custom-logo, html5, customize-selective-refresh-widgets, custom-background, align-wide, editor-color-palette, fl-theme-builder-headers, fl-theme-builder-footers, header-footer-elementor, lifterlms-sidebars, lifterlms, service_worker, menus, widgets theme_path: /data/web/virtuals/202430/virtual/www/subdom/shop/wp-content/themes/neve auto_update: Disabled ### wp-themes-inactive (1) ### Suki: version: 1.2.13, author: Suki WordPress Theme,Auto-updates disabled ### wp-plugins-active (2) ### Pods - Custom Content Types and Fields: version: 2.7.24, author: Pods Framework Team, Auto-updates disabled WP Super Cache: version: 1.7.1, author: Automattic, Auto-updates disabled ### wp-plugins-inactive (3) ### Really Simple SSL: version: 3.3.5, author: Really Simple Plugins, Auto-updates disabled Templates Patterns Collection: version: 1.0.11, author: ThemeIsle, Auto-updates disabled WooCommerce: version: 4.7.0, author: Automattic, Auto-updates disabled ### wp-media ### image_editor: WP_Image_Editor_Imagick imagick_module_version: 1802 imagemagick_version: ImageMagick 7.0.10-37 Q16 x86_64 2020-11-12 https://imagemagick.org file_uploads: File uploads is turned off post_max_size: 128M upload_max_filesize: 128M max_effective_size: 128 MB max_file_uploads: 20 imagick_limits: imagick::RESOURCETYPE_AREA: 126 GB imagick::RESOURCETYPE_DISK: 9.2233720368548E+18 imagick::RESOURCETYPE_FILE: 30720 imagick::RESOURCETYPE_MAP: 126 GB imagick::RESOURCETYPE_MEMORY: 63 GB imagick::RESOURCETYPE_THREAD: 8 gd_version: bundled (2.1.0 compatible) ghostscript_version: unknown ### wp-server ### server_architecture: Linux 4.15.18-24-pve x86_64 httpd_software: Apache php_version: 7.4.12 64bit php_sapi: fpm-fcgi max_input_variables: 10000 time_limit: 90 memory_limit: 256M max_input_time: 30 upload_max_filesize: 128M php_post_max_size: 128M curl_version: 7.29.0 NSS/3.36 suhosin: false imagick_availability: true pretty_permalinks: true htaccess_extra_rules: true ### wp-database ### extension: mysqli server_version: 10.1.37-MariaDB client_version: mysqlnd 7.4.12 ### wp-constants ### WP_HOME: https://shop.icn.sk WP_SITEURL: https://shop.icn.sk WP_CONTENT_DIR: /data/web/virtuals/202430/virtual/www/subdom/shop/wp-content WP_PLUGIN_DIR: /data/web/virtuals/202430/virtual/www/subdom/shop/wp-content/plugins WP_MAX_MEMORY_LIMIT: 256M WP_DEBUG: false WP_DEBUG_DISPLAY: true WP_DEBUG_LOG: false SCRIPT_DEBUG: false WP_CACHE: true CONCATENATE_SCRIPTS: undefined COMPRESS_SCRIPTS: undefined COMPRESS_CSS: undefined WP_LOCAL_DEV: undefined DB_CHARSET: utf8mb4 DB_COLLATE: undefined ### wp-filesystem ### wordpress: writable wp-content: writable uploads: writable plugins: writable themes: writable ### pods ### pods-server-software: Apache pods-user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.66 Safari/537.36 pods-session-save-path: /data/web/virtuals/202430/virtual/session pods-session-save-path-exists: Yes pods-session-save-path-writable: Yes pods-session-max-lifetime: 1440 pods-opcode-cache-apc: No pods-opcode-cache-memcached: No pods-opcode-cache-opcache: Yes pods-opcode-cache-redis: No pods-object-cache-apc: No pods-object-cache-apcu: No pods-object-cache-memcache: No pods-object-cache-memcached: No pods-object-cache-redis: No pods-memory-current-usage: 17.153M pods-memory-current-usage-real: 2.000M pods-network-wide: No pods-install-location: /data/web/virtuals/202430/virtual/www/subdom/shop/wp-content/plugins/pods/ pods-developer: No pods-tableless-mode: No pods-light-mode: No pods-strict: No pods-allow-deprecated: Yes pods-api-cache: Yes pods-shortcode-allow-evaluate-tags: No `

Pods Package Export (helpful!)

{"meta":{"version":"2.7.24","build":1606075309},"pods":{"16":{"id":16,"name":"film","label":"Filmy","description":"","type":"post_type","storage":"meta","object":"","alias":"","fields":{"rezia":{"id":30,"name":"rezia","label":"Réžia","description":"","help":"","class":"","type":"pick","weight":0,"pick_object":"post_type","pick_val":"osobnost","sister_id":"","required":"0","pick_format_type":"single","pick_format_single":"autocomplete","pick_format_multi":"checkbox","pick_display_format_multi":"default","pick_display_format_separator":", ","pick_allow_add_new":"1","pick_taggable":"0","pick_show_icon":"1","pick_show_edit_link":"1","pick_show_view_link":"1","pick_limit":"0","pick_user_role":[],"pick_post_status":["publish"],"admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"rest_read":"0","rest_write":"0","rest_pick_response":"array","rest_pick_depth":"2","unique":"0","pick_select_text":"","pick_table_id":"","pick_table_index":"","pick_display":"","pick_where":"","pick_orderby":"","pick_groupby":""},"herci":{"id":31,"name":"herci","label":"Herci","description":"","help":"","class":"","type":"pick","weight":1,"pick_object":"post_type","pick_val":"osobnost","sister_id":"","required":"0","pick_format_type":"multi","pick_format_single":"dropdown","pick_format_multi":"autocomplete","pick_display_format_multi":"default","pick_display_format_separator":", ","pick_allow_add_new":"1","pick_taggable":"1","pick_show_icon":"1","pick_show_edit_link":"1","pick_show_view_link":"1","pick_limit":"0","pick_user_role":[],"pick_post_status":["publish"],"admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"rest_read":"0","rest_write":"0","rest_pick_response":"array","rest_pick_depth":"2","unique":"0","pick_select_text":"","pick_table_id":"","pick_table_index":"","pick_display":"","pick_where":"","pick_orderby":"","pick_groupby":""},"nominacie_naj_film":{"id":32,"name":"nominacie_naj_film","label":"Nominácie Najlepší Film","description":"","help":"","class":"","type":"pick","weight":2,"pick_object":"post_type","pick_val":"udalost","sister_id":"29","required":"0","pick_format_type":"multi","pick_format_single":"autocomplete","pick_format_multi":"autocomplete","pick_display_format_multi":"default","pick_display_format_separator":", ","pick_allow_add_new":"1","pick_taggable":"1","pick_show_icon":"1","pick_show_edit_link":"1","pick_show_view_link":"1","pick_limit":"0","pick_user_role":[],"pick_post_status":["publish"],"admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"rest_read":"0","rest_write":"0","rest_pick_response":"array","rest_pick_depth":"2","unique":"0","pick_select_text":"","pick_table_id":"","pick_table_index":"","pick_display":"","pick_where":"","pick_orderby":"","pick_groupby":""}},"show_in_menu":"1","label_singular":"Film","public":"1","show_ui":"1","supports_title":"1","supports_editor":"1","publicly_queryable":"1","exclude_from_search":"0","capability_type":"post","capability_type_custom":"film","capability_type_extra":"1","has_archive":"0","hierarchical":"0","rewrite":"1","rewrite_with_front":"1","rewrite_feeds":"0","rewrite_pages":"1","query_var":"1","can_export":"1","default_status":"draft","supports_author":"0","supports_thumbnail":"0","supports_excerpt":"0","supports_trackbacks":"0","supports_custom_fields":"0","supports_comments":"0","supports_revisions":"0","supports_page_attributes":"0","supports_post_formats":"0","built_in_taxonomies_category":"0","built_in_taxonomies_link_category":"0","built_in_taxonomies_post_tag":"0","menu_position":"0","show_in_nav_menus":"1","show_in_admin_bar":"1","pfat_enable":"0","pfat_append_single":"append","pfat_filter_single":"the_content","pfat_append_archive":"append","pfat_filter_archive":"the_excerpt","pfat_run_outside_loop":"0","rest_enable":"0","read_all":"0","write_all":"0"},"15":{"id":15,"name":"osobnost","label":"Osobnosti","description":"","type":"post_type","storage":"meta","object":"","alias":"","fields":{"nominovany":{"id":33,"name":"nominovany","label":"Nominovaný","description":"","help":"","class":"","type":"pick","weight":0,"pick_object":"post_type","pick_val":"udalost","sister_id":"28","required":"0","pick_format_type":"multi","pick_format_single":"dropdown","pick_format_multi":"autocomplete","pick_display_format_multi":"default","pick_display_format_separator":", ","pick_allow_add_new":"1","pick_taggable":"1","pick_show_icon":"1","pick_show_edit_link":"1","pick_show_view_link":"1","pick_limit":"0","pick_user_role":[],"pick_post_status":["publish"],"admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"rest_read":"0","rest_write":"0","rest_pick_response":"array","rest_pick_depth":"2","pick_select_text":"","pick_table_id":"","pick_table_index":"","pick_display":"","pick_where":"","pick_orderby":"","pick_groupby":""}},"show_in_menu":"1","label_singular":"Osobnosť","public":"1","show_ui":"1","supports_title":"1","supports_editor":"1","publicly_queryable":"1","exclude_from_search":"0","capability_type":"post","capability_type_custom":"osobnost","capability_type_extra":"1","has_archive":"0","hierarchical":"0","rewrite":"1","rewrite_with_front":"1","rewrite_feeds":"0","rewrite_pages":"1","query_var":"1","can_export":"1","default_status":"draft","supports_author":"0","supports_thumbnail":"0","supports_excerpt":"0","supports_trackbacks":"0","supports_custom_fields":"0","supports_comments":"0","supports_revisions":"0","supports_page_attributes":"0","supports_post_formats":"0","built_in_taxonomies_category":"0","built_in_taxonomies_link_category":"0","built_in_taxonomies_post_tag":"0","menu_position":"0","show_in_nav_menus":"1","show_in_admin_bar":"1","pfat_enable":"0","pfat_append_single":"append","pfat_filter_single":"the_content","pfat_append_archive":"append","pfat_filter_archive":"the_excerpt","pfat_run_outside_loop":"0","rest_enable":"0","read_all":"0","write_all":"0"},"14":{"id":14,"name":"udalost","label":"Udalosti","description":"","type":"post_type","storage":"meta","object":"","alias":"","fields":{"naj_rezia":{"id":28,"name":"naj_rezia","label":"Director","description":"","help":"","class":"","type":"pick","weight":0,"pick_object":"post_type","pick_val":"osobnost","sister_id":"33","required":"0","pick_format_type":"multi","pick_format_single":"dropdown","pick_format_multi":"autocomplete","pick_display_format_multi":"default","pick_display_format_separator":", ","pick_allow_add_new":"1","pick_taggable":"1","pick_show_icon":"1","pick_show_edit_link":"1","pick_show_view_link":"1","pick_limit":"0","pick_user_role":[],"pick_post_status":["publish"],"admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"rest_read":"0","rest_write":"0","rest_pick_response":"array","rest_pick_depth":"2","unique":"0","pick_select_text":"","pick_table_id":"","pick_table_index":"","pick_display":"","pick_where":"","pick_orderby":"","pick_groupby":""},"naj_film":{"id":29,"name":"naj_film","label":"Movie","description":"","help":"","class":"","type":"pick","weight":1,"pick_object":"post_type","pick_val":"film","sister_id":"32","required":"0","pick_format_type":"multi","pick_format_single":"dropdown","pick_format_multi":"autocomplete","pick_display_format_multi":"default","pick_display_format_separator":", ","pick_allow_add_new":"1","pick_taggable":"1","pick_show_icon":"1","pick_show_edit_link":"1","pick_show_view_link":"1","pick_limit":"0","pick_user_role":[],"pick_post_status":["publish"],"admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"rest_read":"0","rest_write":"0","rest_pick_response":"array","rest_pick_depth":"2","unique":"0","pick_select_text":"","pick_table_id":"","pick_table_index":"","pick_display":"","pick_where":"","pick_orderby":"","pick_groupby":""}},"show_in_menu":"1","label_singular":"Udalosť","public":"1","show_ui":"1","supports_title":"1","supports_editor":"1","publicly_queryable":"1","exclude_from_search":"0","capability_type":"post","capability_type_custom":"udalost","capability_type_extra":"1","has_archive":"0","hierarchical":"0","rewrite":"1","rewrite_with_front":"1","rewrite_feeds":"0","rewrite_pages":"1","query_var":"1","can_export":"1","default_status":"draft","supports_author":"0","supports_thumbnail":"0","supports_excerpt":"0","supports_trackbacks":"0","supports_custom_fields":"0","supports_comments":"0","supports_revisions":"0","supports_page_attributes":"0","supports_post_formats":"0","built_in_taxonomies_category":"0","built_in_taxonomies_link_category":"0","built_in_taxonomies_post_tag":"0","menu_position":"0","show_in_nav_menus":"1","show_in_admin_bar":"1","pfat_enable":"0","pfat_append_single":"append","pfat_filter_single":"the_content","pfat_append_archive":"append","pfat_filter_archive":"the_excerpt","pfat_run_outside_loop":"0","rest_enable":"0","read_all":"0","write_all":"0"}}}

Additional context This is localization related problem. If we switch to English localization, there is no problem.

Possible Workaround Switch to the English language.

issue-label-bot[bot] commented 3 years ago

Issue-Label Bot is automatically applying the label Type: Bug to this issue, with a confidence of 0.99. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

sc0ttkclark commented 3 years ago

@JoryHogeveen it might be good to see if this is resolved in 2.8 or if there's a bug in the translation here.

JoryHogeveen commented 3 years ago

Not reproducible in Pods 2.8