Not finding localizations for forms in my AddIn

D

David Thielen

Hi;

We have localized our AddIn and pull in localized resources via 3
mechanisms:

1) I get the ribbon xml files as an embedded file/resource which is
named to match the locale. This works fine in all cases.

2) strings I need in my code I get via the standard mechanism where I
have a global resx file that I have the strings in. So global.resx,
global.de.resx, global.ru.resx, etc. This works fine in all cases.

3) forms each have Options.cs, Options.Designer.cs, Options.resx,
Options.de.resx, Options.ru.resx, etc. This is where we have the
problem.

When I run under the debugger everything comes up correctly.

When we install it on a users' computer (test system actually), I get
the correct translated strings from global.de.resx. But the forms are
all in English.

The AddIn is installed as:
Program Files/Windward Studios/Auto Tag/AutoTag2007.dll
Program Files/Windward Studios/Auto Tag/de/AutoTag2007.resources.dll
Program Files/Windward Studios/Auto Tag/ru/AutoTag2007.resources.dll
....

Is there something extra we need to do for an Office Addin?

a) None of these files are in the GAC.
b) some DLLs we install that they call are in the GAC.
c) We are running the German version of Office on the German version
of XP.
d) CultureInfo.CurrentCulture & CultureInfo.CurrentUICulture are both
de-de.

What's wrong?

thanks - dave

david@[email protected]
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

Cubicle Wars - http://www.windwardreports.com/film.htm
 
C

Colbert Zhou [MSFT]

Hi Dave,

And have we tried to use the Fusion Log to find if there are any error
reports when trying to load the /de/AutoTag2007.resources.dll. Or it just
loads the /en/AutoTag2007.resources.dll directly. We can choose the "Log
all binds to disk" option if we want to see all binding requests.

See the reference of Fusion Log in this article,
http://blogs.msdn.com/suzcook/archive/2003/05/29/57120.aspx


Best regards,
Ji Zhou (colbertz @online.microsoft.com, remove 'online.')
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).
 
D

David Thielen

It's loading the de/AutoTag2007.resources.dll fine - but that may be
when it is getting strings from global.resx (which does work).

??? - thanks - dave


Hi Dave,

And have we tried to use the Fusion Log to find if there are any error
reports when trying to load the /de/AutoTag2007.resources.dll. Or it just
loads the /en/AutoTag2007.resources.dll directly. We can choose the "Log
all binds to disk" option if we want to see all binding requests.

See the reference of Fusion Log in this article,
http://blogs.msdn.com/suzcook/archive/2003/05/29/57120.aspx


Best regards,
Ji Zhou (colbertz @online.microsoft.com, remove 'online.')
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).


david@[email protected]
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

Cubicle Wars - http://www.windwardreports.com/film.htm
 
C

Colbert Zhou [MSFT]

That is strange since the right resource dll is loaded. I am doing more
research on this and building up a Chinese XP/Office, so that I can try to
reproduce the issue in my side. I will update you as soon as possible.
Thanks for your patience, Dave.

Have a good day! :)

Best regards,
Colbert Zhou (colbertz @online.microsoft.com, remove 'online.')
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).
 
C

Colbert Zhou [MSFT]

Hello Dave,

I cannot reproduce the issue in my side. I built a Chinese version XP and
Office 2007. My form in the Office Com Addin appears correctly with
localized strings.

I think the most possibility of the problem is the resource dll should be
deployed to the folder named "de-DE" instead of "de". So in this case, we
need to put the AutoTag2007.resources.dll in C:/Program Files/Windward
Studios/Auto Tag/de-DE/. Actually I also encounter this problem during my
test steps, but after changing the folder from "zh" to "zh-CHS", all work
fine!

Please give it a try in your side and let me know if this resolves your
issue. Wish you a good day! :)


Best regards,
Colbert Zhou (colbertz @online.microsoft.com, remove 'online.')
Microsoft Online Community Support
 
D

David Thielen

We tried changing it to de-DE and now it does not get the strings from
resources.resx either - it is all in English.

One item, when we run from Visual Studio it all works correctly. It is
only when we install it on a system that it does not work. And we also
use the C++ shim DLL so Word sees the shim which then calls our C#
AddIn.

??? - thanks - dave


Hello Dave,

I cannot reproduce the issue in my side. I built a Chinese version XP and
Office 2007. My form in the Office Com Addin appears correctly with
localized strings.

I think the most possibility of the problem is the resource dll should be
deployed to the folder named "de-DE" instead of "de". So in this case, we
need to put the AutoTag2007.resources.dll in C:/Program Files/Windward
Studios/Auto Tag/de-DE/. Actually I also encounter this problem during my
test steps, but after changing the folder from "zh" to "zh-CHS", all work
fine!

Please give it a try in your side and let me know if this resolves your
issue. Wish you a good day! :)


Best regards,
Colbert Zhou (colbertz @online.microsoft.com, remove 'online.')
Microsoft Online Community Support


david@[email protected]
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

Cubicle Wars - http://www.windwardreports.com/film.htm
 
C

Colbert Zhou [MSFT]

Hello Dave,

Is there any update on this thread? Does my sample work in your side?


Best regards,
Colbert Zhou (colbertz @online.microsoft.com, remove 'online.')
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).
 
A

Alex Boudreault-Ferland

Hi,

I have exactly the same problem, do you have more infos? any solution?

Thanks,
Alex
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top