web
You’re offline. This is a read only version of the page.
close
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,457

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?

I have the same question (0)
  • Juliet Zhu Profile Picture
    on at

    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. 

  • Retha Profile Picture
    1,457 on at

    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?

  • Verified answer
    Juliet Zhu Profile Picture
    on at

    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,457 on at

    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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Laurens vd Tang Profile Picture

Laurens vd Tang 299 Super User 2025 Season 2

#2
Siv Sagar Profile Picture

Siv Sagar 183 Super User 2025 Season 2

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 117 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans