Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Answered

Localize Commerce extension resources and label files

(0) ShareShare
ReportReport
Posted on by 1,439

I have to change the label of the transaction comment in CloudPOS.

 I'm trying to follow the steps in this document: https://docs.microsoft.com/en-us/dynamics365/commerce/dev-itpro/extension-resource-localization

However when trying to set he environment up to get the TextIDs, I'm definitely missing something.

I work with CloudPOS and not ModernPOS, but it should be the same correct?

So I open the CloudPOS solution from the RetailSDK in VS 2017.

I'm lost at step 3. where is the Solution configuration property it is talking about? 

If I right-click on the CloudPOS solution and choose Properties, then click on Configuration properties. I see the following:

pastedimage1603747772293v1.png

There is nothing under the dropdown for Platform on the Pos.Extensions row. So the only valid option is 'any CPU'

If I right-click on the Pos.Extensions project and click on the Build tab, there is a Platform target which I can change to x86.

There is no Deploy option that i can change to Local Machine.

If I right-click on Pos.Web and choose properties I can under the Build tab set again the platform target to x86. but again there is no Deploy option to set to local machine.

Under the Web tab, there is a Servers section and this is set to Local IIS.

I built the solution and when I tried to run it, I got the error: Could not load file or assembly 'TMC.Pos.Web' or one of its dependencies. An attempt was made to load a program with an incorrect format. 

I then removed the change on the platform target I did on Pos.Web and change dit back to 'any CPU' and this time after the build it loaded the sign-in page.

I assume the settings button mentioned is:

pastedimage1603748803031v2.png

If that is the Settings button, where is the Developer's mode option on the page that is loaded?

All I see is 

About, Session information, Device activation, Task and test records and Extension packages

So I'm definitely missing something in steps 3 and 4. 

So, any one knowing what is not in the document for steps 3 and 4 to be able to trigger the Developer mode to get the to the Text IDs of the labels?

  • Retha Profile Picture
    1,439 on at
    RE: Localize Commerce extension resources and label files

    Thank you very much Juliet

    I have to change Transaction comment's label and luckily there is only 1:

       "string_185"                                    : "Transaction comment",

       "_string_185.comment"                           : "Button text for transaction comment operation",

    I was bale to add it for text ID 185

  • Verified answer
    Juliet Zhu Profile Picture
    on at
    RE: Localize Commerce extension resources and label files

    Hi Retha,

    Please run below command in the browser dev tools console to enable CPOS developer mode:

    Commerce.Helpers.DeveloperModeHelper.setDeveloperMode(true);

    Besides, if the string is unique enough, you might be able to just look for it in this file:

    D:\RetailSDK\Code\POS\Web\Assets\Strings\en-US\resources.resjson

    For instance, you can search for “Operator ID” and see that it’s in there a few times.  The comments are pretty good though and you can figure out that the one for the login screen is 502…

    Thank you for using Microsoft Dynamics Communities,

    Juliet Zhu

    SR SUPPORT ENG

    Microsoft Dynamics AX / Dynamics 365 Commerce

    If my information answers your question please click 'Yes' against "Did this answer your question?" to help other community members.

  • Retha Profile Picture
    1,439 on at
    RE: Localize Commerce extension resources and label files

    Is Debugmode option doesn't exist in POS.js anymore:

    ***

    ..

    ..

    (function (Commerce) {

       var Config;

       (function (Config) {

           var DEFAULT_CONNECTION_TIMEOUT_IN_SECONDS = 120;

           Config.retailServerUrl = Commerce.StringExtensions.EMPTY;

           Config.onlineDatabase = Commerce.StringExtensions.EMPTY;

           Config.offlineDatabase = Commerce.StringExtensions.EMPTY;

           Config.connectionTimeout = DEFAULT_CONNECTION_TIMEOUT_IN_SECONDS;

           Config.defaultOfflineDownloadIntervalInMilliseconds = 60000;

           Config.defaultOfflineUploadIntervalInMilliseconds = 60000;

           Config.defaultPageSize = 250;

           Config.sqlCommandTimeout = 3600;

           Config.appBaseVersion = Microsoft.Dynamics.Diagnostics.TypeScriptCore.AppInsightsSink.appBaseVersion;

           function defaultRetailServerConnectionTimeout() {

               return DEFAULT_CONNECTION_TIMEOUT_IN_SECONDS;

           }

    ..

    ..

    ***

    I have looked under POS/App and POS/Web. both these sub-directories in the RetailSDK has a POS.js

    I am working on my Dev box in debug mode. Should I just manually add the option in?

  • Juliet Zhu Profile Picture
    on at
    RE: Localize Commerce extension resources and label files

    Hi Retha,

    You may refer to this article: cloudblogs.microsoft.com/.../

    Especially the section "Update (2017-06-30)" in step 1.

    Thank you for using Microsoft Dynamics Communities,

    Juliet Zhu

    SR SUPPORT ENG

    Microsoft Dynamics AX / Dynamics 365 Commerce

    If my information answers your question please click 'Yes' against "Did this answer your question?" to help other community members. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,110 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,886 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans