translating

What is the best way to translate text inside a database

We have a problem here. We need to translate a website into multiple language. We already use gettext to translate the static content. But we have to translate some text content in multiple language. The ui isn't a problem. We found 2 ways to translate the text. 1. use JSON inside our text input Why this solution is bad. Every text...

c++ public function syntax error

I am attempting to convert a c# to c++ with reflector. The code compiled, disassembled and reconstructed code is generating this error: 1>c:\users\user\documents\visual studio 2008\projects\reflect_readoo\reflect_readoo\readoo.cpp(2) : error C2059: syntax error : 'public' 1>c:\users\user\documents\visual studio 2008\pr...

How hard would it be to translate a programming language to another human language?

Let me explain. Suppose I want to teach Python to someone who only speaks Spanish. As you know, in most programming languages all keywords are in English. How complex would it be to create a program that will find all keywords in a given source code and translate them? Would I need to use a parser and stuff, or will a couple of regexes a...

Using gettext in bash.

How to use gettext in bash script? I only found this page, but I don't understand it. Localization My script is written like this: #!/bin/bash . lang_file.sh echo $LANG_HELLO_WORLD And lang_file.sh look like that: #!/bin/bash LANG_HELLO_WORLD="Hello World" I want to change lang_file.sh to something using gettext, like this:...