Changeset 2999

Show
Ignore:
Timestamp:
08/20/08 01:36:47 (3 months ago)
Author:
edmanm
Message:

Create .po files with translations for the user-visible Qt widgets that
Vidalia uses, primed with the existing translated strings from Qt 4.4.1. Also
add them to the default Vidalia build and load them when installing
translators for the current language.

This is useful if the user's Qt install doesn't have translations available,
or is using an older Qt that doesn't have some of these strings translated. It
also allows us to cram them into Pootle, since there are many unfinished
strings in here.

Location:
vidalia/trunk/src/vidalia/i18n
Files:
11 added
2 modified

Legend:

Unmodified
Added
Removed
  • vidalia/trunk/src/vidalia/i18n/CMakeLists.txt

    r2929 r2999  
    4040vidalia_add_po(vidalia_QMS ${vidalia_PO}) 
    4141 
     42## Qt translation files 
     43set(qt_PO 
     44  ar/qt_ar.po 
     45  de/qt_de.po 
     46  es/qt_es.po 
     47  fr/qt_fr.po 
     48  ja/qt_ja.po 
     49  pl/qt_pl.po 
     50  pt/qt_pt.po 
     51  ru/qt_ru.po 
     52  sv/qt_sv.po 
     53  zh_CN/qt_zh_CN.po 
     54  zh_TW/qt_zh_TW.po 
     55) 
     56vidalia_add_po(qt_QMS ${qt_PO}) 
     57 
    4258## Create a target that converts all .po files to Qt .qm files 
    43 add_custom_target(i18n DEPENDS ${vidalia_QMS}) 
     59add_custom_target(i18n DEPENDS ${vidalia_QMS} ${qt_QMS}) 
    4460add_dependencies(i18n po2ts) 
    4561 
    46 ## Create a target that runs lupdate for all the source and UI files 
     62## Create a target that runs lupdate for all Vidalia source and UI files 
    4763add_custom_target(i18n-update) 
    4864add_dependencies(i18n-update po2ts ts2po) 
  • vidalia/trunk/src/vidalia/i18n/vidalia_i18n.qrc

    r2811 r2999  
    2525    <file>vidalia_zh_TW.qm</file> 
    2626  </qresource> 
     27  <qresource prefix="/lang"> 
     28    <file>qt_ar.qm</file> 
     29    <file>qt_de.qm</file> 
     30    <file>qt_es.qm</file> 
     31    <file>qt_fr.qm</file> 
     32    <file>qt_ja.qm</file> 
     33    <file>qt_pl.qm</file> 
     34    <file>qt_pt.qm</file> 
     35    <file>qt_ru.qm</file> 
     36    <file>qt_sv.qm</file> 
     37    <file>qt_zh_CN.qm</file> 
     38    <file>qt_zh_TW.qm</file> 
     39  </qresource> 
    2740</RCC> 
    2841