Jump to content

Recommended Posts

  • 7 months later...
Posted
  On 9/16/2015 at 6:16 AM, sktan said:

Is it possible yet to do this?

 

The way to do this is set the name via the language files and then just put the name in each language but hey "let's all say no".

 

Example:

	 /**
	 * Returns the name of this plugin
	 *
	 * @return string The common name of this plugin
	 */
	public function getName() {
		return Language::_("SharedLoginPlugin.name", true);	
	}
Posted
  On 9/19/2015 at 4:05 PM, Licensecart said:

 

The way to do this is set the name via the language files and then just put the name in each language but hey "let's all say no".

 

Example:

	 /**
	 * Returns the name of this plugin
	 *
	 * @return string The common name of this plugin
	 */
	public function getName() {
		return Language::_("SharedLoginPlugin.name", true);	
	}

 

after gateway installation , the gateway name has no relation with languages files . so edit delete has no impact of the displayed name .

 

the only solution i see now is to hack gateway-manager.php model , to make it fetch the name from file and not from database . is not so hard , i will share my solution in the next minutes .

Posted
  On 9/19/2015 at 10:38 PM, naja7host said:

after gateway installation , the gateway name has no relation with languages files . so edit delete has no impact of the displayed name .

 

the only solution i see now is to hack gateway-manager.php model , to make it fetch the name from file and not from database . is not so hard , i will share my solution in the next minutes .

 

Ah never knew that.

Posted
  On 9/19/2015 at 4:05 PM, Licensecart said:

 

The way to do this is set the name via the language files and then just put the name in each language but hey "let's all say no".

 

Example:

	 /**
	 * Returns the name of this plugin
	 *
	 * @return string The common name of this plugin
	 */
	public function getName() {
		return Language::_("SharedLoginPlugin.name", true);	
	}

 

I think I tried that and also forced a gateway upgrade by changing the version number, but the gateway name showed to clients is determined by what's stored on the database (which doesn't change).

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...