aDaneInSpain / component-creator-issues

A code-free repository for handling issues and feature requests for Component Creator for Joomla
https://www.component-creator.com
11 stars 0 forks source link

Feature Request: Remove extra language strings that already exist in global Joomla language files #387

Closed blueline86 closed 3 years ago

blueline86 commented 4 years ago

There are many examples where custom language strings are created in component creator when a global string already exists. Fields like id, title, alias, description, hits, access, layout, tags, created, created_by, modified, modified_by, ordering, state, etc all have strings some of which are and some that aren't used in component creator.

Ideally, some more of these string would be used so that there are not 15 definitions for "ID" in the language files.

For user-editable fields, perhaps these strings could be the default. If the user edits then they can still override them. For the order list in the admin section, no such overrides would be needed.

For the order by list in the admin section currently, all custom strings are used when once again there are standard strings for the usual fields.

In "en-GB.ini"

JGLOBAL_FIELD_ID_LABEL="ID" JGLOBAL_FIELD_ID_DESC="Record number in the database."

JGLOBAL_TITLE="Title"

JFIELD_ALIAS_DESC="The Alias will be used in the SEF URL. Leave this blank and Joomla! will fill in a default value from the title. This value will depend on the SEO settings (Global Configuration->Site).
Using Unicode will produce UTF-8 aliases. You may also enter manually any UTF-8 character. Spaces and some forbidden characters will be changed to hyphens.
When using default transliteration it will produce an alias in lower case and with dashes instead of spaces. You may enter the Alias manually. Use lowercase letters and hyphens (-). No spaces or underscores are allowed. Default value will be a date and time if the title is typed in non-latin letters ." JFIELD_ALIAS_LABEL="Alias" JFIELD_ALIAS_PLACEHOLDER="Auto-generate from title"

JAUTHOR="Author" JGLOBAL_FIELD_LAYOUT_DESC="Default layout to use for items." JGLOBAL_FIELD_LAYOUT_LABEL="Choose a Layout"

JFIELD_LANGUAGE_DESC="Assign a language to this article." JFIELD_LANGUAGE_LABEL="Language"

JFIELD_ACCESS_DESC="Access level for this content." JFIELD_ACCESS_LABEL="Access"

JFIELD_META_DESCRIPTION_DESC="Metadata description." JFIELD_META_DESCRIPTION_LABEL="Meta Description"

JFIELD_META_KEYWORDS_DESC="Keywords describing the content." JFIELD_META_KEYWORDS_LABEL="Keywords"

JFIELD_META_RIGHTS_DESC="Describe what rights others have to use this content." JFIELD_META_RIGHTS_LABEL="Content Rights"

JFIELD_ORDERING_DESC="Ordering of the article within the category." JFIELD_ORDERING_LABEL="Ordering"

JFIELD_PUBLISHED_DESC="Set publication status."

JGLOBAL_HITS="Hits"'

JTAG="Tags" JTAG_DESC="Assign tags to content items. You may select a tag from the pre-defined list or enter a new tag by typing the name in the field and pressing enter." JTAG_FIELD_SELECT_DESC="Select the tag to use."

JGLOBAL_FIELD_CREATED_BY_LABEL="Created By" JGLOBAL_FIELD_CREATED_DESC="Created Date." JGLOBAL_FIELD_CREATED_LABEL="Created Date" JGLOBAL_FIELD_MODIFIED_LABEL="Modified Date" JGLOBAL_FIELD_MODIFIED_BY_DESC="The user who did the last modification." JGLOBAL_FIELD_MODIFIED_BY_LABEL="Modified By" JGLOBAL_FIELD_FIELD_ORDERING_DESC="Order items will be displayed in." JGLOBAL_FIELD_FIELD_ORDERING_LABEL="Order"

For ordering select list:

JGLOBAL_TITLE_ASC="Title ascending" JGLOBAL_TITLE_DESC="Title descending" JASSOCIATIONS_ASC="Associations ascending" JASSOCIATIONS_DESC="Associations descending" JAUTHOR_ASC="Author ascending" JAUTHOR_DESC="Author descending" JCATEGORY_ASC="Category ascending" JCATEGORY_DESC="Category descending" JDATE_ASC="Date ascending" JDATE_DESC="Date descending" JFEATURED_ASC="Featured ascending" JFEATURED_DESC="Featured descending" JSTATUS_ASC="Status ascending" JSTATUS_DESC="Status descending" JGLOBAL_HITS_ASC="Hits ascending" JGLOBAL_HITS_DESC="Hits descending" JGRID_HEADING_ACCESS_ASC="Access ascending" JGRID_HEADING_ACCESS_DESC="Access descending" JGRID_HEADING_ID_ASC="ID ascending" JGRID_HEADING_ID_DESC="ID descending" JGRID_HEADING_LANGUAGE_ASC="Language ascending" JGRID_HEADING_LANGUAGE_DESC="Language descending" JGRID_HEADING_ORDERING_ASC="Ordering ascending" JGRID_HEADING_ORDERING_DESC="Ordering descending"

hakanara commented 4 years ago

Great reco. Thank you :-)

blueline86 commented 3 years ago

COM_XXX_SEARCH_FILTER_SUBMIT = "Search" COM_XXX_SEARCH_TOOLS = "Search Tools" COM_XXX_SEARCH_TOOLS_DESC = "Filter the list items" COM_XXX_SEARCH_FILTER_CLEAR = "Clear filter"

JSEARCH_FILTER="Search" JSEARCH_FILTER_SUBMIT="Search" JSEARCH_TOOLS="Search Tools" JSEARCH_TOOLS_DESC="Filter the list items." JSEARCH_FILTER_CLEAR="Clear" JSEARCH_FILTER_LABEL="Filter" JFILTER_OPTIONS="Filter Options" JSEARCH_TOOLS_ORDERING="Order by:" JTABLE_OPTIONS="Table Options" JTABLE_OPTIONS_ORDERING="Order by:"

Any ID string On forms: JGLOBAL_FIELD_ID_LABEL="ID" On Lists: JGRID_HEADING_ID="ID"

CarlFuentes2020 commented 3 years ago

The langauges have been replaced

hakanara commented 3 years ago

Another big contribution to the community. Thank you very much.