Moved the "translate" functions to namespaces to avoid clashes between the code in libslic3r and Slic3r GUI projects.