Working with an application written in a foreign (spoken) language - vb5

I have a VB5 application written in a foreign language (Italian). It uses an Access DB which is also in Italian.
How can I convert this to English?
I am possibly going to port this to .NET, but before I do I need to somehow read and understand what I am doing.

I wouldn't spend time or money trying to actually translate the source. Just use on-line automatic translators like google translate to look up snippets of Italian you don't understand. Comments and identifiers in source code are not complex literary works. It shouldn't take you long to grok the "programming Italian" subset of Italian.

Related

How to model multilingual database with Zend, l18n mysql?

I know this topic was discusses a couple of times, but none of them represents the ultimate solution for me.
Situation
I'm designing a relational mysql database which later should hold multilingual content. You know this from the Wikipedia or Microsoft Tech Support Pages. The contents should be the same for every language. e.g If translations are missing the site offers you the same content automatically translated or in the languages which the information is available in. If some values are not set, it should fallback to the second or default browser language or translate it e.g. through google. Development environment is Zend.
My ideas so far are for Solving the Problem:
Two Primary Keys: (ID, Language)
Advantage: Easy Database Access through database abstraction layers.
Problem: Foreign Keys, Relations ships, Fallbacks
Columns with language suffix:
Advantage: DB Performance, No relational Problems.
Problem: Database abstraction layers cannot handle this?
Has any concept proven itself or is preferable over the other? Has anyone already created something like this and can share his experience with me? Does a modified Zend DB Controller exist for this situation? How do you link this information to a form?
Thank you for your help, hints and suggestions!
Kind regards,
Manuel
The second option would be not maintainable (this should be added on the minuses side). To actually add another language you'll need to modify table and abstraction layers. Sounds like a nightmare.
The first option seems much more promising but unfortunately there is a lot to do to make it work. However, from my experience this is rather typical solution, so I would not reinvent the wheel.
What I have to add is, language fallback should be done on the Zend side, database would miss some information. You may think of some kind of index table to hold information such as unique id of the contents and available languages. If you need to serve something, you would read such record, compare it against of Accept Languages and ask database again for valid contents (using the most suitable language). The only problem is, you would need to create such an index table somehow (the best way I see would be trigger on inserting contents to your content table).
A lot of work but the problem is not too easy.
I am working on the exact same problem right now.
Somehow it does not make sense to me to add everything into the same database. Lets say I want to go to the extreme and support some 50 languages this would just bloat my DB. So, I tend to keep my main DB in my main language and then introduce some Zend_Translate concept into it. Zend_Translate should give you the fallback solution you are looking for. While the main navigation and core design is not much of a problem for my web site my biggest concern right now is how to store all the main content and how to translate because these elements contain HTML among other things. For the main content I will probably use some alternate approach and use a separate DB with tables for each language.
My plattform will be a community driven database. So I actually gonna rely on humans translating it. You have to store the information anyways, so my first concern is not the database size or performance, but easy usability. So far my idea is to implement some structure as described above, not yet sure if i'll do it in doctrine or not.
Language decision:
Start, application gets users preset language, secondary language, english mother-tong of the article. Fetching the article from the database I will check the following for every column: 1. is the primary language available? 2. Is the secondary language available? 3. If neither of them, display article in mother-tong or english and offer the user to translate it with suggestions from the google translate api. I guess it's gonna be quite a bit of coating and manipulating controllers or building a business model doing this.
#tawfekov is something like this or similar easily realizable with doctrine?

Good resources for secure coding in RPG and CL (iSeries development)

I'm just wondering if anyone can point me for secure coding resources for RPG and CL. (RPG as in for the iSeries, not Role Playing Games).
I have no problem finding resources that cover secure coding guidelines that are generic, which are very good to have. I can also find specific guidelines for .NET, Java, or almost any other modern language that cover best practices for the specific language. (For example, the proper use of validation controls in .NET, etc) However, I can't seem to find any good resources specific to RPG programming.
I'm asking because I come from a mixed environment where .NET code regularly calls iSeries code. Most often, the iSeries code is in the form of RPG or CL programs "wrapped" to look like stored procedures. I'm working on secure coding practices documentation and policies for the entire team, and am unable to find good resources for our iSeries developers, even on the IBM site.
I'm hoping an experienced iSeries developer or two can point me to good articles, or redbooks on the subject.
Edit
I may be looking at this wrong. I would also be interested in documentaiton on DB2 security, as well as security provided by the OS.
General SQL secure practices also apply to DB2 on the iSeries (injection protection and such) which includes embedded SQL in RPG programs.
This is a Redbook for iSeries Security
This is IBM's iSeries security documentation and references for V5R4
Who knew you could do that with RPG IV is a great Redbook but it's not specific to security.
Another source to ask this question would be the RPG-L or WEB400 at midrange.com. They also have a security list that may offer answers to more specific questions.
I can't say I have come across any resources in my casual searches on that type of security though I am sure with as many people that there are writing for the web, there has be some best practices. The people on

