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

Allow extension name, description and author name to be translated

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Won't Fix
    • 3.1.10-RC1, 3.2.0-RC1
    • None
    • Extensions
    • None

    Description

      Hi guys,

      In ACP >> Customise, extension name, description and author role are not translated.
      It will be great if phpBB allow extensions author to use lang keys to translate this three (and maybe more) items.

      suggested code to add in phpbb\extension\metadata_manager:

      	/**
      	 * Returns the language key if exists
      	 *
      	 * @return string
      	 */
      	public function get_metadata_language_key($lang_key)
      	{
      		if (isset($this->user->lang[$lang_key]))
      		{
      			return $this->user->lang[$lang_key];
      		}
       
      		return $lang_key;
      	}
      

      Attachments

        Activity

          People

            CHItA CHItA
            Skouat Skouat
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: