Changeset 1190
- Timestamp:
- 04/03/07 23:56:22 (2 years ago)
- Files:
-
- gaphor/trunk/MANIFEST.in (deleted)
- gaphor/trunk/NEWS (modified) (1 diff)
- gaphor/trunk/TODO (modified) (1 diff)
- gaphor/trunk/data/gaphor.dtd (deleted)
- gaphor/trunk/gaphor/__init__.py (modified) (2 diffs)
- gaphor/trunk/gaphor/actions/mainactions.py (modified) (1 diff)
- gaphor/trunk/gaphor/data (moved) (moved from gaphor/trunk/data)
- gaphor/trunk/gaphor/data/icons.xml (copied) (copied from gaphor/trunk/data/icons.xml)
- gaphor/trunk/gaphor/data/mainwindow.xml (copied) (copied from gaphor/trunk/data/mainwindow.xml)
- gaphor/trunk/gaphor/data/pixmaps (copied) (copied from gaphor/trunk/data/pixmaps)
- gaphor/trunk/gaphor/data/plugins (copied) (copied from gaphor/trunk/data/plugins)
- gaphor/trunk/gaphor/i18n.py (modified) (2 diffs)
- gaphor/trunk/gaphor/version.py (deleted)
- gaphor/trunk/po/ca.po (modified) (6 diffs)
- gaphor/trunk/po/es.po (modified) (6 diffs)
- gaphor/trunk/po/nl.po (modified) (9 diffs)
- gaphor/trunk/po/sv.po (modified) (6 diffs)
- gaphor/trunk/setup.cfg (modified) (1 diff)
- gaphor/trunk/setup.py (modified) (3 diffs)
- gaphor/trunk/utils/command/build_mo.py (modified) (2 diffs)
- gaphor/trunk/utils/command/build_version.py (deleted)
- gaphor/trunk/utils/command/install_mo.py (deleted)
- gaphor/trunk/utils/command/install_version.py (deleted)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
gaphor/trunk/NEWS
r1121 r1190 1 0.10.0 2 ------ 3 - New undo management system 4 - Setuptools is used for installation and also within Gaphor 5 - Depends on zope.component 3.4 and gaphas 0.1.3 (installed on as-needed basis) 6 - Installable as Python Egg 7 1 8 0.9.0 2 9 ----- gaphor/trunk/TODO
r1177 r1190 5 5 === zope.component-3.4dev_r72749-py2.4.egg === 6 6 - bug in zope.component package: in zope.component.globalregistry.py zope.testing is included. This package is only a dependency for the [test] setting. zope.testing is not mandatory. 7 8 9 - Undo functionality 10 11 - use easysetup tools, move gaphas to a separate package and use 12 zope.interface in stead of our included zope tree. 13 current implementation in esetup.py. 14 open issues: 15 - can't build a proper egg (where to put images) 16 - how should plugins be handles? Added to code base and initiated through 17 pkg_resources (egg_info) 18 - installing locales 19 - sdist target includes too much files (strip MANIFEST.in?) 20 - remove zope/ folders 21 - remove gaphas xref. upload a development snapshot 7 Use a more recent version 22 8 23 9 - Load / save regression testing gaphor/trunk/gaphor/__init__.py
r1188 r1190 6 6 __all__ = [ 'main', 'resource', 'GaphorError' ] 7 7 8 # Check for GTK-2.0, since we need it anyway... 9 #import pygtk 10 #pygtk.require('2.0') 11 #del pygtk 8 import os 12 9 13 10 import misc.logger 14 11 15 import version12 import pkg_resources 16 13 17 14 from misc.resource import Resource 15 16 if os.name == 'nt': 17 home = 'USERPROFILE' 18 else: 19 home = 'HOME' 20 21 user_data_dir = os.path.join(os.getenv(home), '.gaphor') 22 18 23 19 24 # Application wide resources can be stored in the 'resource' like this … … 25 30 resource = Resource(initial_resources={ 26 31 'Name': 'gaphor', 27 'Version': version.VERSION,28 'DataDir': version.DATA_DIR,29 'UserDataDir': version.USER_DATA_DIR,32 'Version': pkg_resources.get_distribution('gaphor').version, 33 'DataDir': os.path.join(pkg_resources.get_distribution('gaphor').location, 'gaphor', 'data'), 34 'UserDataDir': user_data_dir, 30 35 'ui.toolbox.classes': True, 31 36 }) gaphor/trunk/gaphor/actions/mainactions.py
r1170 r1190 419 419 add_label('<span weight="bold">version %s</span>' % version) 420 420 add_label('<span variant="smallcaps">UML Modeling tool for GNOME</span>', 8, 8) 421 add_label('<span size="small">Copyright (c) 2001-200 6Arjan J. Molenaar</span>', 8, 8)421 add_label('<span size="small">Copyright (c) 2001-2007 Arjan J. Molenaar</span>', 8, 8) 422 422 #vbox.pack_start(gtk.HSeparator()) 423 423 notebook.append_page(tab_vbox, gtk.Label('About')) gaphor/trunk/gaphor/i18n.py
r384 r1190 1 1 # vim:sw=4:et 2 """Internationalization (i18n) support for Gaphor. 2 """ 3 Internationalization (i18n) support for Gaphor. 3 4 4 5 Here the _() function is defined that is used to translate text into … … 6 7 """ 7 8 8 # default locale dir = sys.prefix/share/locale/<lang>/LC_MESSAGES/gaphor.mo9 10 9 __all__ = [ '_' ] 11 10 11 import os 12 12 13 import gettext 14 import pkg_resources 15 16 # default locale dir = site-base/gaphor/data/locale/<lang>/LC_MESSAGES/gaphor.mo 17 localedir = os.path.join(pkg_resources.get_distribution('gaphor').location, \ 18 'gaphor', 'data', 'locale') 13 19 14 20 try: 15 catalog = gettext.Catalog('gaphor' )21 catalog = gettext.Catalog('gaphor', localedir=localedir) 16 22 #log.info('catalog = %s' % catalog.info()) 17 23 _ = catalog.gettext gaphor/trunk/po/ca.po
r1121 r1190 6 6 msgstr "" 7 7 "Project-Id-Version: Gaphor 0.8.0\n" 8 "POT-Creation-Date: Thu Sep 14 09:55:12 2006\n"8 "POT-Creation-Date: Wed Apr 4 07:15:29 2007\n" 9 9 "PO-Revision-Date: 2006-02-13 16:11+0100\n" 10 10 "Last-Translator: Jordi Vilalta Prat <jvprat@gmail.com>\n" … … 27 27 "Els darrers canvis no es desaran. Voleu continuar?" 28 28 29 #: gaphor/actions/mainactions.py:94 30 msgid "New model" 31 msgstr "" 32 29 33 #: gaphor/actions/mainactions.py:101 30 34 msgid "Created a new model" … … 103 107 msgstr "" 104 108 105 #: gaphor/actions/mainactions.py:61 5109 #: gaphor/actions/mainactions.py:616 106 110 #, fuzzy 107 111 msgid "_Undo" 108 112 msgstr "_Finestra" 109 113 110 #: gaphor/diagram/classifier.py:2 17114 #: gaphor/diagram/classifier.py:248 111 115 msgid "(from %s)" 112 116 msgstr "(des de %s)" … … 128 132 "(S'haurà d'haver engegat Gaphor des de la lÃnia de comandes)" 129 133 130 #: gaphor/plugin.py: 88134 #: gaphor/plugin.py:90 131 135 msgid "" 132 136 "The file %s already exists. Do you want to replace it with the file you are " … … 134 138 msgstr "" 135 139 136 #: gaphor/storage.py:16 0140 #: gaphor/storage.py:164 137 141 msgid "Loading %d elements..." 138 142 msgstr "Carregant %d elements..." … … 142 146 msgstr "" 143 147 144 #: gaphor/ui/mainwindow.py:3 2148 #: gaphor/ui/mainwindow.py:33 145 149 msgid "Classes" 146 150 msgstr "Classes" 147 151 148 #: gaphor/ui/mainwindow.py:4 0152 #: gaphor/ui/mainwindow.py:41 149 153 msgid "Components" 150 154 msgstr "Components" 151 155 152 #: gaphor/ui/mainwindow.py:4 7156 #: gaphor/ui/mainwindow.py:48 153 157 msgid "Actions" 154 158 msgstr "Accions" 155 159 156 #: gaphor/ui/mainwindow.py:56 157 msgid "Interactions" 158 msgstr "Interaccions" 159 160 #: gaphor/ui/mainwindow.py:60 160 #: gaphor/ui/mainwindow.py:61 161 161 msgid "Use Cases" 162 162 msgstr "Casos d'Ãs" 163 163 164 #: gaphor/ui/mainwindow.py:6 6164 #: gaphor/ui/mainwindow.py:67 165 165 msgid "Profiles" 166 166 msgstr "Perfils" 167 167 168 #: gaphor/ui/mainwindow.py:7 3168 #: gaphor/ui/mainwindow.py:74 169 169 msgid "_File" 170 170 msgstr "_Fitxer" 171 171 172 #: gaphor/ui/mainwindow.py:7 7172 #: gaphor/ui/mainwindow.py:78 173 173 msgid "Recent files" 174 174 msgstr "Fitxers recents" 175 175 176 #: gaphor/ui/mainwindow.py:8 4176 #: gaphor/ui/mainwindow.py:85 177 177 msgid "_Import" 178 178 msgstr "_Importa" 179 179 180 #: gaphor/ui/mainwindow.py:8 6180 #: gaphor/ui/mainwindow.py:87 181 181 msgid "_Export" 182 182 msgstr "_Exporta" 183 183 184 #: gaphor/ui/mainwindow.py:9 3184 #: gaphor/ui/mainwindow.py:94 185 185 msgid "_Edit" 186 186 msgstr "_Edita" 187 187 188 #: gaphor/ui/mainwindow.py:10 7188 #: gaphor/ui/mainwindow.py:108 189 189 msgid "_Diagram" 190 190 msgstr "_Diagrama" 191 191 192 #: gaphor/ui/mainwindow.py:1 19192 #: gaphor/ui/mainwindow.py:120 193 193 msgid "Tools" 194 194 msgstr "Eines" 195 195 196 #: gaphor/ui/mainwindow.py:12 3196 #: gaphor/ui/mainwindow.py:124 197 197 msgid "_Window" 198 198 msgstr "_Finestra" 199 199 200 #: gaphor/ui/mainwindow.py:12 7200 #: gaphor/ui/mainwindow.py:128 201 201 msgid "_Help" 202 202 msgstr "_Ajuda" 203 203 204 #: gaphor/ui/mainwindow.py:22 3204 #: gaphor/ui/mainwindow.py:224 205 205 msgid "Quit Gaphor?" 206 206 msgstr "" 207 208 #~ msgid "Interactions" 209 #~ msgstr "Interaccions" gaphor/trunk/po/es.po
r1121 r1190 7 7 msgstr "" 8 8 "Project-Id-Version: Gaphor 0.8.0\n" 9 "POT-Creation-Date: Thu Sep 14 09:55:12 2006\n"9 "POT-Creation-Date: Wed Apr 4 07:15:29 2007\n" 10 10 "PO-Revision-Date: 2006-02-11 08:02+0100\n" 11 11 "Last-Translator: Jordi Vilalta Prat <jvprat@gmail.com>\n" … … 28 28 "Cualquier modificación no será guardada. ¿Desea continuar?" 29 29 30 #: gaphor/actions/mainactions.py:94 31 msgid "New model" 32 msgstr "" 33 30 34 #: gaphor/actions/mainactions.py:101 31 35 msgid "Created a new model" … … 100 104 msgstr "_Borrar" 101 105 102 #: gaphor/actions/mainactions.py:61 5106 #: gaphor/actions/mainactions.py:616 103 107 msgid "_Undo" 104 108 msgstr "_Deshacer" 105 109 106 #: gaphor/diagram/classifier.py:2 17110 #: gaphor/diagram/classifier.py:248 107 111 msgid "(from %s)" 108 112 msgstr "(desde %s)" … … 124 128 "(Debe iniciar Gaphor desde la linea de comandos)" 125 129 126 #: gaphor/plugin.py: 88130 #: gaphor/plugin.py:90 127 131 msgid "" 128 132 "The file %s already exists. Do you want to replace it with the file you are " … … 130 134 msgstr "" 131 135 132 #: gaphor/storage.py:16 0136 #: gaphor/storage.py:164 133 137 msgid "Loading %d elements..." 134 138 msgstr "Cargando %d elementos..." … … 138 142 msgstr "" 139 143 140 #: gaphor/ui/mainwindow.py:3 2144 #: gaphor/ui/mainwindow.py:33 141 145 msgid "Classes" 142 146 msgstr "Clases" 143 147 144 #: gaphor/ui/mainwindow.py:4 0148 #: gaphor/ui/mainwindow.py:41 145 149 msgid "Components" 146 150 msgstr "Componentes" 147 151 148 #: gaphor/ui/mainwindow.py:4 7152 #: gaphor/ui/mainwindow.py:48 149 153 msgid "Actions" 150 154 msgstr "Acciones" 151 155 152 #: gaphor/ui/mainwindow.py:56 153 msgid "Interactions" 154 msgstr "Interacciones" 155 156 #: gaphor/ui/mainwindow.py:60 156 #: gaphor/ui/mainwindow.py:61 157 157 msgid "Use Cases" 158 158 msgstr "Casos de Uso" 159 159 160 #: gaphor/ui/mainwindow.py:6 6160 #: gaphor/ui/mainwindow.py:67 161 161 msgid "Profiles" 162 162 msgstr "Perfiles" 163 163 164 #: gaphor/ui/mainwindow.py:7 3164 #: gaphor/ui/mainwindow.py:74 165 165 msgid "_File" 166 166 msgstr "_Archivo" 167 167 168 #: gaphor/ui/mainwindow.py:7 7168 #: gaphor/ui/mainwindow.py:78 169 169 msgid "Recent files" 170 170 msgstr "Archivos recientes" 171 171 172 #: gaphor/ui/mainwindow.py:8 4172 #: gaphor/ui/mainwindow.py:85 173 173 msgid "_Import" 174 174 msgstr "_Importar" 175 175 176 #: gaphor/ui/mainwindow.py:8 6176 #: gaphor/ui/mainwindow.py:87 177 177 msgid "_Export" 178 178 msgstr "_Exportar" 179 179 180 #: gaphor/ui/mainwindow.py:9 3180 #: gaphor/ui/mainwindow.py:94 181 181 msgid "_Edit" 182 182 msgstr "_Editar" 183 183 184 #: gaphor/ui/mainwindow.py:10 7184 #: gaphor/ui/mainwindow.py:108 185 185 msgid "_Diagram" 186 186 msgstr "_Diagrama" 187 187 188 #: gaphor/ui/mainwindow.py:1 19188 #: gaphor/ui/mainwindow.py:120 189 189 msgid "Tools" 190 190 msgstr "Herramientas" 191 191 192 #: gaphor/ui/mainwindow.py:12 3192 #: gaphor/ui/mainwindow.py:124 193 193 msgid "_Window" 194 194 msgstr "_Ventana" 195 195 196 #: gaphor/ui/mainwindow.py:12 7196 #: gaphor/ui/mainwindow.py:128 197 197 msgid "_Help" 198 198 msgstr "_Ayuda" 199 199 200 #: gaphor/ui/mainwindow.py:22 3200 #: gaphor/ui/mainwindow.py:224 201 201 msgid "Quit Gaphor?" 202 202 msgstr "" 203 204 #~ msgid "Interactions" 205 #~ msgstr "Interacciones" gaphor/trunk/po/nl.po
r1121 r1190 7 7 msgstr "" 8 8 "Project-Id-Version: 0.6.0\n" 9 "POT-Creation-Date: Thu Sep 14 09:55:12 2006\n"9 "POT-Creation-Date: Wed Apr 4 07:15:29 2007\n" 10 10 "PO-Revision-Date: 2004-06-10 08:00+001\n" 11 11 "Last-Translator: Arjan Molenaar <arjanmol_at_users.sourceforge.net>\n" … … 25 25 "Any changes made will not be saved. Do you want to continue?" 26 26 msgstr "" 27 "Het openen van een nieuw model zal het huidige model vervangen.\n" 28 "Veranderingen zullen niet eerst opgeslagen worden. Wilt u doorgaan?" 29 30 #: gaphor/actions/mainactions.py:94 31 msgid "New model" 32 msgstr "Nieuw model" 27 33 28 34 #: gaphor/actions/mainactions.py:101 … … 32 38 #: gaphor/actions/mainactions.py:113 33 39 msgid "_Revert..." 34 msgstr " "40 msgstr "_Herlaad..." 35 41 36 42 #: gaphor/actions/mainactions.py:135 … … 44 50 #: gaphor/actions/mainactions.py:166 45 51 msgid "Could not load model file." 46 msgstr " "52 msgstr "Kan model bestand niet laden." 47 53 48 54 #: gaphor/actions/mainactions.py:173 49 55 msgid "_Open..." 50 msgstr " "56 msgstr "_Open..." 51 57 52 58 #: gaphor/actions/mainactions.py:210 53 59 msgid "Save the model to a new file" 54 msgstr " "60 msgstr "Sla het model op in een nieuw bestand" 55 61 56 62 #: gaphor/actions/mainactions.py:262 57 63 msgid "Save Gaphor model as" 58 msgstr " "64 msgstr "Sla Gaphor model op als" 59 65 60 66 #: gaphor/actions/mainactions.py:327 … … 65 71 #: gaphor/actions/mainactions.py:346 66 72 msgid "_Console" 67 msgstr " "73 msgstr "_Console" 68 74 69 75 #: gaphor/actions/mainactions.py:364 70 76 msgid "_Manual" 71 msgstr " "77 msgstr "_Handleiding" 72 78 73 79 #: gaphor/actions/mainactions.py:384 74 80 msgid "_About" 75 msgstr " "81 msgstr "_Over Gaphor" 76 82 77 83 #: gaphor/actions/mainactions.py:451 78 84 #, fuzzy 79 85 msgid "_New diagram" 80 msgstr "_ Diagram"86 msgstr "_Nieuw Diagram" 81 87 82 88 #: gaphor/actions/mainactions.py:477 83 89 #, fuzzy 84 90 msgid "_Delete diagram" 85 msgstr " _Diagram"91 msgstr "Verwijder _Diagram" 86 92 87 93 #: gaphor/actions/mainactions.py:506 88 94 msgid "_Open" 89 msgstr " "95 msgstr "_Open" 90 96 91 97 #: gaphor/actions/mainactions.py:527 92 98 msgid "_Rename" 93 msgstr " "99 msgstr "_Hernoem" 94 100 95 101 #: gaphor/actions/mainactions.py:555 96 102 msgid "_Refresh" 97 msgstr " "103 msgstr "Ve_rvers" 98 104 99 105 #: gaphor/actions/mainactions.py:570 100 106 msgid "_Delete" 101 msgstr " "102 103 #: gaphor/actions/mainactions.py:61 5107 msgstr "Verwij_der" 108 109 #: gaphor/actions/mainactions.py:616 104 110 #, fuzzy 105 111 msgid "_Undo" 106 msgstr "_ Venster"107 108 #: gaphor/diagram/classifier.py:2 17112 msgstr "_Ongedaan maken" 113 114 #: gaphor/diagram/classifier.py:248 109 115 msgid "(from %s)" 110 116 msgstr "(van %s)" … … 112 118 #: gaphor/misc/errorhandler.py:22 113 119 msgid "An error occured." 114 msgstr " "120 msgstr "Er is een fout opgetreden" 115 121 116 122 #: gaphor/misc/errorhandler.py:29 … … 121 127 "(Gaphor should have been started from the command line)" 122 128 msgstr "" 123 124 #: gaphor/plugin.py:88 129 "\n" 130 "\n" 131 "Wilt u debuggen?" 132 "(Gaphor moet gestart zijn vanaf de commando regel)" 133 134 #: gaphor/plugin.py:90 125 135 msgid "" 126 136 "The file %s already exists. Do you want to replace it with the file you are " … … 128 138 msgstr "" 129 139 130 #: gaphor/storage.py:16 0140 #: gaphor/storage.py:164 131 141 msgid "Loading %d elements..." 132 142 msgstr "Laden van %s elementen..." … … 134 144 #: gaphor/ui/diagramtab.py:49 135 145 msgid "<None>" 136 msgstr " "137 138 #: gaphor/ui/mainwindow.py:3 2146 msgstr "<None>" 147 148 #: gaphor/ui/mainwindow.py:33 139 149 msgid "Classes" 140 150 msgstr "Klassen" 141 151 142 #: gaphor/ui/mainwindow.py:4 0152 #: gaphor/ui/mainwindow.py:41 143 153 msgid "Components" 144 154 msgstr "Componenten" 145 155 146 #: gaphor/ui/mainwindow.py:4 7156 #: gaphor/ui/mainwindow.py:48 147 157 msgid "Actions" 148 msgstr "Akties" 149 150 #: gaphor/ui/mainwindow.py:56 151 #, fuzzy 152 msgid "Interactions" 153 msgstr "Akties" 154 155 #: gaphor/ui/mainwindow.py:60 158 msgstr "Acties" 159 160 #: gaphor/ui/mainwindow.py:61 156 161 msgid "Use Cases" 157 162 msgstr "Use cases" 158 163 159 #: gaphor/ui/mainwindow.py:6 6164 #: gaphor/ui/mainwindow.py:67 160 165 msgid "Profiles" 161 msgstr "Profi len"162 163 #: gaphor/ui/mainwindow.py:7 3166 msgstr "Profielen" 167 168 #: gaphor/ui/mainwindow.py:74 164 169 msgid "_File" 165 170 msgstr "_Bestand" 166 171 167 #: gaphor/ui/mainwindow.py:7 7172 #: gaphor/ui/mainwindow.py:78 168 173 msgid "Recent files" 169 174 msgstr "Recente bestanden" 170 175 171 #: gaphor/ui/mainwindow.py:8 4176 #: gaphor/ui/mainwindow.py:85 172 177 #, fuzzy 173 178 msgid "_Import" 174 179 msgstr "_Exporteer" 175 180 176 #: gaphor/ui/mainwindow.py:8 6181 #: gaphor/ui/mainwindow.py:87 177 182 msgid "_Export" 178 183 msgstr "_Exporteer" 179 184 180 #: gaphor/ui/mainwindow.py:9 3185 #: gaphor/ui/mainwindow.py:94 181 186 msgid "_Edit" 182 187 msgstr "_Wijzig" 183 188 184 #: gaphor/ui/mainwindow.py:10 7189 #: gaphor/ui/mainwindow.py:108 185 190 msgid "_Diagram" 186 191 msgstr "_Diagram" 187 192 188 #: gaphor/ui/mainwindow.py:1 19193 #: gaphor/ui/mainwindow.py:120 189 194 msgid "Tools" 190 msgstr " "191 192 #: gaphor/ui/mainwindow.py:12 3195 msgstr "Hulpmiddelen" 196 197 #: gaphor/ui/mainwindow.py:124 193 198 msgid "_Window" 194 199 msgstr "_Venster" 195 200 196 #: gaphor/ui/mainwindow.py:12 7201 #: gaphor/ui/mainwindow.py:128 197 202 msgid "_Help" 198 203 msgstr "_Help" 199 204 200 #: gaphor/ui/mainwindow.py:22 3205 #: gaphor/ui/mainwindow.py:224 201 206 msgid "Quit Gaphor?" 202 msgstr "" 207 msgstr "Beeindig Gaphor?" 208 209 #, fuzzy 210 #~ msgid "Interactions" 211 #~ msgstr "Interacties" 203 212 204 213 #~ msgid "To be implemented" gaphor/trunk/po/sv.po
r1121 r1190 7 7 msgstr "" 8 8 "Project-Id-Version: gaphor\n" 9 "POT-Creation-Date: Thu Sep 14 09:55:12 2006\n"9 "POT-Creation-Date: Wed Apr 4 07:15:29 2007\n" 10 10 "PO-Revision-Date: 2006-05-11 16:34+0100\n" 11 11 "Last-Translator: Daniel Nylander <po@danielnylander.se>\n" … … 29 29 "Vill du fortsÀtta?" 30 30 31 #: gaphor/actions/mainactions.py:94 32 msgid "New model" 33 msgstr "" 34 31 35 #: gaphor/actions/mainactions.py:101 32 36 msgid "Created a new model" … … 101 105 msgstr "_Ta bort" 102 106 103 #: gaphor/actions/mainactions.py:61 5107 #: gaphor/actions/mainactions.py:616 104 108 msgid "_Undo" 105 109 msgstr "_à 106 110 ngra" 107 111 108 #: gaphor/diagram/classifier.py:2 17112 #: gaphor/diagram/classifier.py:248 109 113 msgid "(from %s)" 110 114 msgstr "(frÃ¥n %s)" … … 126 130 "(Gaphor bör ha startats frÃ¥n kommandoraden)" 127 131 128 #: gaphor/plugin.py: 88132 #: gaphor/plugin.py:90 129 133 msgid "" 130 134 "The file %s already exists. Do you want to replace it with the file you are " … … 132 136 msgstr "" 133 137 134 #: gaphor/storage.py:16 0138 #: gaphor/storage.py:164 135 139 msgid "Loading %d elements..." 136 140 msgstr "LÀser in %d element..." … … 140 144 msgstr "" 141 145 142 #: gaphor/ui/mainwindow.py:3 2146 #: gaphor/ui/mainwindow.py:33 143 147 msgid "Classes" 144 148 msgstr "Klasser" 145 149 146 #: gaphor/ui/mainwindow.py:4 0150 #: gaphor/ui/mainwindow.py:41 147 151 msgid "Components" 148 152 msgstr "Komponenter" 149 153 150 #: gaphor/ui/mainwindow.py:4 7154 #: gaphor/ui/mainwindow.py:48 151 155 msgid "Actions" 152 156 msgstr "à 153 157 tgÀrder" 154 158 155 #: gaphor/ui/mainwindow.py:56156 msgid "Interactions"157 msgstr "Interaktioner"158 159 159 # OsÀker pÃ¥ denna 160 #: gaphor/ui/mainwindow.py:6 0160 #: gaphor/ui/mainwindow.py:61 161 161 msgid "Use Cases" 162 162 msgstr "AnvÀnd lÃ¥dor" 163 163 164 #: gaphor/ui/mainwindow.py:6 6164 #: gaphor/ui/mainwindow.py:67 165 165 msgid "Profiles" 166 166 msgstr "Profiler" 167 167 168 #: gaphor/ui/mainwindow.py:7 3168 #: gaphor/ui/mainwindow.py:74 169 169 msgid "_File" 170 170 msgstr "_Arkiv" 171 171 172 #: gaphor/ui/mainwindow.py:7 7172 #: gaphor/ui/mainwindow.py:78 173 173 msgid "Recent files" 174 174 msgstr "Tidigare filer" 175 175 176 #: gaphor/ui/mainwindow.py:8 4176 #: gaphor/ui/mainwindow.py:85 177 177 msgid "_Import" 178 178 msgstr "_Importera" 179 179 180 #: gaphor/ui/mainwindow.py:8 6180 #: gaphor/ui/mainwindow.py:87 181 181 msgid "_Export" 182 182 msgstr "_Exportera" 183 183 184 #: gaphor/ui/mainwindow.py:9 3184 #: gaphor/ui/mainwindow.py:94 185 185 msgid "_Edit" 186 186 msgstr "R_edigera" 187 187 188 #: gaphor/ui/mainwindow.py:10 7188 #: gaphor/ui/mainwindow.py:108 189 189 msgid "_Diagram" 190 190 msgstr "_Diagram" 191 191 192 #: gaphor/ui/mainwindow.py:1 19192 #: gaphor/ui/mainwindow.py:120 193 193 msgid "Tools" 194 194 msgstr "Verktyg" 195 195 196 #: gaphor/ui/mainwindow.py:12 3196 #: gaphor/ui/mainwindow.py:124 197 197 msgid "_Window" 198 198 msgstr "_Fönster" 199 199 200 #: gaphor/ui/mainwindow.py:12 7200 #: gaphor/ui/mainwindow.py:128 201 201 msgid "_Help" 202 202 msgstr "_HjÀlp" 203 203 204 #: gaphor/ui/mainwindow.py:22 3204 #: gaphor/ui/mainwindow.py:224 205 205 msgid "Quit Gaphor?" 206 206 msgstr "" 207 208 #~ msgid "Interactions" 209 #~ msgstr "Interaktioner" 207 210 208 211 #~ msgid "To be implemented" gaphor/trunk/setup.cfg
r1176 r1190 2 2 [egg_info] 3 3 # Point egg_base to compiled sources, cause some sources have to be generated 4 egg_base=build/lib4 #egg_base=build/lib 5 5 6 [install]7 install_data=$base/share/gaphorgaphor/trunk/setup.py
r1189 r1190 21 21 from utils.command.build_mo import build_mo 22 22 from utils.command.build_pot import build_pot 23 from utils.command.install_mo import install_mo24 23 from utils.command.build_uml import build_uml 25 from utils.command.build_version import build_version26 from utils.command.install_version import install_version27 24 from utils.command.run import run 28 25 29 26 LINGUAS = [ 'ca', 'es', 'nl', 'sv' ] 30 27 31 from glob import glob32 def plugin_data(name):33 return 'plugins/%s' % name, glob('data/plugins/%s/*.*' % name)34 28 35 29 setup( 36 30 name='gaphor', 37 31 version=VERSION, 38 url='http://gaphor. sourceforge.net',32 url='http://gaphor.devjavu.com', 39 33 author='Arjan J. Molenaar', 40 34 author_email='arjanmol@users.sourceforge.net', … … 59 53 ], 60 54 61 keywords = 'model modeling modelling uml diagram python ',55 keywords = 'model modeling modelling uml diagram python tool', 62 56 63 packages = find_packages(exclude=['ez_setup', ' gaphas', 'utils*', 'zope_old*']),57 packages = find_packages(exclude=['ez_setup', 'utils*']), 64 58 65 package_data = { 66 'data': [ 'icons.xml' ], 67 'data/pixmaps': [ '*.png' ], 68 'data/plugins': [ '*/plugin.xml', '*/*.txt', '*/*.py' ] 69 }, 70 data_files=[('', ['data/icons.xml']), 71 ('pixmaps', glob('data/pixmaps/*.png')), 72 plugin_data('plugineditor'), 73 plugin_data('alignment'), 74 plugin_data('checkmetamodel'), 75 plugin_data('diagramlayout'), 76 plugin_data('liveobjectbrowser'), 77 plugin_data('pngexport'), 78 plugin_data('pynsource'), 79 plugin_data('svgexport'), 80 plugin_data('pdfexport'), 81 plugin_data('xmiexport') 82 ], 59 include_package_data = True, 83 60 84 61 install_requires = [ … … 105 82 cmdclass = { 106 83 'build_uml': build_uml, 107 'build_version': build_version,108 'install_version': install_version,109 84 'build_mo': build_mo, 110 85 'build_pot': build_pot, gaphor/trunk/utils/command/build_mo.py
r1142 r1190 35 35 if self.build_dir is None: 36 36 self.set_undefined_options('build', 37 ('build_ base', 'build_dir'))38 self.build_dir = os.path.join(self.build_dir, ' locale')37 ('build_lib', 'build_dir')) 38 self.build_dir = os.path.join(self.build_dir, 'gaphor', 'data', 'locale') 39 39 40 40 self.all_linguas = self.all_linguas.split(',') … … 45 45 return 46 46 47 self.mkpath(self.build_dir)48 47 for lingua in self.all_linguas: 49 48 pofile = os.path.join('po', lingua + '.po') 50 outfile = os.path.join(self.build_dir, lingua + '.mo') 49 outdir = os.path.join(self.build_dir, lingua, 'LC_MESSAGES') 50 self.mkpath(outdir) 51 outfile = os.path.join(outdir, 'gaphor.mo') 51 52 if self.force or newer(pofile, outfile): 52 53 print 'converting %s -> %s' % (pofile, outfile)
