? ? Success

User tests: Successful: Unsuccessful:

avatar infograf768
infograf768
31 Oct 2016

This patch adds and normalise the custom Title strings for the Fields and Field Groups manager, edit and new for the 3 components concerned atm: com_users, com_contact, com_content.

As of now, we get generic Titles, example:
screen shot 2016-10-31 at 09 17 27

Instead of generic Titles we now get, for example for Articles:
screen shot 2016-10-31 at 09 13 11
screen shot 2016-10-31 at 09 14 00
screen shot 2016-10-31 at 09 14 30
screen shot 2016-10-31 at 09 14 57

Etc.

Please test for the 3 components

avatar infograf768 infograf768 - open - 31 Oct 2016
avatar infograf768 infograf768 - change - 31 Oct 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 31 Oct 2016
Labels Added: ? ?
avatar joomla-cms-bot joomla-cms-bot - change - 31 Oct 2016
Category Administration Language & Strings
avatar brianteeman
brianteeman - comment - 31 Oct 2016

Nice improvement

avatar infograf768
infograf768 - comment - 31 Oct 2016

Please mark the test OK on issues.joomla.org

avatar brianteeman
brianteeman - comment - 31 Oct 2016

I will as soon as I have tested it

avatar dgt41
dgt41 - comment - 31 Oct 2016

@infograf768 although I like this, I am gonna say I am against it for a simple reason: consistency. Think of the following case, user updates their site which got a few 3rdPD components. Core will be line Articles: Fields and everything else will be just Fields. So this will confuse people...

avatar brianteeman
brianteeman - comment - 31 Oct 2016

@dgt41 doesnt the 3pd component have to be updated to support fields? They
dont just appear automatically on every component iirc

On 31 October 2016 at 09:22, Dimitri Grammatikogianni <
notifications@github.com> wrote:

@infograf768 https://github.com/infograf768 although I like this, I am
gonna say I am against it for a simple reason: consistency. Think of the
following case, user updates their site which got a few 3rdPD components.
Core will be line Articles: Fields and everything else will be just Fields.
So this will confuse people...


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#12653 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABPH8bWVs1etWlXYAMrn7xyP56tAt7yCks5q5bNsgaJpZM4KkxNG
.

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
https://brian.teeman.net/ http://brian.teeman.net/

avatar dgt41
dgt41 - comment - 31 Oct 2016

@brianteeman mea culpa, I thought this was happening automagically

avatar infograf768
infograf768 - comment - 31 Oct 2016

@dgt41

Not sure I understand...
If a 3pd implements custom fields, it is their job to add similar strings. This is similar to _SAVE_SUCCESS, etc.
The fields and field groups are specific to each component using them.
If the 3pd component is NOT using com_fields, the fields and field Groups are just not proposed by the component.

The code in view.thml.php is made to implement this (for extensions that use com_fields)

// If a component categories title string is present, let's use it.
        if ($lang->hasKey($component_title_key = strtoupper($component . '_FIELDS_' . ($section ? $section : '')) . '_FIELDS_TITLE'))
        {
            $title = JText::_($component_title_key);
        }
        elseif ($lang->hasKey($component_section_key = strtoupper($component . '_FIELDS_SECTION_' . ($section ? $section : ''))))
        {
            // Else if the component section string exits, let's use it
            $title = JText::sprintf('COM_FIELDS_VIEW_FIELDS_TITLE', $this->escape(JText::_($component_section_key)));
        }
        else
        {
            $title = JText::_('COM_FIELDS_VIEW_FIELDS_BASE_TITLE');
        }
avatar infograf768
infograf768 - comment - 31 Oct 2016

BTW, found another weird issue when debugging language and editing an article Field Group:

*Not loaded** : JROOT/administrator/language/en-GB/en-GB.com_contentarticlefields.sys.ini
**Not loaded** : JROOT/administrator/components/com_contentarticlefields/language/en-GB/en-GB.com_contentarticlefields.sys.ini

Similar when editing a user Field Group

**Not loaded** : JROOT/administrator/language/en-GB/en-GB.com_usersuserfields.sys.ini
**Not loaded** : JROOT/administrator/components/com_usersuserfields/language/en-GB/en-GB.com_usersuserfields.sys.ini
avatar infograf768 infograf768 - change - 31 Oct 2016
Title
com_feeds: normalising, adding strings to the components concerned
com_fields: normalising, adding strings to the components concerned
avatar infograf768 infograf768 - edited - 31 Oct 2016
avatar infograf768 infograf768 - change - 31 Oct 2016
Title
com_feeds: normalising, adding strings to the components concerned
com_fields: normalising, adding strings to the components concerned
avatar joomla-cms-bot joomla-cms-bot - change - 31 Oct 2016
Labels Removed: ?
avatar andrepereiradasilva andrepereiradasilva - test_item - 31 Oct 2016 - Tested successfully
avatar andrepereiradasilva
andrepereiradasilva - comment - 31 Oct 2016

I have tested this item successfully on 788ec79

works as described


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/12653.

avatar brianteeman brianteeman - test_item - 31 Oct 2016 - Tested successfully
avatar brianteeman
brianteeman - comment - 31 Oct 2016

I have tested this item successfully on 788ec79


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/12653.

avatar zero-24 zero-24 - change - 31 Oct 2016
Status Pending Ready to Commit
avatar zero-24
zero-24 - comment - 31 Oct 2016

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/12653.

avatar joomla-cms-bot joomla-cms-bot - change - 31 Oct 2016
Labels Added: ?
avatar brianteeman brianteeman - change - 3 Nov 2016
Milestone Added:
avatar rdeutz rdeutz - close - 4 Nov 2016
avatar rdeutz rdeutz - merge - 4 Nov 2016
avatar rdeutz rdeutz - reference | 573b8e2 - 4 Nov 16
avatar rdeutz rdeutz - merge - 4 Nov 2016
avatar rdeutz rdeutz - close - 4 Nov 2016
avatar rdeutz rdeutz - change - 4 Nov 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-11-04 09:10:07
Closed_By rdeutz

Add a Comment

Login with GitHub to post a comment