Permalink
Browse files

fix italian translation

git-svn-id: https://nmapsi4.googlecode.com/svn/trunk/nmapsi4@276 c1291736-2539-0410-a836-7dc8ed2dc041
  • Loading branch information...
el.diabl09
el.diabl09 committed May 10, 2008
0 parents commit 081ac7563b67d6386be11aa2683c7aa2b75dd9f8
Showing with 14,522 additions and 0 deletions.
  1. +3 −0 AUTHORS
  2. +119 −0 CMakeLists.txt
  3. +340 −0 COPYING
  4. 0 NEWS
  5. +65 −0 README
  6. +3 −0 TODO
  7. +1 −0 config.h.cmake
  8. BIN icons/128x128/nmapsi4.png
  9. BIN icons/16x16/nmapsi4.png
  10. BIN icons/32x32/nmapsi4.png
  11. BIN icons/64x64/nmapsi4.png
  12. +740 −0 icons/nmapsi4_endScan.svg
  13. +110 −0 icons/nmapsi4_mw.svg
  14. +2,781 −0 icons/nmapsi4_scan.svg
  15. BIN images/book.png
  16. BIN images/book2.png
  17. BIN images/brand3.png
  18. BIN images/button_cancel.png
  19. BIN images/document-save-as.png
  20. BIN images/erase.png
  21. BIN images/fileopen.png
  22. BIN images/flag_green.png
  23. BIN images/flag_red.png
  24. BIN images/flag_yellow.png
  25. BIN images/folder_open.png
  26. BIN images/messagebox_critical.png
  27. BIN images/messagebox_info.png
  28. BIN images/network_local.png
  29. BIN images/player_time.png
  30. BIN images/preferences-system-windows.png
  31. BIN images/save_all.png
  32. BIN images/show-menu.png
  33. BIN images/tool.png
  34. BIN images/utilities-log-viewer.png
  35. BIN images/view-fullscreen.png
  36. BIN images/view-tree.png
  37. BIN images/viewmag.png
  38. BIN images/viewmagfit.png
  39. BIN images/window-close.png
  40. BIN images/window_new.png
  41. +33 −0 mainwin.qrc
  42. +62 −0 nmapsi4.pro
  43. +359 −0 src/core/extensions.cpp
  44. +309 −0 src/core/nmapParser.cpp
  45. +130 −0 src/core/nmapsi4Slot.cpp
  46. +166 −0 src/core/profileSession.cpp
  47. +161 −0 src/core/resizeNmapsi4.cpp
  48. +114 −0 src/core/saveLog.cpp
  49. +25 −0 src/core/staticDefine.h
  50. +251 −0 src/core/toolsUI.cpp
  51. +305 −0 src/core/updateUI.cpp
  52. +15 −0 src/kde/nmapsi4-admin.desktop
  53. +12 −0 src/kde/nmapsi4.desktop
  54. +62 −0 src/main.cpp
  55. +135 −0 src/mainwin.cpp
  56. +126 −0 src/mainwin.h
  57. +2,065 −0 src/mainwin.ui
  58. +238 −0 src/preference/profilemain.cpp
  59. +60 −0 src/preference/profilemain.h
  60. +405 −0 src/preference/profilemain.ui
  61. +70 −0 src/preference/profilemainupdate.cpp
  62. +53 −0 tools/CMakeLists.txt_26
  63. +11 −0 tools/cmake_verbose_script.sh
  64. +1 −0 tools/config.h
  65. +3 −0 tools/update_translation.sh
  66. +853 −0 ts/nmapsi4_NONE.ts
  67. +853 −0 ts/nmapsi4_de.ts
  68. +853 −0 ts/nmapsi4_es.ts
  69. +853 −0 ts/nmapsi4_fr.ts
  70. +924 −0 ts/nmapsi4_it.ts
  71. +853 −0 ts/nmapsi4_pl.ts
