Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ticket/12563] Changes 2 style specific language variables for better understanding #2571

Merged
merged 4 commits into from
Jun 23, 2014

Conversation

Crizz0
Copy link
Member

@Crizz0 Crizz0 commented Jun 10, 2014

Little changes on two language variables.

PHPBB3-12563 - https://tracker.phpbb.com/browse/PHPBB3-12563

@@ -209,8 +209,8 @@ protected function action_install()
trigger_error($this->user->lang['NO_MATCHING_STYLES_FOUND'] . adm_back_link($this->u_action), E_USER_WARNING);
}
$message = implode('<br />', $messages);
$message .= '<br /><br />' . sprintf($this->user->lang['STYLE_INSTALLED_RETURN_STYLES'], $this->u_base_action . '&amp;mode=style');
$message .= '<br /><br />' . sprintf($this->user->lang['STYLE_INSTALLED_RETURN_UNINSTALLED'], $this->u_base_action . '&amp;mode=install');
$message .= '<br /><br />' . sprintf($this->user->lang['STYLE_INSTALLED_RETURN_INSTALLED_STYLES'], $this->u_base_action . '&amp;mode=style');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While on it, change to $this->user->lang(

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$message .= '<br /><br />' . $this->user->lang('STYLE_INSTALLED_RETURN_INSTALLED_STYLES', $this->u_base_action . '&mode=style');

Like this?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes atleast if i see it correct on my phone

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed it. Is working fine.

@Crizz0 Crizz0 changed the title [ticket/12563] Changes two style language variable for better understanding [ticket/12563] Changes two style language variables for better understanding Jun 12, 2014
@Crizz0 Crizz0 changed the title [ticket/12563] Changes two style language variables for better understanding [ticket/12563] Changes 2 style specific language variables for better understanding Jun 12, 2014
bantu added a commit to bantu/phpbb that referenced this pull request Jun 13, 2014
[ticket/12563] Changes 2 style specific language variables for better understanding

* Crizz0/ticket/12563:
  [ticket/12563] Removes strintf in acp_styles.php and shorts up <a>
  [ticket/12563] Changes 2 language variables to better understandable names
@@ -71,8 +71,8 @@
'STYLE_ERR_NAME_EXIST' => 'A style with that name already exists.',
'STYLE_ERR_STYLE_NAME' => 'You must supply a name for this style.',
'STYLE_INSTALLED' => 'Style "%s" has been installed.',
'STYLE_INSTALLED_RETURN_STYLES' => '<a href="%s">Click here</a> to return to installed styles list.',
'STYLE_INSTALLED_RETURN_UNINSTALLED' => '<a href="%s">Click here</a> to install more styles.',
'STYLE_INSTALLED_RETURN_INSTALLED_STYLES' => '<a href="%s">Return to installed styles list</a>.',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think these are full sentences anymore, so the dots at the end should be removed. It also looks weird that the dot is not part of the link.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is inconsistent with other messages, e.g.
information_1402702289662

@Crizz0
Copy link
Member Author

Crizz0 commented Jun 15, 2014

I'm trying to setup the << before the link, but it is not working:

$message .= '<br /><br /><a href="' . $this->u_base_action . '&amp;mode=style' . '">&laquo; ' .$this->user->lang('STYLE_INSTALLED_RETURN_INSTALLED_STYLES','','') . '</a>';

Just creates to wrong a-Elements.

@dhruvgoel92
Copy link
Contributor

as per IRC conversation, remove from language and use laquo and raquo for the two options "return to installed styles" and "install more styles" respectively.

dhruvgoel92 added a commit that referenced this pull request Jun 23, 2014
[ticket/12563] Changes 2 style specific language variables for better understanding
@dhruvgoel92 dhruvgoel92 merged commit dfbe072 into phpbb:develop-ascraeus Jun 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants