# How to rename “Ref.” and “Label” only in Projects module?

**URL:** <https://www.dolibarr.org/forum/t/how-to-rename-ref-and-label-only-in-projects-module/30657>\
**Category:** Other native modules\
**Tags:** Translations\
**Created:** [September 22, 2025, 12:04am UTC](https://www.dolibarr.org/forum/t/how-to-rename-ref-and-label-only-in-projects-module/30657 "2025-09-22T00:04:05Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![his\_africa](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/h/aca169/32.png) [@his\_africa](https://www.dolibarr.org/forum/u/his_africa)\
**Post date:** [September 22, 2025, 12:04am UTC](https://www.dolibarr.org/forum/t/how-to-rename-ref-and-label-only-in-projects-module/30657/1 "2025-09-22T00:04:05Z")

</div>

I want to change the fields display names “Ref.” and “Label” to “Project Number” and “Project Name” **only in the Projects module**.

- I tried using the global override in Translations, but this changes the labels everywhere, which I don’t want.
- I also tried editing `projects.lang` directly in the core language `en_US` folder, which I believe is not the correct approach, but it still doesn’t work as expected.

Am I missing something? What is the proper way to safely rename these labels **only for the Projects module** without affecting other modules?

* * *

 ![image](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/b/bb70528ff301f85884b87bb764f34e8b6490f3fb.png)

---

<div class="post-metadata">

**Author:** ![jonbendtsen](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/j/977dab/32.png) [@jonbendtsen](https://www.dolibarr.org/forum/u/jonbendtsen)\
**Post date:** [September 22, 2025, 7:59am UTC](https://www.dolibarr.org/forum/t/how-to-rename-ref-and-label-only-in-projects-module/30657/2 "2025-09-22T07:59:17Z")

</div>

1. just how important is this really?
2. You could edit the HTML file directly and then just replace it at every upgrade

---

<div class="post-metadata">

**Author:** ![his\_africa](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/h/aca169/32.png) [@his\_africa](https://www.dolibarr.org/forum/u/his_africa)\
**Post date:** [September 22, 2025, 8:49am UTC](https://www.dolibarr.org/forum/t/how-to-rename-ref-and-label-only-in-projects-module/30657/3 "2025-09-22T08:49:05Z")

</div>

You are right; it may not be that important. However, someone still has to figure out where this is in the code, and not everyone can read the code to determine that. Also, does this not break the principle of not hacking the core? How about I create a pull request to add this, if it’s worthwhile for the sake of the community? We have the translators, but they are not being referenced in the code. Here is the change I made in html and this solved the issue, but not sure we want to this every time a new Dolibarr comes out.

 ![image](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/e/e46d4685e7337a3358b9b7fa99223c882152ed4c.jpeg)  
 ![image](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/d/d02c06fb469aa90f6ce8ff12c215d10bc2f34290.png)

---

<div class="post-metadata">

**Author:** ![jonbendtsen](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/j/977dab/32.png) [@jonbendtsen](https://www.dolibarr.org/forum/u/jonbendtsen)\
**Post date:** [September 23, 2025, 6:26am UTC](https://www.dolibarr.org/forum/t/how-to-rename-ref-and-label-only-in-projects-module/30657/4 "2025-09-23T06:26:53Z")

</div>

are both pictures the before picture? Then we can not see the changes?

---

<div class="post-metadata">

**Author:** ![saikatkoley](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/saikatkoley/32/8716_2.png) [@saikatkoley](https://www.dolibarr.org/forum/u/saikatkoley)\
**Post date:** [September 23, 2025, 7:04am UTC](https://www.dolibarr.org/forum/t/how-to-rename-ref-and-label-only-in-projects-module/30657/5 "2025-09-23T07:04:38Z")

</div>

Hi @his_africa,

You can do this from here.

 ![image](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/9/93a26b33ccac63bf30753276fe467a85222a3058.png)

Or if you want to do it in the Project module only, then you will have to change the card.php page too. Add a new translation string and also add the new translation from the translation menu.

Thanks & Regards  
Saikat Koley  
[https://www.linkedin.com/in/saikatkoley](https://www.linkedin.com/in/saikatkoley)

---

<div class="post-metadata">

**Author:** ![his\_africa](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/h/aca169/32.png) [@his\_africa](https://www.dolibarr.org/forum/u/his_africa)\
**Post date:** [September 23, 2025, 7:47am UTC](https://www.dolibarr.org/forum/t/how-to-rename-ref-and-label-only-in-projects-module/30657/6 "2025-09-23T07:47:26Z")

</div>

This has been fixed. The correct “after” screenshot added.

---

<div class="post-metadata">

**Author:** ![his\_africa](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/h/aca169/32.png) [@his\_africa](https://www.dolibarr.org/forum/u/his_africa)\
**Post date:** [September 23, 2025, 8:02am UTC](https://www.dolibarr.org/forum/t/how-to-rename-ref-and-label-only-in-projects-module/30657/7 "2025-09-23T08:02:46Z")

</div>

Hi @saikatkoley, yes, this applies only to the Project module. As you mentioned, changing `Ref` and `Label` in Translations affects other modules, so we’re aligned that modifying `projet/card.php` is the right approach.

However, this does break the principle of not changing the `core`. It means that with every new Dolibarr update, someone would need to manually re-apply this change.

Another possible approach would be to use `hooks`, but currently there’s no hook available to change this section in Projects since these fields are hard-coded in the form. The only hook available is `formObjectOptions`, which only lets us add additional fields.

Do you or the community think it’s worthwhile to submit a pull request for this?

---

<div class="post-metadata">

**Author:** ![saikatkoley](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/saikatkoley/32/8716_2.png) [@saikatkoley](https://www.dolibarr.org/forum/u/saikatkoley)\
**Post date:** [September 23, 2025, 5:41pm UTC](https://www.dolibarr.org/forum/t/how-to-rename-ref-and-label-only-in-projects-module/30657/8 "2025-09-23T17:41:02Z")

</div>

> [@his\_africa](#):
>
> I want to change the fields display names “Ref.” and “Label” to “Project Number” and “Project Name” **only in the Projects module**.
> 
> - I tried using the global override in Translations, but this changes the labels everywhere, which I don’t want.
> - I also tried editing `projects.lang` directly in the core language `en_US` folder, which I believe is not the correct approach, but it still doesn’t work as expected.
> 
> Am I missing something? What is the proper way to safely rename these labels **only for the Projects module** without affecting other modules?

Hi @his_africa

Yes, you are right, you can use a hook and JS in that hook. Therefore, it will update the string on that page’s UI.

Thanks  
Saikat Koley  
[https://www.linkedin.com/in/saikatkoley](https://www.linkedin.com/in/saikatkoley)
