mecamira / dxf2gcode

Automatically exported from code.google.com/p/dxf2gcode
0 stars 0 forks source link

Translate dxf2gcode for other languages, e. g. spanish #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

Cristian guten Morgen.
Sorry für mein Deutsch, ich bin Spanisch und übersetzt von Google Translator.
Das Programm ist sehr gut, ich wünschte, ich könnte es ins Spanische zu 
übersetzen. Ich kann Ihnen helfen wird, um die Übersetzung von Texten des 
Programms machen?. Vielen Dank. 

Original issue reported on code.google.com by christian.kohloeffel on 26 Oct 2011 at 4:43

GoogleCodeExporter commented 9 years ago
Hello David,

if you are using python and you just know a bit about programming, this should 
be very easy.

1.)

There is a special translation file (Also for your computer) ....
http://code.google.com/p/dxf2gcode/source/browse/tags/2010-05-04-b02_tkinter253/
languages/DE_de/LC_MESSAGES/dxf2gcode_b02.po
You just need to change this file the values of message string:
Example:

#: dxf2gcode_b02.py:129

msgid "File" 
msgstr "Spanish word for File "

2.)
Convert the *.po file to *.mo file:

Just one result of google for example ....
http://weblogtoolscollection.com/archives/2007/03/06/wp-translations-mo-and-po-f
iles/

3.) 
You need to know what is the value of the variable "lang" (see linked file 
below in row 96) 

Example for german: ['de_DE'] 

http://code.google.com/p/dxf2gcode/source/browse/tags/2010-05-04-b02_tkinter253/
dxf2gcode_b02.py

according to this put the file in the corresponding correct folder of the 
folder languages (DE_de) for german.

see folder for german as an example:
.../languages/DE_de/LC_MESSAGES/

best regards
Christian

Original comment by christian.kohloeffel on 26 Oct 2011 at 4:44

GoogleCodeExporter commented 9 years ago

Original comment by christian.kohloeffel on 26 Oct 2011 at 4:47

GoogleCodeExporter commented 9 years ago
I've started working on the Spanish PO file, asking a work colleague to check 
it first as they're a fluent speaker.  Hopefully have it uploaded by 2013-01-04.

Original comment by johninla...@googlemail.com on 31 Dec 2012 at 4:24

GoogleCodeExporter commented 9 years ago
 I will Close this Topic since the new pyQT Version is using different tranlation methods and files. John, i can give you the new files if you're interrested.

Original comment by christian.kohloeffel on 1 Jun 2013 at 3:17