# BundleUtil could not localize the properties

**URL:** <https://forum.inductiveautomation.com/t/bundleutil-could-not-localize-the-properties/35962>\
**Category:** Module Development\
**Tags:** vision, ignition80\
**Created:** [June 24, 2020, 3:47am UTC](https://forum.inductiveautomation.com/t/bundleutil-could-not-localize-the-properties/35962 "2020-06-24T03:47:35Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhouhcupb](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zhouhcupb/32/16095_2.png) [@zhouhcupb](https://forum.inductiveautomation.com/u/zhouhcupb)\
**Post date:** [June 24, 2020, 3:47am UTC](https://forum.inductiveautomation.com/t/bundleutil-could-not-localize-the-properties/35962/1 "2020-06-24T03:47:36Z")

</div>

Hi there,

I am new to Ignition module development. I read the “gateway-webpage” example from the ignition-sdk-example in github and trying to build a similar module by myself.

I create a new module by using maven archetypes. Then copy the code from the example to my new created directory.

But there is a localization error. The properties of the module are not configured properly.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/0/a0920d4201dd6464274722d17ab7f23e6e531c43.png)

Compared with the example code, the only change is the groupId and moduleId. I do not know why the example code can work properly but my new created directory can not.

example code: [GitHub - ChichiZhou/ignitiontest2](https://github.com/ChichiZhou/ignitiontest2)  
my code: [GitHub - ChichiZhou/ignitiontest](https://github.com/ChichiZhou/ignitiontest)

---

<div class="post-metadata">

**Author:** ![zhouhcupb](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zhouhcupb/32/16095_2.png) [@zhouhcupb](https://forum.inductiveautomation.com/u/zhouhcupb)\
**Post date:** [June 24, 2020, 5:20am UTC](https://forum.inductiveautomation.com/t/bundleutil-could-not-localize-the-properties/35962/2 "2020-06-24T05:20:48Z")

</div>

To answer my own question. There is a log saying that  
`java.util.MissingResourceException: Can't find bundle for base name com/hezho/makework/***, locale en_US`.

This means the directory is not detected by maven.

The solution is to create the directory again manually. Then restart the Gateway using  
`gwcmd -r`

---

<div class="post-metadata">

**Author:** ![YF129701](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/yf129701/32/60498_2.png) [@YF129701](https://forum.inductiveautomation.com/u/YF129701)\
**Post date:** [November 15, 2022, 9:25pm UTC](https://forum.inductiveautomation.com/t/bundleutil-could-not-localize-the-properties/35962/3 "2022-11-15T21:25:12Z")

</div>

Running into this issue right now... Could you expand on what you mean by recreating the directory manually? Which directory and how?

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [November 16, 2022, 5:42am UTC](https://forum.inductiveautomation.com/t/bundleutil-could-not-localize-the-properties/35962/4 "2022-11-16T05:42:45Z")

</div>

Unfortunately, zhouhcupb hasn't been seen in two years, so hopefully somebody else can provide the answer.

---

<div class="post-metadata">

**Author:** ![Ilya\_Kirbizhekov](https://avatars.discourse-cdn.com/v4/letter/i/e36b37/32.png) [@Ilya\_Kirbizhekov](https://forum.inductiveautomation.com/u/Ilya_Kirbizhekov)\
**Post date:** [November 15, 2023, 8:24am UTC](https://forum.inductiveautomation.com/t/bundleutil-could-not-localize-the-properties/35962/5 "2023-11-15T08:24:47Z")

</div>

I have same issue, help!!!

---

<div class="post-metadata">

**Author:** ![weixionglichina](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/weixionglichina/32/10650_2.png) [@weixionglichina](https://forum.inductiveautomation.com/u/weixionglichina)\
**Post date:** [December 6, 2023, 9:16am UTC](https://forum.inductiveautomation.com/t/bundleutil-could-not-localize-the-properties/35962/6 "2023-12-06T09:16:05Z")

</div>

Please add resource file like module\_gateway.properties under src/main/resouce and add your strings

---

<div class="post-metadata">

**Author:** ![Ilya\_Kirbizhekov](https://avatars.discourse-cdn.com/v4/letter/i/e36b37/32.png) [@Ilya\_Kirbizhekov](https://forum.inductiveautomation.com/u/Ilya_Kirbizhekov)\
**Post date:** [December 6, 2023, 9:34am UTC](https://forum.inductiveautomation.com/t/bundleutil-could-not-localize-the-properties/35962/7 "2023-12-06T09:34:59Z")

</div>

I did. I did same things as described in the SDK example, and build from scratch.. I added resource (I use IDEA), I even added two resource files with different locales, EN-US.. and then I " BundleUtil.get().addBundle("ParamValues", this.getClass(), "ParamValues");" in the gateway startup block, it just can't add, I am not sure why, file is presented.. in the debugger mode, when I add variables in watch list, I can see that under previously created local EN-US, you have a list with all parameter values. However, when I added my bundle, under name in watch list in debugger the list is empy, there are no locale attached.. I opened doco java class, there are phrase that if bundle not specified, will be used default, and default shows question marks.... I can't attach bundle not sure why.. and can't link EN-US locale.. Regards, Ilya.

---

<div class="post-metadata">

**Author:** ![weixionglichina](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/weixionglichina/32/10650_2.png) [@weixionglichina](https://forum.inductiveautomation.com/u/weixionglichina)\
**Post date:** [December 6, 2023, 9:49am UTC](https://forum.inductiveautomation.com/t/bundleutil-could-not-localize-the-properties/35962/8 "2023-12-06T09:49:00Z")

</div>

Could you please attached screenshots where you use your strings and your reources hierarchy.

I load bundle by following:  
BundleUtil.get().addBundle(DesignerHook.class.getSimpleName(),  
DesignerHook.class.getClassLoader(), DesignerHook.class.getName().replace('.', '/'));

---

<div class="post-metadata">

**Author:** ![Ilya\_Kirbizhekov](https://avatars.discourse-cdn.com/v4/letter/i/e36b37/32.png) [@Ilya\_Kirbizhekov](https://forum.inductiveautomation.com/u/Ilya_Kirbizhekov)\
**Post date:** [December 6, 2023, 10:08am UTC](https://forum.inductiveautomation.com/t/bundleutil-could-not-localize-the-properties/35962/9 "2023-12-06T10:08:56Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/a/2a381b1409d013f0dadf8f94123b53217c5cbc3b.png)

---

<div class="post-metadata">

**Author:** ![Ilya\_Kirbizhekov](https://avatars.discourse-cdn.com/v4/letter/i/e36b37/32.png) [@Ilya\_Kirbizhekov](https://forum.inductiveautomation.com/u/Ilya_Kirbizhekov)\
**Post date:** [December 6, 2023, 10:11am UTC](https://forum.inductiveautomation.com/t/bundleutil-could-not-localize-the-properties/35962/10 "2023-12-06T10:11:06Z")

</div>

All standard, but when you use example Home Page, all works, I do not know where is difference and what is the difference. if you clone from git project and build all works, I created project from archetype, something missing perhaps. I just think that something missing in POM file some dependency but not sure which one. Ilya.

---

<div class="post-metadata">

**Author:** ![weixionglichina](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/weixionglichina/32/10650_2.png) [@weixionglichina](https://forum.inductiveautomation.com/u/weixionglichina)\
**Post date:** [December 6, 2023, 10:57am UTC](https://forum.inductiveautomation.com/t/bundleutil-could-not-localize-the-properties/35962/11 "2023-12-06T10:57:48Z")

</div>

What's your package name in GatewayHook? I assume you should create hierarchy like resources/org/efficientia/OFSParamValues.properties if your package name is org.efficientia.

---

<div class="post-metadata">

**Author:** ![Ilya\_Kirbizhekov](https://avatars.discourse-cdn.com/v4/letter/i/e36b37/32.png) [@Ilya\_Kirbizhekov](https://forum.inductiveautomation.com/u/Ilya_Kirbizhekov)\
**Post date:** [December 6, 2023, 11:20am UTC](https://forum.inductiveautomation.com/t/bundleutil-could-not-localize-the-properties/35962/12 "2023-12-06T11:20:21Z")

</div>

this is from example. and I think that archetype created folders I did not.

you can't create package, idea not allow just only folder.

and in debug mode, I saw that it is mounting, I can browse object, it just not containing elements in the list.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/f/6f03abd682f9ad5d754ced55ecbc65611035f0db.png)
