Jump to content

Gateway Name In Multilanguage


activa

Recommended Posts

Hello ,

 

we want to see the gateway name in multi-language , some payment method are not standard and not a universal term .

 

something like paypal , stripe .. can be universal , but some like money order , bank, wire transfer , direct deposit , ect .. are not universal, and they change with every language .

 

what i suggest is to store the language definition like "Gateway_money_order" instead of the gateway name in the language file .

 

and then when we fetch the gateway data from database, we have the language var and just we need to use it as language var . that way we can get the gateway name in any language in use .

 

what do you thinks ?

 

 

 

Link to comment
Share on other sites

Personally, I'm not opposed to using language definitions for gateways. Can you give an example of a gateway name that is written differently in different languages? Usually, at least most of the time for English, the name of something is always written the same no matter what language it originated from.

 

The reason names don't use language definitions now, besides what I already mentioned, is due to the performance trade-off. Most people don't really consider the amount of time and CPU cycles required to load more language files on several other pages wherever gateway names, module names, etc., are shown.

Link to comment
Share on other sites

Somewhat related feature request: http://www.blesta.com/forums/index.php?/topic/4498-non-merchant-gateways-option-to-offer-more-than-one-entry-in-payment-method-list/

 

Right now Blesta only displays the name of the non-merchant gateway (e.g. 2checkout, bitpay) in the payment methods list, while most customers are expecting the actual payment methods (credit card, bitcoin) they want to use listed instead. And in that case it should be possible to have more than one entry in the list as well (single non-merchant gateway, can handle multiple payment methods)

Link to comment
Share on other sites

 

The reason names don't use language definitions now, besides what I already mentioned, is due to the performance trade-off. Most people don't really consider the amount of time and CPU cycles required to load more language files on several other pages wherever gateway names, module names, etc., are shown.

 

it will only need a include file .

 

let say we will create a language file named "gateway_name.php" in the gateway language folder , inside the file we will put just the gateway name and the description . then we will use it as included file in the gateway , and use it in the GatewayManager.php model .

 

i have tested a semilar solution in the past in my test server and it was working . 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...