Some Simple Questions for knowledge?

Before Some days my friend ask me some simple questions, but I have no answer.
Please tell me about these questions.
How many computer programming languages are used all in the world ?
I want to create a language like 'java or c#'. What is the procedure for creating a language and how it will create?
Which language is used for manipulate Window operating system?
What is the procedure of create Operating System like Windows/Linux/Mac and in which language it should create?
What is the procedure of create open source framework project in javascript and php?
How many computer programming languages are used all in the world ?
Wikipedia lists a lot of them!
I want to create a language like 'java or c#'. What is the procedure for creating a language and how it will create?
If you need an answer to this question probably you won't be able to create one, I guess (definitely I wouldn't be able to).
Anyway, if you want to go that way and create a very very simple language you should start by building a parser that takes the commands you wrote and interprets them to do something, checks for syntax errors etc. That already will take a big effort.
Which language is used for manipulate Window operating system?
You can use several: C++, C#, Visual Basic, etc etc etc
Microsoft provides several APIs (Application Programming Interfaces) to "manipulate" Windows
What is the procedure of create Operating System like Windows/Linux/Mac and in which language it should create?
As for #2. If you're starting programming you probably better focus on a simple project. Creating an OS is a huge effort and it requires profound knowledge of the computer architecture. You would probably create it using C++ and/or Assembly I guess. (as above, I wouldn't be able to create a programming language, an OS is completely out of question)
What is the procedure of create open source framework project in javascript and php?
This question does not make too much sense to me. You create your project and then release it to the public under an opensource licence, e.g. GPL.

How do you localize your iPhone applications?

I want to localize my iPhone applications into other languages except from English, but I don't know anyone who would speak Italian or French.
How do you translate your application name, description and application contents into other languages? Who may help in this issue? Are there any iPhone-oriented translation companies?
Thank you in advance.
There are lots of companies that do this. From expensive ones that make little sense, to just a guy in the country you're interested in who knows english real well and would be happy with $20 and a thank you. You could:
Google for the more established services
release your product and mention in your about page that you are looking for translation assistance from your users and hope they like your product enough that they contact you
use a service like Amazon's Mechanical Turk to bid it out to an individual
I would start by building a framework that makes it easy to localize. Ultimately, somebody is going to have to translate it, but you might want to start by removing any string literals from the actual application itself and replace them with references to some sort of data source. I've never done it with iPhone, but this is common with multilingual web-apps where they have all string literals stored in a database and the fields are populated at runtime based on the location. This makes it exceptionally easy to localize because, if all you are doing is reading an XML file, you only need to swap out the file.

How can I add internationalization to my Perl script?

I'm looking at introducing multi-lingual support to a mature CGI application written in Perl. I had originally considered rolling my own solution using a Perl hash (stored on disk) for translation files but then I came across a CPAN module which appears to do just what I want (i18n).
Does anyone have any experience with internationalization (specifically the i18n CPAN module) in Perl? Is the i18n module the preferred method for multi-lingual support or should I reconsider a custom solution?
Thanks
There is a Perl Journal article on software localisation. It will provide you with a good idea of what you can expect when adding multi-lingual support. It's beautifully written and humourous.
Specifically, the article is written by the folks who wrote and maintain Locale::Maketext, so I would recommend that module simply based upon the amount of pain it is clear the authors have had to endure to make it work correctly.
If you have the time then do take a look at the way the I18N is done in the Jifty framework - although initially quite confusing it is very elegant and usable.
They overload _ so that you can use _("text to translate") anywhere in the code. These strings are then translated using Locale::Maketext as normal.
What makes it really powerful is that they defer the translation until the string is needed using Scalar::Defer so that you can start adding the strings at any time, even before you know which language they will be translated into. For example in config files etc. This really make I18N easy to work with.