Steps to replicate :
Enable Plugins > User - Profile
Under User profile fields for registration and administrator user forms > Enable Phone number
Override and check front end registration form. There is no effect of override
Now manually change PLG_USER_PROFILE_FIELD_PHONE_LABEL under administrator/language/en-GB/en-GB.plg_user_profile.ini . The change in the value will be reflected on Frontend Registration form
Strangely the override should work when change is made in frontend language file, but it works when I make change in backend language file manually
The constant appears under administrator/language/overrides/en-GB.override.ini but everytime I update Joomla, I have to manually change its value in en-GB.plg_user_profile.ini file
Should work when the language file iis overridden
No effect on frontend Phone: value
Thanks for reporting this but I am closing it as expected behaviour. When creating an override for a string in the admin (plugins are in the admin) there is an option "For Both Locations" - see the tooltip
If this box is checked the override will be stored for both administrator (Backend) and site (Frontend). This is essential for creating language overrides for some plugins because their language files, while stored in backend, are also used in frontend (example: plg_content_vote).
Please note that the two overrides will be completely independent from each other after storing them.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-10-26 08:39:24 |
Closed_By | ⇒ | brianteeman |
Thanks
Thats what I am trying to say. Its not even available in front end.
Try this :
Extension > Languages > Override > New
and search for PLG_USER_PROFILE_FIELD_PHONE_LABEL costant
It will say No result found.
Am I making sense?
On Wed, Oct 26, 2016 at 1:54 PM, Helios Ciancio notifications@github.com
wrote:
Hi irfanmoosani,
Joomla uses administrator/language/overrides/en-GB.override.ini for the
backend and language/overrides/en-GB.override.ini for the frontend. So,
you have to set PLG_USER_PROFILE_FIELD_PHONE_LABEL into the file
language/overrides/en-GB.override.ini too.—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#12567 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA8nO_AJdiFQK68BqRT7XBFKd-9T89qwks5q3w5RgaJpZM4Kg1_L
.
Irfan Moosani
+91-9898722266
Facebook : https://www.facebook.com/irfan.moosani
Twitter : @irfanmusani
Linkedin : https://www.linkedin.com/in/irfan-moosani-3600a37
Joomlers : http://volunteers.joomla.org/joomlers/irfan-moosani
Joomla! User Network Ahmedabad (JUGAhmedabad) Manager.
Plugins don't have a frontend language file. Their language files only exist in the administrator directory.
Its says no result found because there is nothing to find
Interesting.
Although we do indeed have a tip for the For Both Locations
when creating an override for the admin files, this tip will not show when looking for a string while searching in site as the box is not present there.
I wonder if we should add the plugin matter in
COM_LANGUAGES_VIEW_OVERRIDE_SEARCH_TIP="A language string is composed of two parts: a specific language constant and its value.<br />For example, in the string: COM_CONTENT_READ_MORE="Read more: "<br />'<u>COM_CONTENT_READ_MORE</u>' is the constant and '<u>Read more: </u>' is the value.<br />You have to use the specific language constant in order to create an override of the value.<br />Therefore, you can search for the constant or the value you want to change with the search field below.<br />By selecting the desired result the correct constant will automatically be inserted into the form."
Another way, more complex, would be to search in the admin files if no result while searching in site files and, if a result is obtained, display a message and let use the constant.
Hi irfanmoosani,
Joomla uses administrator/language/overrides/en-GB.override.ini for the backend and language/overrides/en-GB.override.ini for the frontend. So, you have to set PLG_USER_PROFILE_FIELD_PHONE_LABEL into the file language/overrides/en-GB.override.ini too.