MicrosoftDocs / navdevitpro-content-pr

Content for the devitpro release for on-prem & PaaS
Creative Commons Attribution 4.0 International
6 stars 35 forks source link

Multiple translation files? #2213

Open buzzwick opened 3 years ago

buzzwick commented 3 years ago

Doc does not mention: Will NAV recognize more than one text file containing translations in the Translations folder? Or do all translations have to be combined into a single text file?

Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

edupont04 commented 3 years ago

Hello David, It's a bit complicated. The file(s) in the Translation folder are supposed to be just those translations that you cannot import in the development environment. In the example given, strings in English and Dutch are imported into the product, but the strings in Chinese cannot be imported due to the codepage (encoding), so those strings are stored in that external file.

The external file in the Translation folder can include multiple languages in the codepage encoding for that file. If you have to support multiple codepages, then the Translation folder can include multiple files. But there might be a performance it if you put multiple files there - I don't remember much about this, but I think NAV Server might have to think about it a bit longer during the restart.

Sorry that I can't be more explicit!

buzzwick commented 3 years ago

Eva,

Thank you for taking the time to respond to this. You have made clear a couple of key points that will make a big difference in how we approach translation. In our case, we are doing bulk translations of an entire app from scratch, so at first it seemed that segregating just those strings that contained special characters might be prohibitive (we have an expression, perhaps you know an equivalent: “picking flysh*t out of pepper”). However now that we have some experience (and your clarification), we might reconsider and import the bulk of the translations and set aside in a file only those strings with special characters. The details about multiple files (it does work) and server restart are extremely helpful in making these decisions.

If it were me, I might include a version of just what you gave us in the doc. Something like:

To avoid potential delay during server restarts, it is advisable to place only those strings containing characters which cannot be imported using the Tools->Translate->Import method in a file in the Translations folder. The folder can contain multiple such files, and each file can contain translations for multiple languages.

I leave that to your good judgment. In the meantime, thank you again very much, and…what’s a “codepage”?

Cheers,

David

From: Eva Dupont @.> Sent: Wednesday, May 19, 2021 4:36 AM To: MicrosoftDocs/navdevitpro-content-pr @.> Cc: David Baldwin @.>; Author @.> Subject: Re: [MicrosoftDocs/navdevitpro-content-pr] Multiple translation files? (#2213)

**CAUTION: This email originated from outside of CAI Software, LLC. Do not click links or open attachments unless you recognize the sender and are expecting the attachment or link.

Hello David, It's a bit complicated. The file(s) in the Translation folder are supposed to be just those translations that you cannot import in the development environment. In the example given, strings in English and Dutch are imported into the product, but the strings in Chinese cannot be imported due to the codepage (encoding), so those strings are stored in that external file.

The external file in the Translation folder can include multiple languages in the codepage encoding for that file. If you have to support multiple codepages, then the Translation folder can include multiple files. But there might be a performance it if you put multiple files there - I don't remember much about this, but I think NAV Server might have to think about it a bit longer during the restart.

Sorry that I can't be more explicit!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/MicrosoftDocs/navdevitpro-content-pr/issues/2213#issuecomment-843877634, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJTBZIT2H3CPX4CU7VRJJ3DTONZ5ZANCNFSM45ARQG6A.