@@ -0,0 +1,3 @@
AUTHORS:
Core developer: Cecconi Francesco (|BrAnD|) <francesco.cecconi@kdemail.net>
MS Windows: Innocenzo Ventre (El'Diablo) <el.diabl09@gmail.com> (Packages and Documentations)
@@ -0,0 +1,119 @@
PROJECT(nmapsi4)
cmake_minimum_required(VERSION 2.4.0)
FIND_PACKAGE(Qt4 REQUIRED)
include(${QT_USE_FILE})
configure_file(config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h )
SET(SOURCES_CPP src/core/nmapsi4Slot.cpp
src/core/resizeNmapsi4.cpp
src/core/nmapParser.cpp
src/core/extensions.cpp
src/mainwin.cpp
src/core/updateUI.cpp
src/core/toolsUI.cpp
src/preference/profilemain.cpp
src/preference/profilemainupdate.cpp
src/core/profileSession.cpp
src/core/saveLog.cpp
src/main.cpp )
MESSAGE( STATUS ${SOURCES_CPP} )
SET(SOURCES_H src/mainwin.h src/preference/profilemain.h)
MESSAGE( STATUS ${SOURCES_H} )
SET(SOURCES_UI src/mainwin.ui src/preference/profilemain.ui)
MESSAGE( STATUS ${SOURCES_UI} )
SET(RESOURCES_QRC mainwin.qrc)
MESSAGE( STATUS ${RESOURCES_QRC} )
qt4_add_RESOURCES(RESOURCES_QRC_SOURCES ${RESOURCES_QRC} )
QT4_WRAP_UI(SOURCES_UI_H ${SOURCES_UI})
QT4_WRAP_CPP( SOURCES_CPP ${SOURCES_H} )
INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_BINARY_DIR} )
ADD_EXECUTABLE(nmapsi4 ${SOURCES_H} ${SOURCES_CPP} ${SOURCES_UI_H} ${RESOURCES_QRC_SOURCES})
INCLUDE_DIRECTORIES( ${QT_INCLUDE_DIR} )
TARGET_LINK_LIBRARIES( nmapsi4 ${QT_LIBRARIES} )
#
# Check lupdate and lrelease
# Cmake < 2.5
#
set(po_SRCS ts/nmapsi4_it.ts ts/nmapsi4_fr.ts ts/nmapsi4_es.ts ts/nmapsi4_de.ts ts/nmapsi4_pl.ts)
find_program(QT_LUPDATE
NAMES lupdate-qt4 lupdate
PATHS $ENV{QTDIR}/bin
DOC "Path to the lupdate program"
)
find_program(QT_LRELEASE
NAMES lrelease-qt4 lrelease
PATHS $ENV{QTDIR}/bin
DOC "Path to the lrelease program"
)
# Update translations (note that [clean-]merge targets write to source directory)
if (QT_LUPDATE)
# Updates all translations
add_custom_target(merge
${QT_LUPDATE} ${translate_files} -ts ${po_SRCS}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
# Update all translations and remove obsolete strings
add_custom_target(clean-merge
${QT_LUPDATE} -noobsolete ${translate_files} -ts ${po_SRCS}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
# Create template.ts to be used for new translations
add_custom_command(OUTPUT template.ts
COMMAND ${QT_LUPDATE} -noobsolete ${translate_files} -ts template.ts
DEPENDS ${translate_files})
add_custom_target(template DEPENDS template.ts)
else (QT_LUPDATE)
message(STATUS "lupdate could not be found. You will not be able to update the translations.")
endif (QT_LUPDATE)
# Build translations
if (QT_LRELEASE)
# Clear list
set(qms)
# Add command to build X.qm from X.po
foreach (po ${po_SRCS})
get_filename_component(qm ${po} NAME_WE)
set(qm "${CMAKE_CURRENT_BINARY_DIR}/${qm}.qm")
set(po "${CMAKE_CURRENT_SOURCE_DIR}/${po}")
add_custom_command(OUTPUT ${qm}
COMMAND ${QT_LRELEASE} ${po} -qm ${qm}
DEPENDS ${po})
set(qms ${qms} ${qm})
endforeach(po)
# Finish off with a command that builds *.qm
add_custom_target(translations ALL DEPENDS ${qms})
install(FILES ${qms} DESTINATION ${CMAKE_INSTALL_PREFIX}/share/nmapsi4/locale)
else (QT_LRELEASE)
message(STATUS "lrelease could not be found. You're losing the localisation.")
endif (QT_LRELEASE)
# Cmake >= 2.5
#qt4_create_translation(qms ts/nmapsi4_it.ts ts/nmapsi4_fr.ts ts/nmapsi4_es.ts nmapsi4_de.ts ts/nmapsi4_pl.ts)
#qt4_add_translation(qms ts/nmapsi4_it.ts ts/nmapsi4_fr.ts ts/nmapsi4_es.ts nmapsi4_de.ts ts/nmapsi4_pl.ts)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/nmapsi4" DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
install(FILES "src/kde/nmapsi4.desktop" DESTINATION ${CMAKE_INSTALL_PREFIX}/share/applications/kde/)
install(FILES "src/kde/nmapsi4-admin.desktop" DESTINATION ${CMAKE_INSTALL_PREFIX}/share/applications/kde/)
install(FILES "icons/16x16/nmapsi4.png" DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/16x16/apps/)
install(FILES "icons/32x32/nmapsi4.png" DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/32x32/apps/)
install(FILES "icons/64x64/nmapsi4.png" DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/64x64/apps/)
install(FILES "icons/128x128/nmapsi4.png" DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/128x128/apps/)
Oops, something went wrong.

0 comments on commit 081ac75

Please sign in to comment.