Salome HOME
Qt4 porting.
authormkr <mkr@opencascade.com>
Mon, 3 Mar 2008 14:50:09 +0000 (14:50 +0000)
committermkr <mkr@opencascade.com>
Mon, 3 Mar 2008 14:50:09 +0000 (14:50 +0000)
adm_local/unix/make_common_starter.am
configure.ac
src/SierpinskyGUI/Makefile.am
src/SierpinskyGUI/SIERPINSKY_icons.ts [new file with mode: 0644]
src/SierpinskyGUI/SIERPINSKY_msg_en.ts [new file with mode: 0644]

index 533941331b2636b75b0d3b38a7d52983775ec4c9..c6e076e41b406d1200039f328ffdfe553e860742 100644 (file)
@@ -36,10 +36,10 @@ docdir             = $(datadir)/doc/@PACKAGE@
        $(MOC) $< -o $@
 
 # qm-files generation
-%.qm: %.po
-       $(MSG2QM) $< $@
+%.qm: %.ts
+       $(LRELEASE) $< -qm $@
 
-EXTRA_DIST=$(MOC_FILES:%_moc.cxx=%.h) $(nodist_salomeres_DATA:%.qm=%.po)
+EXTRA_DIST=$(MOC_FILES:%_moc.cxx=%.h) $(nodist_salomeres_DATA:%.qm=%.ts)
 
 mostlyclean-local:
        rm -f @builddir@/*_moc.cxx
index be5ecf1a03ea42930c2295d4c77dc9f7abcf9a17..8f9dc26e74506dfa9a9f7422c6519c56a1201cda 100644 (file)
@@ -217,14 +217,6 @@ echo
 
 CHECK_QT
 
-echo
-echo ---------------------------------------------
-echo testing msg2qm
-echo ---------------------------------------------
-echo
-
-CHECK_MSG2QM
-
 echo
 echo ---------------------------------------------
 echo testing VTK
@@ -349,7 +341,7 @@ echo
 
 echo Configure
 variables="cc_ok boost_ok lex_yacc_ok python_ok swig_ok threads_ok
-OpenGL_ok qt_ok msg2qm_ok vtk_ok hdf5_ok med2_ok omniORB_ok occ_ok doxygen_ok graphviz_ok gd_ok Kernel_ok Med_ok Visu_ok Randomizer_ok"
+OpenGL_ok qt_ok vtk_ok hdf5_ok med2_ok omniORB_ok occ_ok doxygen_ok graphviz_ok gd_ok Kernel_ok Med_ok Visu_ok Randomizer_ok"
 
 for var in $variables
 do
index 56cc6e1a6d1ccde09aa7ce165e40e45fbdf3cfbd..4bf5fd18299434c9ce425473e851c4011f615e7f 100644 (file)
@@ -13,7 +13,9 @@ salomeinclude_HEADERS =
        SierpinskyGUI.h \
        SierpinskyGUI_RunDlg.h
 
-PO_FILES = SIERPINSKY_msg_en.po SIERPINSKY_icons.po
+nodist_salomeres_DATA= \
+       SIERPINSKY_icons.qm \
+       SIERPINSKY_msg_en.qm
 
 # Libraries targets
 lib_LTLIBRARIES = libSIERPINSKY.la
diff --git a/src/SierpinskyGUI/SIERPINSKY_icons.ts b/src/SierpinskyGUI/SIERPINSKY_icons.ts
new file mode 100644 (file)
index 0000000..c316935
--- /dev/null
@@ -0,0 +1,10 @@
+<!DOCTYPE TS>
+<TS version="1.1" >
+    <context>
+        <name>@default</name>
+        <message>
+            <source>ICON_RUN_DLG</source>
+            <translation>go.png</translation>
+        </message>
+    </context>
+</TS>
diff --git a/src/SierpinskyGUI/SIERPINSKY_msg_en.ts b/src/SierpinskyGUI/SIERPINSKY_msg_en.ts
new file mode 100644 (file)
index 0000000..e84e44c
--- /dev/null
@@ -0,0 +1,132 @@
+<!DOCTYPE TS>
+<TS version="1.1" >
+    <context>
+        <name>@default</name>
+        <message>
+            <source>EXPORT_JPEG_FILE</source>
+            <translation>Export JPEG image</translation>
+        </message>
+        <message>
+            <source>EXPORT_MED_FILE</source>
+            <translation>Export MED file</translation>
+        </message>
+        <message>
+            <source>JPEG_FILES</source>
+            <translation>JPEG files (*.jpg; *.jpeg)</translation>
+        </message>
+        <message>
+            <source>MED_FILES</source>
+            <translation>MED files (*.med)</translation>
+        </message>
+    </context>
+    <context>
+        <name>SierpinskyGUI</name>
+        <message>
+            <source>CAPTION</source>
+            <translation>Run Sierpinsky dialog</translation>
+        </message>
+        <message>
+            <source>MENU_Sierpinsky</source>
+            <translation>Sierpinsky</translation>
+        </message>
+        <message>
+            <source>RUN</source>
+            <translation>Run</translation>
+        </message>
+    </context>
+    <context>
+        <name>SierpinskyGUI_RunDlg</name>
+        <message>
+            <source>BASE_POINTS</source>
+            <translation>Base points</translation>
+        </message>
+        <message>
+            <source>CANCEL_BTN</source>
+            <translation>&amp;Cancel</translation>
+        </message>
+        <message>
+            <source>CAPTION</source>
+            <translation>Run Sierpinsky Algo</translation>
+        </message>
+        <message>
+            <source>DEFAULT</source>
+            <translation>Default</translation>
+        </message>
+        <message>
+            <source>ERR_ERROR</source>
+            <translation>Warning</translation>
+        </message>
+        <message>
+            <source>EXEC_ERROR</source>
+            <translation>Can't run execution!</translation>
+        </message>
+        <message>
+            <source>EXPORT_2_JPEG</source>
+            <translation>Export to JPEG</translation>
+        </message>
+        <message>
+            <source>EXPORT_2_MED</source>
+            <translation>Export to MED</translation>
+        </message>
+        <message>
+            <source>IMAGE_SIZE</source>
+            <translation>Image size:</translation>
+        </message>
+        <message>
+            <source>IMPORT_MED_2_VISU</source>
+            <translation>Import to Post-Pro</translation>
+        </message>
+        <message>
+            <source>JPEG_PARAMETERS_ERROR</source>
+            <translation>JPEG file name is not given or image size is 0.\nContinue?</translation>
+        </message>
+        <message>
+            <source>MED_PARAMETERS_ERROR</source>
+            <translation>MED file name is not given or mesh size is 0.\nContinue?</translation>
+        </message>
+        <message>
+            <source>MESH_SIZE</source>
+            <translation>Mesh size:</translation>
+        </message>
+        <message>
+            <source>NB_ITERATIONS</source>
+            <translation>Number of iterations:</translation>
+        </message>
+        <message>
+            <source>NO_BTN</source>
+            <translation>&amp;No</translation>
+        </message>
+        <message>
+            <source>OK_BTN</source>
+            <translation>&amp;OK</translation>
+        </message>
+        <message>
+            <source>RANDOM</source>
+            <translation>Random</translation>
+        </message>
+        <message>
+            <source>RESULTS</source>
+            <translation>Results</translation>
+        </message>
+        <message>
+            <source>START_BTN</source>
+            <translation>&amp;Start</translation>
+        </message>
+        <message>
+            <source>START_POINT</source>
+            <translation>Start point</translation>
+        </message>
+        <message>
+            <source>STOP_BTN</source>
+            <translation>&amp;Stop</translation>
+        </message>
+        <message>
+            <source>WRN_WARNING</source>
+            <translation>Warning</translation>
+        </message>
+        <message>
+            <source>YES_BTN</source>
+            <translation>&amp;Yes</translation>
+        </message>
+    </context>
+</TS>