Changeset 123

Show
Ignore:
Timestamp:
09/02/02 08:10:50 (6 years ago)
Author:
arjanmol
Message:

Better i18n support

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/gaphor

    • Property svn:ignore changed from
      Makefile
      Makefile.in
      *.pyc
      *.pyo
      *.gaphor
      *.xml
      aclocal.m4
      confdefs.h
      config.cache
      config.guess
      config.h
      config.log
      config.status
      config.sub
      configure
      configure.scan
      libtool
      ltconfig
      ltmain.sh
      stamp-h
      stamp-h.in
      stamp.h
      config.h
      config.h.in
      install-sh
      missing
      mkinstalldirs
      INSTALL
      intl
      ABOUT-NLS
      COPYING
      .lclintrc
      mkChangeLog.stamp
      ignore-too
      mkChangeLog
      py-compile
      stamp-h1
      depcomp
      to
      Makefile
      Makefile.in
      *.pyc
      *.pyo
      *.gaphor
      *.xml
      aclocal.m4
      confdefs.h
      config.cache
      config.guess
      config.h
      config.log
      config.status
      config.sub
      configure
      configure.scan
      libtool
      ltconfig
      ltmain.sh
      stamp-h
      stamp-h.in
      stamp.h
      config.h
      config.h.in
      install-sh
      missing
      mkinstalldirs
      INSTALL
      intl
      ABOUT-NLS
      COPYING
      .lclintrc
      mkChangeLog.stamp
      ignore-too
      mkChangeLog
      py-compile
      stamp-h1
      depcomp
      gaphor-*.tar.gz
  • trunk/gaphor/.cvsignore

    r110 r123  
    3737stamp-h1 
    3838depcomp 
    39  
     39gaphor-*.tar.gz 
  • trunk/gaphor/Makefile.am

    r122 r123  
    22AUTOMAKE_OPTIONS = 1.6 
    33 
    4 SUBDIRS = utils doc tests 
     4# The definition of 'DIRS' and 'FILES' is defined by 'configure'... 
     5# DIRS: The subdirectories that should be added to the distribution. 
     6# FILES: The files named 'Files' that contain (Python) files that should be 
     7#        added to the distribution. 
    58 
    6 bin_PROGRAMS = gaphor.sh 
     9SUBDIRS = utils po doc tests 
    710 
    8 EXTRA_DIST = $(FILES) $(FILES_FILES) gaphor.sh.in gaphor/config.py.in 
     11bin_SCRIPTS = bin/gaphor 
     12 
     13EXTRA_DIST = $(FILES) $(FILES_FILES) bin/gaphor.in gaphor/config.py.in 
    914 
    1015INSTALL_DIRS = $(DIRS) 
     
    1318GEN_UML = $(top_srcdir)/utils/genUML.py 
    1419METAMODEL_XMI = $(top_srcdir)/doc/UmlMetaModel.xmi 
     20 
     21# Makefile depends on the 'Files' files, so we should add them as a dependency 
     22# to reconfigure... 
     23CONFIG_STATUS_DEPENDENCIES = $(FILES_FILES) 
    1524 
    1625all-local: gaphor/UML/modelelements.py 
     
    4049        for D in $(INSTALL_DIRS); do \ 
    4150                test -d "$(INSTALLDIR)$$D" && rm -rf "$(INSTALLDIR)$$D"; \ 
    42         done 
     51        done; true 
    4352 
    44 .PHONY: release snapshot 
     53.PHONY: release snapshot files-check potfiles.in 
    4554 
    4655release: 
     
    5261        $(MAKE) dist distdir=$(PACKAGE)`date +"%y%m%d"` 
    5362 
     63files-check: 
     64        @for F in `find gaphor -name '*.py' -o -name '*.png'`; do \ 
     65                { echo "$(FILES)" | grep -q "\<$$F\>"; } || echo "Missing file: $$F"; \ 
     66        done 
     67 
     68potfiles.in: 
     69        for L in $(FILES); do \ 
     70                echo "$$L"; \ 
     71        done | grep '\.py$$' > $(srcdir)/po/POTFILES.in 
     72 
  • trunk/gaphor/autogen.sh

    r84 r123  
    3636 
    3737run ./configure --enable-maintainer-mode $* 
    38  
    39 echo 
    40 echo "Now enter 'make' to compile" 
    41 echo 
  • trunk/gaphor/configure.in

    r122 r123  
    1818        gaphor/ui/Files \ 
    1919        gaphor/ui/command/Files \ 
     20        gaphor/ui/icons/Files \ 
    2021        gaphor/misc/Files" 
    2122 
     
    3132ALL_LINGUAS="nl" 
    3233 
    33 AM_GLIB_GNU_GETTEXT 
     34dnl AM_GLIB_GNU_GETTEXT 
     35 
     36LOCALEDIR='${prefix}/${DATADIRNAME}/locale' 
     37AC_SUBST(LOCALEDIR) 
    3438 
    3539######### 
     
    127131AC_SUBST(FILES) 
    128132 
     133AC_CONFIG_FILES([bin/gaphor], [chmod +x bin/gaphor]) 
    129134AC_CONFIG_FILES( 
    130135        Makefile 
    131         gaphor.sh 
    132136        utils/Makefile 
    133137        gaphor/config.py 
  • trunk/gaphor/gaphor

    • Property svn:ignore changed from
      Makefile
      Makefile.in
      *.pyc
      *.pyo
      config.py
      to
      *.pyc
      *.pyo
      config.py
  • trunk/gaphor/gaphor/.cvsignore

    r118 r123  
    1 Makefile 
    2 Makefile.in 
    31*.pyc 
    42*.pyo 
  • trunk/gaphor/gaphor/UML

    • Property svn:ignore changed from
      Makefile
      Makefile.in
      *.pyc
      *.pyo
      modelelements.py
      to
      *.pyc
      *.pyo
      modelelements.py
  • trunk/gaphor/gaphor/UML/.cvsignore

    r57 r123  
    1 Makefile 
    2 Makefile.in 
    31*.pyc 
    42*.pyo 
  • trunk/gaphor/gaphor/config.py.in

    r121 r123  
    11VERSION='@VERSION@' 
    22GETTEXT_PACKAGE='@GETTEXT_PACKAGE@' 
     3LOCALEDIR='@LOCALEDIR@' 
  • trunk/gaphor/gaphor/diagram

    • Property svn:ignore changed from
      Makefile
      Makefile.in
      *.pyc
      *.pyo
      .deps
      py-compile
      to
      *.pyc
      *.pyo
  • trunk/gaphor/gaphor/diagram/.cvsignore

    r84 r123  
    1 Makefile 
    2 Makefile.in 
    31*.pyc 
    42*.pyo 
    5 .deps 
    6 py-compile 
  • trunk/gaphor/gaphor/gaphor.py

    r121 r123  
    88from misc.singleton import Singleton 
    99import config 
     10import gettext 
    1011 
    1112class Gaphor(Singleton): 
     13    """ 
     14    Gaphor main app. 
     15    """ 
    1216    NAME='gaphor' 
    13     from config import VERSION #VERSION=config.GAPHOR_VERSION 
     17    VERSION=config.VERSION 
    1418    TITLE='Gaphor v' + VERSION 
    1519 
    1620    def init(self): 
     21        gettext.install(config.GETTEXT_PACKAGE) 
    1722        self.__main_window = None 
    1823        pass 
  • trunk/gaphor/gaphor/misc

    • Property svn:ignore changed from
      Makefile
      Makefile.in
      *.pyc
      *.pyo
      *.o
      *.lo
      *.so
      *.la
      .libs
      .deps
      to
      *.pyc
      *.pyo
  • trunk/gaphor/gaphor/misc/.cvsignore

    r57 r123  
    1 Makefile 
    2 Makefile.in 
    31*.pyc 
    42*.pyo 
    5 *.o 
    6 *.lo 
    7 *.so 
    8 *.la 
    9 .libs 
    10 .deps 
    11  
  • trunk/gaphor/gaphor/misc/Files

    r117 r123  
    33command.py 
    44gaphorerror.py 
     5menufactory.py 
    56signal.py 
    67singleton.py 
  • trunk/gaphor/gaphor/ui

    • Property svn:ignore changed from
      Makefile
      Makefile.in
      *.pyc
      *.pyo
      *.o
      *.lo
      *.so
      *.la
      .libs
      .deps
      to
      *.pyc
      *.pyo
  • trunk/gaphor/gaphor/ui/.cvsignore

    r44 r123  
    1 Makefile 
    2 Makefile.in 
    31*.pyc 
    42*.pyo 
    5 *.o 
    6 *.lo 
    7 *.so 
    8 *.la 
    9 .libs 
    10 .deps 
    11  
  • trunk/gaphor/gaphor/ui/Files

    r117 r123  
    44placementtool.py 
    55treeview.py 
     6mainwindow.py 
     7diagramwindow.py 
     8stock.py 
  • trunk/gaphor/gaphor/ui/command

    • Property svn:ignore changed from
      Makefile
      Makefile.in
      *.pyc
      *.pyo
      *.o
      *.lo
      *.so
      *.la
      .libs
      .deps
      to
      *.pyc
      *.pyo
  • trunk/gaphor/gaphor/ui/command/.cvsignore

    r111 r123  
    1 Makefile 
    2 Makefile.in 
    31*.pyc 
    42*.pyo 
    5 *.o 
    6 *.lo 
    7 *.so 
    8 *.la 
    9 .libs 
    10 .deps 
    11  
  • trunk/gaphor/gaphor/ui/command/Files

    r119 r123  
    11__init__.py 
    22about.py 
     3diagram.py 
    34file.py 
    45tree.py 
  • trunk/gaphor/gaphor/ui/icons

    • Property svn:ignore set to .xvpics
  • trunk/gaphor/gaphor/ui/mainwindow.py

    r122 r123  
    2525        # ( Name, Comment, (ctrl) + Modifier, Command or Submenu ) 
    2626        menu =  MenuItem(submenu=( 
    27                     MenuItem(name='_File', submenu=( 
     27                    MenuItem(name=_('_File'), submenu=( 
    2828                        MenuStockItem(stock_id=gtk.STOCK_NEW, 
    29                                  comment='Create a new model'
     29                                 comment=_('Create a new model')
    3030                                 command=command.file.NewCommand()), 
    3131                        MenuStockItem(stock_id=gtk.STOCK_OPEN,