Localisation workflow BartyCrouch and microsoft translator API in iOS - swift

I have a very specific question, was wondering has anyone tried workflow with BartyCrouch script and api.cognitive.microsofttranslator in Swift? I have a mixed project : Storyboards + SwiftUI that i needs to get multiple languages. I guess I am just confused on the first steps. I have a small test project working with BartyCrouch is it just out of the box translating from Azure?
Any code examples on the web are welcome.
There was some talk of adding Google translate as a feature to the framework, from 2 years ago. Not sure where we are now.
https://github.com/FlineDev/BartyCrouch/issues/160

So everything worked after setting up the BartyCrouch and Azure in a right way. The steps are here if anyone is looking for.
Setting up Azure Translator instance
this took a while as I needed the GLOBAL region and to make this work free of charge
First set the Subscription and than Resource and than connect it to your Subscription via Translator in this case. This will generate secret key that we need for BartyCrouch to connect to the api.
With the key and global we can test if translation is working with CURL/Postman
Configure the .toml file that you generated when installing BC (I did from Homebrew). Had issue here with a paths to my Localizable.strings file ["./your-app"]. I had to add translate to the tasks in .toml file
Place BartyCrouch script into BuildPhases and run build
bartycrouch update -x
Make sure when adding a new Localizable.string file and new language to have all the translations in "" empty string
Happy localization to you..

Related

"SFDX: Deploy Source to Org" function missing

Hello I have created a LWC project in VS Code but the "SFDX: Deploy Source to Org" option is missing when I Right-click the default folder under force-app/main.
I have authorized the org and set a default scratch org.
Please help.
For scratch orgs it's more "natural" to push and pull the changes, let SFDX figure out what changed on your system / what changed server-side (new field, new report? new object? good luck spelling it all out in package.xml, life is too short for it). The team behind VSCode sfdx plugin made conscious decision to hide these options.
Try with sfdx force:source:push.
If you need single file there's still source-ish deploy command (will warn you if you're overwriting something changed on server / by another dev and you can force deploy if you want).
https://developer.salesforce.com/tools/vscode/en/user-guide/development-models
https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_develop_any_org.htm
The deploy-retrieve are old school metadata api commands

Is adapter.js in sails.js present by default?

First of all sorry. i know this would be a silly question, but i am very confused. and need an answer.
Question
I am making a project in sails.js.After running the "sails new myNewProject" command when i looked into the default modules that are formed i could not find the api/adapter in it.
so, i would like to know whether this adapter is created automatically or we will have to create it manually??
Thanks.
The api/adapters directory is not created by default on new projects.
If you need to build a custom adapter, you can start with sails generate adapter myAdapterName, which will create the api/adapters folder for you along with boilerplate files for the new adapter under api/adapters/myAdapterName.
If you're just looking to use one of the existing adapters like sails-mysql, you don't need the api/adapters folder at all. Just use npm to install it in your project:
npm install sails-mysql
A list of more available adapters is here.

NQunit.NUnit getting started guide

does anybody know of a good tutorial for getting started with NQUnit.NUnit.
I've installed it to my test project via nuget and am unsure what the blank.js and async.js files are all about, should I rename these to match my files under test or do I just add my asyncronous and syncronous tests to the respective files.
ta!
Find the answer in the following link:
NQUnit: JavaScript testing within .NET / CI

Amending Web Config for Test Fixtures

I'm using CassiniDevLib to host an MVC app for integration testing.
In order to do it I need to amend some config settings on the web server so they match the integration testing environment, first one being the connection string so it points to the test database.
I know I can have two copies of the web.config file and rename them but I was wondering if there was a more elegant way. ie a way to amend the settings in code as part of the Test Fixture setup. The challenge being that I need to access the web server process from my test ficture process
Would appreciate any thoughts on this.
I assume that you are using Visual Studio 2010. In that, you have a feature called as Config Transforms. Basically you can have multiple config file for each build environment. You can have your own custom build env. You have a new one by going to Configuration Manager and adding a new one.
http://blogs.msdn.com/b/webdevtools/archive/2009/05/04/web-deployment-web-config-transformation.aspx
you can search on the internet for Config Transforms, if you need more examples.

vb6 xcopy deployment

Can any one tell me how to convert an legacy application which is vb6 ( COM dll's ocx and exes) to use Regfree COM .
I tried opening the dlls in visual studio and created manifest file, but some of the dlls it is giving error.
Is there any tools out there which will help me to do this process?
I tried a tool from codeproject which is called regsvr42, which is not creating the manifest fully.
I used tools like PE explorer where I get all the typelib information , but converting them into manifest files is too difficult.
We have started migrating that to .NET, for some months we have to deploy it, it will easier if it is xcopy based deployment.
To create manifest files you can try to use Make My Manifest from http://mmm4vb6.atom5.com/.
EDIT The MMM website is down. I see here that the author was having trouble with their hosting and has provided another location to get Make My Manifest - download it here.
If you can control creation of objects you can use DirectCOM from http://www.thecommon.net/10.html
Keep in mind that if one of used DLLs or OCXs is creating other COM objects dynamically with CreateObject calls, that reference will not be stored in vbp project file and you won't get full manifest file. Probably you will have to catch object creations while the application is running. Depends.exe application can profile running application and report all used dlls. I don't know if there is tool that can find additional COM related information.
There is an excellent walkthrough of what to do in this article on MSDN: Registration-Free Activation of COM Components: A Walkthrough.
Make My Manifest can accomodate late binding as well as early binding. You simply have to add the references to the late-bound dependencies manually, by file location or by ProgId.
You might look at http://mmm4vb6.atom5.com/mmm-demo-1248.html for additional help in using the utility.
MakeMyManifest is well spoken of as an automatic tool for creating manifests for VB6 projects, haven't tried it myself.
DirectCOM also has fans, again I haven't tried it.
EDIT The MMM website is down. I see here that the author was having trouble with their hosting and has provided another location to get Make My Manifest - download it here.
There is a semi-automatic technique. You can create the manifests with Visual Studio 2008 (you can use a free version like Visual Basic Express Edition). Then make a couple of edits by hand to make the manifests suitable for use from VB6. See this section of this MSDN article for step-by-step instructions - ignore the rest of the article which is about ClickOnce.