Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-12143

Untranslated group name from index if not special group

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 3.0.12, 3.1.0-a2
    • 3.2.0-a1
    • ACP
    • None

    Description

      Hello,
      I found a minor problem with group legend in forum index.

      Go to ACP:
      Create a closed/invisible/open group named: "FORUM_OWNER"

      Go to language/xx/common.php
      Set the dedicated language key:
      'G_FORUM_OWNER' => 'Forum Owner',
      Save file, back to acp => group overview:
      Yes, you can see the translated group: Forum Owner

      Go to your forum index/group page:
      "FORUM_OWNER" :|

      The group must be special instead of closed/open/invisible to benefit the translation cuz we see something like that in index.php/memberlist.php
      $group_name = ($row['group_type'] == GROUP_SPECIAL) ? $user->lang['G_' . $row['group_name']] : $row['group_name'];

      I suggest to replace $row['group_type'] == GROUP_SPECIAL by isset($user->lang['G_' . $row['group_name']]) so it allow administrators to internationalize their groups name without jumping in database to set groupe type to special (3).

      Regards,
      Geolim4

      Attachments

        Activity

          People

            Elsensee Oliver Schramm [X] (Inactive)
            Geolim4 Geolim4 [X] (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: