jal-translations-mngt READMEI think, and a lot of people too I guess, translations take a lot of work, and I strongly like to avoid do this kind of things:
But we have our own approach to the subject. So, for ease the translation, we see the steps below:
Working with the extensionStart creating a new .json empty file Control + N and Control + S. Name it whatever you want, but important, the file extension must be .json, this way we have object validation. Inside the new .json file you can type the snippet “TJAMCreateTransFile” and brings you the four steps structure: The set of each step must be filled the way is described below. Step 1
This step starts with the English .xlf process. Here we must set the file generated in our first package generation with: This steps process this .xlf and create an internal (you don´t have to see it if you don´t like) json file, with original captions without duplicates and waiting for translations in target properties. The json file is for internal use of the extension is named here for didactical purpose. Step 2The step 2 feed the target translation from previous translation files:
The first file is the translations that we got after the txt2al process. The second one is the standard Spanish translation of all the app. This way with the first one I get all I have translated in 140 version, and with the second we avoid repeating common NAV translations, you know what I mean, “Posting date”, “Document No.”, “Item No.” “Location Code” and so on. It is very important the sequence order you place previous translations files here. Next previous processed file will overwrite previous translations. The last previous file will overwrite all previous translations. Step 3In this step, we create a excel plain text file, with the remaining expressions we have not translated in the previous steps.
If we open the file with excel you can see the columns. You can fill in B column your translations or write it with whatever tool you are using to automate the translation and save the plain excel text file. Step 4When you finish the remaining translations of excel plain text with tabulations file, is time final .xlf file is made:
Here we only set the path of the final Spanish (or your local language) file. Remember don´t use in the .json file “\” patch separator use “/” instead. I will fix this little issue soon, but right now is what is. When you complete the set up you can type the run with F1 “JAM Process translation all steps”. You must be inside the .json file when you raise the command: This command will perform all the four steps to get the final translation file. You can execute twice or n times if you need, as you manually translate the remaining captions. Create a CSV file with all workspace translationsWith command "JAM Create a CSV file with all workspace translations", we create a file with all translation, for reviewing purposes. You must follow these steps:
Warning: translation steps must be executed before this exportation. ExclusionsYou can exclude some translations from the process, for example, if you don´t want to translate local country expressions, you can do it in the final of .json file, with the following step specification: "ExclusionsFromManual": [] Notes for exclusions:
Edit remaining translations with HTML viewWith command F2 “JAM Edit remaining translations with HTML view” you can edit the remaining translations in a HTML view. You can see the remaining captions in the source language, and you can edit the captions in the target language. With save button you can save the changes in the target language. App will display a file dialog to select your json translation steps file. You can set your styyle for HTML with configutation parameter "CSSHTMLTableView". Other way you have a default table style. Detect multiple translations for then same sourceIf in the previous translations the process detects the same source with multiple translations to target language, it warns you with a message and leaves all these translations in a file called MultipleTrans.json, for review purposes. FeaturesFor this purpose, you only have to create a new .json file (Ctrl+N and save as any name with json extension in the workspace folder) and type new snippet JAMCreatetransfile. RequirementsVisual Studio ONLY. Extension SettingsThis extension contributes the following settings:
Known IssuesRemember don´t use in the .json file “\” patch separator use “/” instead. I will fix this little issue soon, but right now is what is. Release NotesInitial release |