Send Email template to a List of Customers if status of them is registered

Honestly, I think your translation project is doomed. It’s very very complicated. All I use is simple “Find in files” to look at the contents of PHP files, but then you have to understand where that code is being used to then try and translate. It’s crazy to try and change the product in hundreds of places.

You can do the simple Module rename and just leave it there. Then see if you find any screen that really needs a change and try to figure out in which file you can translate.

But I don’t think the idea of calling something “Accounts” that is not the actual “Accounts” module has any future. That sounds like a really bad idea, sorry. I wish I could tell you different things, but I would be misleading you.

This is a very flexible, extensible and configurable product - but definitely not in the way you have in mind…

1 Like

Why not?

I have two type of people I have to do with. Customers (Accounts Module) and Couriers (Contacts Module). If I get the translation then I can use the Suite to maintain all information separately and use other Modules like Campaigns, Maps, Invoices with the default set up…

I made a Test: I translated almost all strings “Accounts”, “Account”, “accounts”, “account” into “Couriers”,“Courier”,“couriers”, “courier” but I think I got confused with some Modules for Example the Module “Email” who has a lot of strings “Accounts”…
Then I got it installed but there are some problems… I can see my translated Module “Couriers” but some labels are not translated.

By all means, go ahead if you think it’s worth the trouble. :slight_smile:

Remember very often the word “Accounts” is used in the context of Email accounts, so don’t translate those.

Remember that if you’re not translating in the custom folder, you’ll be losing your work when you install upgrades.

Good luck!

1 Like

what about if I will translate the upgrades before their installation?

That’s hard work, and completely unnecessary.

You have an upgrade-safe customization mechanism (the custom folder), it’s pretty simple and straight-forward, so… use it! :slight_smile:

1 Like

With “use the custom Folder” you mean maybe to create a custom module?

Listen - there are 45 replies in this conversation, that’s enough for me, nothing personal, I just need to do my work.

I gave you a link to an article on the custom folder, it has nothing to do with custom modules. Go read that article. If you don’t understand, search Google, you will find many things about it. Good luck.

1 Like

sorry but your answer does not give me a solution as I want to build a Module “Couriers” where I can put Information of People inside, run Campaigns, emails, invoices, maps and so on. I tried to make it with Module Builder but then I could not put the Couriers into a Target List to make a Campaign.

Hi pgr,

I tried this solution. I downloaded the en_GB.zip language pack, I renamed the words strings “Accounts” into “Couriers” and the words “Contacts” into “Accounts”. I uploaded the new custom language pack and it seems to work. Only some words “Accounts” and “Contacts” in the popup windows and in the invoices module are not renamed. So I thought about what you wrote:

“All I use is simple “Find in files” to look at the contents of PHP files, but then you have to understand where that code is being used to then try and translate. It’s crazy to try and change the product in hundreds of places.”

Could you please tell me how you find where the words are located? I mean I know only the “Inspect Element” function on Firefox Browser.

The ONLY upgrade-safe way to mess with labels is the one described in the “Customizing Labels” section in this document:
http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_6.5/Module_Framework/Language/

Your attempt with the en-GB language pack has this problem: when there is an upgrade, some labels will be changed by SalesAgility. These will come in files which will override the ones you altered. The same goes for the language packs: new SuiteCRM version, new Pack comes out, you upgrade the pack, lose your values. If you don’t upgrade the pack, there will be missing labels which might cause the app to break.

Doing the changes in the custom files, you only change the labels you need, the rest of the labels gets picked up from it’s original location. So the chances for these problems are much, much lower.


About what you ask, how to find where a certain label is. There is no easy way, nor a certain way. Normally I just look at the screen (or the inspector window), look for a string that looks specific to that string, that shouldn’t appear anywhere else, and try a “find in Files” (or a grep, in Linux) to see where that appears. Sometimes you get many labels and it’s hard to know which one you should be changing.

