Jump to content

$lang['OrderPlugin.client.name'] = "Order ";


EMar

Recommended Posts

I updated the $lang['OrderPlugin.client.name'] = "Order"; text in /plugins/order/language/en_us/order_plugin.php
But the title text under the link displays different text. I cleared the cache folder and my browser data, it still didn't change.

Any idea what the issue is and how to resolve?

i6nl0c.jpg

Link to comment
Share on other sites

The "OrderPlugin.client.name" definition is used in a couple locations:

  1. In the client navigation
  2. When listing available order forms on the /order/forms/ URI

For #2, the language is loaded from the language file, so it will appear as whatever definition you have set.

For #1, the language is translated to the default language and saved in the database under the `plugins_actions` table. This navigation language does not change, or reload, unless the Order plugin is installed/upgraded, and remains static from there on. We intend to update plugins to support multi-language definitions that are pulled from the plugin's language file instead of the database, but this is not currently integrated into Blesta.

Link to comment
Share on other sites

Honestly most of this I don't understand, how do do I fix it?

It's very confusing, why should the title text change if I only want to change the link text.

I mean the text is not changing in the link when I update that title text under it in plugins/order/language/en_us/order_plugin.php

There has to be a more convenient way to do these kind of edits.

Updating a menu link should be as easy as going to the admin area and changing the link text.
Updating that title text "Order" shouldn't affect the text under the link, it stresses me out just thinking about it.

Help please, is there a cache issue also?

Link to comment
Share on other sites

All text is stored in language files and can be changed there. However, links created by plugins are stored in the database, which you can update in the `plugin_actions` table. In a future update, the plugin links will be pulled from the language files.

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...