?
avatar zero-24
zero-24
10 Apr 2017

Steps to reproduce the issue

  • install staging
  • install e.g german (or any other 3.6.5 language pack)
  • switch to that language in the backend

Expected result

??COM_ASSOCIATIONS?? in the components dropdown

Actual result

"Multilingual Associations" (even without the ** arround it)
image

Additional comments

It work for the other dropdowns but not for the component dropdown?
image

avatar zero-24 zero-24 - open - 10 Apr 2017
avatar joomla-cms-bot joomla-cms-bot - change - 10 Apr 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 10 Apr 2017
avatar alikon
alikon - comment - 10 Apr 2017

work for @infograf768 ?
?

avatar AlexRed
AlexRed - comment - 10 Apr 2017

I can confirm the problem on Joomla! 3.7.0-RC2 (nightly Build)

I think you need to add in the "Steps to reproduce the issue" enable Debug Language in global configuration


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15211.
avatar franz-wohlkoenig franz-wohlkoenig - change - 11 Apr 2017
Category com_associations Language & Strings
avatar franz-wohlkoenig franz-wohlkoenig - change - 11 Apr 2017
Status New Confirmed
avatar infograf768
infograf768 - comment - 11 Apr 2017

Interesting...
You will remark that we do now get the correct ?? when the ini file does not exist at all grace to my PR #14801
i.e.
screen shot 2017-04-11 at 10 12 03

But not for the admin menu where the alias set in the db ( https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_admin/script.php#L143) created by the script is used.

Let's see what we can do.

avatar infograf768
infograf768 - comment - 11 Apr 2017

Looks like it is due to the /administrator/modules/mod_menu/helper.php

If I change to

					if (!JFactory::getConfig()->get('debug_lang'))
					{
						$component->text = $lang->hasKey($component->title) ? JText::_($component->title) : $component->alias;
					}
					else
					{
						$component->text = $lang->hasKey($component->title) ? JText::_($component->title) : JText::_(strtoupper($component->element));
					}

I would get:
screen shot 2017-04-11 at 10 53 14

Would that be satisfactory?

avatar infograf768
infograf768 - comment - 11 Apr 2017

or we could use JText::_(strtoupper($component->alias)) instead of element

avatar zero-24
zero-24 - comment - 11 Apr 2017

Thanks @infograf768 i have done a PR #15231 which just uses the magic in Joomla. As there is no fallback needed ;)

Closing here.

avatar zero-24 zero-24 - change - 11 Apr 2017
Status Confirmed Closed
Closed_Date 0000-00-00 00:00:00 2017-04-11 18:11:39
Closed_By zero-24
avatar zero-24 zero-24 - close - 11 Apr 2017

Add a Comment

Login with GitHub to post a comment