1 Like

ok, thanks a lot for your answer,

Assuming that the Module “Accounts” has a lot of relationships with other Modules, I could create these Files as example:

./custom/Extension/modules/Accounts/Ext/Language/en_GB.lang.php
./custom/Extension/modules/Cases/Ext/Language/en_GB.lang.php
./custom/Extension/modules/Contacts/Ext/Language/en_GB.lang.php
./custom/Extension/modules/Leads/Ext/Language/en_GB.lang.php
./custom/Extension/modules/Opportunities/Ext/Language/en_GB.lang.php
/… and so on for all Modules…

and after that I will write inside the en_GB.lang.php these values as example:

Is this fine?

Hi pgr,

I made some tests:

I reinstalled the SuiteCRM7.9.7 on my localhost
I installed the en_GB.lang.zip language pack
I went into the folder ./custom/Extension/modules/ and I found these folders:

I created new en_GB.lang.php files. Here an example:

I put the en_GB.lang.php files in the respective directories /custom/Extension/modules//Ext/Language/
I restarted apache and mysql
I deleted the cache on my browser
I made a login chosing the English (US) because if I selected the English (United Kingdom) I got a white blank page. So I logged in with the English (US) Language, made a quick and rebuild.
I logged out and I deleted the cache of my browser
I tried to login with the English (United Kingdom) but as I said I became a white blank page.

Do not know if it is a problem of how I wrote the code in the en_GB.lang.php files or if I made mistakes following the instruction.

First, try removing the closing tag from the PHP file (?>).

Then, if that doesn’t solve it, check if the Quick Repair and Rebuild is producing files in

./custom/Extension/modules//Ext/Language/.<unique_name>.php

and if these files look ok.

The blank page should be a PHP Fatal error caused by a missing apostrophe or semicolon or bracket. The php_errors.log should tell you exactly what it is.

1 Like

I checked my log errors and there was some writing errors in the php files. After I corrected them I could log in as usual.

I made some tests:

I unzipped the en_GB.lang.zip file and I went to \en-GB\modules\Accounts. I opened the file en_GB.lang.php and I searched all Labels having the words “Accounts”, “Account”, “accounts”, “account”, “Contacts”, “Contact”, “contacts”, “contact”. I put them in a new file called en_GB.lang.php and I renamed them. Here the code of it:

I pasted it into suitecrm797\custom\Extension\modules\Accounts\Ext\language. I made a quick and repair that generated the same files into suitecrm797\custom\modules\Accounts\Ext\Language. I logged out, deleted the browser cache. Logged in with the English (United Kingdom) language. and I could see some changes in the module Account for example “Create Courrier” and so on.

Now the question: How can I change the “Create Account” word in the Quick create dropdown menu on the top bar? I see in the \htdocs\suitecrm797\custom\modules only these folders:

That label is called LBL_QUICK_ACCOUNT and it’s in application folder, not a module folder.

Use some “find in files” program (on Windows, I suggest Notepad++) to find more instances of the Account word. you have only started to scratch the surface of your task…

1 Like

ok, so if I want to rename that “Create Account” into other languages shall I create something like this?:

where can I paste this php files?

You can use the forum’s “code” tags to paste PHP without losing the brackets.

Although I am doing my best to help, I think your efforts are misguided and condemned to failure. That was for one language. Now you tell me you want to do this for several languages?

1 Like

I can rename the labels for the modules into \custom\Extension\modules so it is upgrade safe.

For the system labels I can change the labels into the language pack if they are a few labels (hope so).

Do you know where I can find the label LBL_QUICK_ACCOUNT under the language pack?

No, I don’t know where that label is, but Notepad++ does :slight_smile:

1 Like

I think I will only rename the language pack as I need a complete translation of the SuiteCRM with all labels (System’s Labels and Module’s labels too).

If there will be an upgrade I will check it before to install and the same for an upgrade of the language pack.