?
avatar PhilETaylor
PhilETaylor
24 Apr 2017

Steps to reproduce the issue

install 3.7.0
create some custom fields
go to frontend and login as a user
fake editing an article and clicking the field button in tinyMCE by just loading the URL (with a valid token in the url):

http://127.0.0.1:8000/index.php?option=com_fields&view=fields&layout=modal&tmpl=component&context=com_content.article&editor=jform_articletext&98fec83879efc9950cec2daaea1da68f=1

in a WIDE MONITOR so that the ORDERING and ORDER LIMIT dropdowns are shown.

Note that in normal use this url is loaded in a modal window and css breakpoints HIDE the ordering/limit dropdowns.

Expected result

That all text strings are translated

Either

  1. Translate the strings
    or
  2. Remove the dropdowns that are being hidden by breakpoints in screen width caused by modal

Actual result

screen shot 2017-04-24 at 21 58 01

screen shot 2017-04-24 at 21 57 52

avatar PhilETaylor PhilETaylor - open - 24 Apr 2017
avatar joomla-cms-bot joomla-cms-bot - change - 24 Apr 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 24 Apr 2017
avatar PhilETaylor PhilETaylor - edited - 24 Apr 2017
avatar PhilETaylor PhilETaylor - change - 24 Apr 2017
The description was changed
avatar PhilETaylor PhilETaylor - edited - 24 Apr 2017
avatar joomla-cms-bot joomla-cms-bot - change - 25 Apr 2017
Title
[3.7.0+] [com_fields] modal untranslated strings
[3.7.0+] com_fields modal untranslated strings
avatar joomla-cms-bot joomla-cms-bot - edited - 25 Apr 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 25 Apr 2017
Category com_fields Language & Strings
avatar franz-wohlkoenig franz-wohlkoenig - change - 25 Apr 2017
Title
[3.7.0+] com_fields modal untranslated strings
[3.7.0+] [com_fields] modal untranslated strings
avatar joomla-cms-bot joomla-cms-bot - change - 25 Apr 2017
Title
[3.7.0+] com_fields modal untranslated strings
[3.7.0+] [com_fields] modal untranslated strings
avatar franz-wohlkoenig franz-wohlkoenig - change - 25 Apr 2017
Title
[3.7.0+] com_fields modal untranslated strings
[3.7.0+] [com_fields] modal untranslated strings
avatar infograf768
infograf768 - comment - 25 Apr 2017

So, if I understand well, you are forcing loading in a normal window what should be in a modal .
I would not consider this as a bug.

avatar franz-wohlkoenig franz-wohlkoenig - change - 25 Apr 2017
Status New Discussion
avatar PhilETaylor
PhilETaylor - comment - 25 Apr 2017

I disagree, anything that is rendered out in the DOM of a page should be correctly translated, even if that element is hidden by css or screen size breakpoints.

3pd are well known for reusing "core" features and so if a 3pd reused this view in a different way the width of a modal might be different, and show these useful filters, and they would be untranslated.

The un translated strings would also be logged during debugging

avatar infograf768
infograf768 - comment - 25 Apr 2017

Well, I then guess it is just a matter of adding these strings in frontend.

avatar infograf768
infograf768 - comment - 25 Apr 2017

Tested
Debug language displays in this case

# JROOT/administrator/components/com_fields/helpers/fields.php

JGLOBAL_FIELD_GROUPS="FIELD GROUPS"

# JROOT/libraries/joomla/form/fields/list.php

JGLOBAL_SORT_BY="SORT BY"
JGLOBAL_TITLE_ASC="TITLE ASC"
JGLOBAL_TITLE_DESC="TITLE DESC"
JGRID_HEADING_ACCESS_ASC="HEADING ACCESS ASC"
JGRID_HEADING_ACCESS_DESC="HEADING ACCESS DESC"
JGRID_HEADING_ID_ASC="HEADING ID ASC"
JGRID_HEADING_ID_DESC="HEADING ID DESC"
JGRID_HEADING_LANGUAGE_ASC="HEADING LANGUAGE ASC"
JGRID_HEADING_LANGUAGE_DESC="HEADING LANGUAGE DESC"
JGRID_HEADING_ORDERING_ASC="HEADING ORDERING ASC"
JGRID_HEADING_ORDERING_DESC="HEADING ORDERING DESC"
JSTATUS_ASC="ASC"
JSTATUS_DESC="DESC"

# JROOT/libraries/cms/layout/file.php

JTOGGLE_HIDE_SIDEBAR="HIDE SIDEBAR"
JTOGGLE_SHOW_SIDEBAR="SHOW SIDEBAR"

but it gets worse as "Field Group" is displayed 3 times in the dropdown.
Therefore, just adding the strings may not be the correct way to do.

avatar brianteeman brianteeman - change - 20 Aug 2017
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2017-08-20 11:40:07
Closed_By brianteeman
avatar brianteeman brianteeman - close - 20 Aug 2017
avatar brianteeman
brianteeman - comment - 20 Aug 2017

Closed as there is a PR #17433

Add a Comment

Login with GitHub to post a comment