I work with French-Canadians on a medium to large Web form app. French is their native language while mine is English. I just wondered what others have done in similar situations. I've search for a Translator Extension that would work in Visual Studio but haven't come up with anything.
Usually I just copy and paste portions into Bing/Google Translate but that makes it pretty tedious.
Here you can find a nice Visual Studio extension for translating source code on fly:
https://visualstudiogallery.msdn.microsoft.com/f2321406-c5bb-42b7-9660-dfacd313eeed
It's not as perfect as it could be (which I imagine could be on fly translation of the whole class/file), but it's far more better than switching between windows and copy-pasting to google translator. By the way - the tool uses Google translate and does it quite effectively.
Related
Actually I'm using App Multilingual Toolkit from Microsoft to manage translations from two different languages. I decided to translate it in Brazilian, so I'd like a friend from Brazil to translate of the strings for me. He hasbn't got any programming knowledge, Visual Studio tools and so on.
The question is how can I export from VS and pass him all the string in a readable format? Something that will be easy for me to import later as well.
I'm not sure of AMT, but I used the gnu text translation toolkit (Windows version), which was very easy to use. You can use a webapp called Pootle that non-technical users can use to provide translated strings.
Users would update the strings via the website, which I could download an updated .po file from, this was then added to my deployment, using a little C# helper that read the strings and displayed the correct version depending on the user's language. It was remarkably easy all round, and as Gettext uses English words as the key, if you add a word that is not translated for a language you will get the English 'default' instead which is better than "error: word not defined" :)
IIRC I got into this because someone on the SVN team enabled the tool as a test, since then they've moved to Transifex - I'm not sure if its significantly better as its a commercial web tool, but it might work for you.
That said, there's also Google translation toolkit - good luck getting to it as its now hidden behind Google's "one account login" guff.
There used to be a utility software, appTranslator (http://www.apptranslator.com/), that helped a lot when trying to translate MFC programs.
It will not only help you translate the strings (STRINGTABLE) but will help you translate dialog content as well (update strings in dialogs, move resources if applicable, ... )
It has not been updated in a couple of years.
(just quickly tried it and it seems to work).
I would say CSV is the most readable way to export/import
I'm developing some VBScript using Visual Studio 2010. The native support for this language isn't great, so going forwards I'm hoping to look into taking advantage of language services / VS Extensions to allow me to improve support for these languages.
For the moment however I just want to make my life simpler by adding a couple of features:
Allow the VS Task List to recognise my 'todo: comments
Allow c# like #region...#endregion functionality to make it easy to break the script up into more easily readable blocks (to comply with VBScript I'd stick an apostrophe before the hash to make it a comment).
Is there a simple way to do this through configuration in VS, or do I have to create an entire language service to get this functionality?
What I'm asking may be impossible; but thought it worth asking on the off chance.
Thanks in advance.
My bet is you could do the tasklist stuff with a simple extension:
http://msdn.microsoft.com/en-us/library/163ba701%28v=vs.80%29.aspx
But to do the #region behavior I'm fairly certain you need a simple stripped out Language Service to get to the Source's AuthoringSink
http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.package.authoringsink.addhiddenregion.aspx
and
http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.package.authoringsink%28v=vs.90%29.aspx
I need to make s very simple app, with a canvas where the user would be able to drag & drop PNG files, drag, scale and rotate them on the canvas and export to XML their name & coordinates.
I'm pretty good at Android(java) programming, but as I just tried plain java with windowsBuilder for the first time, it appeared to be rather inconvenient and probably would take at least a few days to find my way around in it.
So I thought, maybe you could suggest some simple "program maker" style language/ide that could be quickly picked up for such purpose?
Right now I'm thinking of Flash... any other ideas?
Thanks!
I would go with C#, with the .NET framework.
As you already know Java, it shouldn't be that hard, as C# is also an object-oriented language.
They are some differences, of course, and I won't explain them here.
But if you want a real Windows app, it may be your best choice, as you'll then have access to all the Windows features through the .NET framework.
Everything is very well documented.
You can also choose C++ (managed), but it might be a little harder, coming from Java.
About the IDE, simply use VisualStudio (the express edition is free).
Hope this will help.
I learned JavaScript (I know it's not Java, but similar nonetheless and still object oriented) first and then C++. The transition was quite easy since both are more-or-less object oriented. Like Macmade said, Visual Studio is great to begin, but I prefer using gedit and then compiling with G++. It's more forgiving than Visual Studio and you don't have to create a project and whatnot just to start writing the code. With a text editor like gedit and a standalone compiler, G++, it's much easier to just write the code and then build the program.
I'd stay away from Flash. I know AS2/3 pretty well and I can say that C is much easier to code, at least for me. Everyone has their personal preferences, though. One plus to C is you don't have to buy Flash.
What reasons to use localized version of Visual Studio 2010? What problems / benefits can you list while using localized versions? Are localized versions really useful?
I can only see problems and very few benefits. Any problems you are likely to experience you will will get them in language other then English, which means searching how to resolve problem in that language is limited on start. Although it may be not directly related but I've been managing servers in polish language for a long time and man I was so many times wishing the errors by polish system was in English. Finding resolution to problems in English is 50x easier then in my native tongue. If you even try to translate error message yourself you will have to be very careful because one translation isn't equal to another, especially when it comes to Microsoft programs (although not only). Many times error in my language given by SharePoint or Windows is so meaningless that you don't even know where to start looking for answers and if you see that error in English you just do "Oh.. it's about this.. simple stuff. Lets fix it".
Back to development.. Visual Studio in English gives you no problems to develop programs for any language you want. And most likely any addons will be in English so you will have mixed environment at some point having one Menu in English and other one in German. Also asking for help and following some tutorials/tips etc will be far easier in English so you won't have to translate stuff On-The-Fly yourself but will just follow the steps.
I mention that i am designing a language. The plan was always to not implement it but to design it but i am considering implementing it if i think i could do it in a reasonable amount of time.
How would i have my language use intellisense in visual studios? BooLangStudio has it http://www.codinginstinct.com/2008/05/boo-in-visual-studio.html, http://www.codeplex.com/BooLangStudio
It all depends on how much time you want to spend on it. I have about 2,000 hours of work in my Visual Studio IntelliSense projects resulting in exactly one mostly-complete language service. That said, it's not your "average" IntelliSense extension to Visual Studio - see the feature set for more info.
Here are some good resources to look at. I have a tendency to write with an assumption that users are already familiar with both the Visual Studio Extensibility basics and parsing with ANTLR. If you aren't, you should probably start at www.antlr.org and with my "ANTLR port" of one of the simple Visual Studio language service tutorials.
Here are some posts showing how serious I am about the subject. :D
How does code completion work?
Smart code-completion original and revisited. Clearly I take the latter more seriously than other people (voted down and voted to close?!), but I believe doing so just gives my users a better product. :)
High-speed incremental lexing for syntax highlighting original (under IScanner-friendly lexers), cleaned up (significantly - vastly preferable to the original), and made yet again 6x faster in 1/4 the memory.
Little things like sane commenting/uncommenting and brace matching do make a difference. On a side note, once you use one that's well-behaved, the others (including the ones for some Microsoft languages in Visual Studio) are rather annoying.
If you can, read all the IntelliSense-related posts on my blog.
Smart indent is a PITA (I mean really smart, e.g. the C# language service in VS2008). I have a love/hate relationship with it. I'm annoyed now because writing this bullet made me think about it. Argh. My insight here makes me a bit forgiving of them breaking it for VS2010 Beta 1, but it doesn't keep me from missing its awesomeness.
PS: I can now build a syntax highlighter for a new language commenting/uncommenting in 1 day. In the same day I'm ofter able to get the type & member bars in as well.
This is a good place to look for Visual Studio Extensibility.
Also, here. But, the first link has a video specific to adding Intellisense to your language service.
As of 4-4-2017: This article seems to give all of the basics for creating a language extension, which includes highlighting words and providing intellisense (code completion).
https://code.visualstudio.com/docs/extensions/example-language-server