Changeset 801
- Timestamp:
- 10/07/05 19:01:25 (3 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/i18n/django/bin/make-messages.py
r799 r801 38 38 os.makedirs(basedir) 39 39 40 tpl_i18n_re = re.compile(r'{%\s+i18n\s+.*?%}') 41 tpl_value_re = re.compile(r'{{\s*_\(.*?\)\s*}}') 42 tpl_tag_re = re.compile(r"""{%.*_\((?:".*?")|(?:'.*?')\).*%}""") 40 dot_re = re.compile('\S') 41 def blank(src): 42 return dot_re.sub('p', src) 43 44 def templateize(src): 45 o = [] 46 going = 1 47 while going: 48 start = src.find('{') 49 if start >= 0 and src[start+1] in ('{', '%'): 50 o.append(blank(src[:start])) 51 end = src.find(src[start+1] == '{' and '}' or '%', start) 52 if end >= 0: 53 o.append(src[start:end+2]) 54 src = src[end+2:] 55 else: 56 o.append(blank(src[start:])) 57 going = 0 58 else: 59 o.append(blank(src)) 60 going = 0 61 return ''.join(o) 43 62 44 63 pofile = os.path.join(basedir, '%s.po' % domain) … … 54 73 if file.endswith('.html'): 55 74 src = open(os.path.join(dirpath, file), "rb").read() 56 lst = [] 57 for match in tpl_i18n_re.findall(src): 58 lst.append(match) 59 for match in tpl_value_re.findall(src): 60 lst.append(match) 61 for match in tpl_tag_re.findall(src): 62 lst.append(match) 63 open(os.path.join(dirpath, '%s.py' % file), "wb").write('\n'.join(lst)) 75 open(os.path.join(dirpath, '%s.py' % file), "wb").write(templateize(src)) 64 76 thefile = '%s.py' % file 65 77 if verbose: sys.stdout.write('processing file %s in %s\n' % (file, dirpath)) … … 67 79 os.path.exists(potfile) and '--omit-header' or '', domain, os.path.join(dirpath, thefile)) 68 80 msgs = os.popen(cmd, 'r').read() 81 if thefile != file: 82 old = '#: '+os.path.join(dirpath, thefile)[2:] 83 new = '#: '+os.path.join(dirpath, file)[2:] 84 msgs = msgs.replace(old, new) 69 85 if msgs: 70 86 open(potfile, 'ab').write(msgs) django/branches/i18n/django/conf/locale/de/LC_MESSAGES/django.po
r798 r801 9 9 "Project-Id-Version: Django 1.0\n" 10 10 "Report-Msgid-Bugs-To: \n" 11 "POT-Creation-Date: 2005-10-08 00: 07+0200\n"11 "POT-Creation-Date: 2005-10-08 00:51+0200\n" 12 12 "PO-Revision-Date: 2005-10-08 00:03+0200\n" 13 13 "Last-Translator: Georg Bauer <gb@bofh.ms>\n" … … 16 16 "Content-Transfer-Encoding: 8bit\n" 17 17 18 #: conf/admin_templates/admin_object_history.html .py:119 #: conf/admin_templates/base.html .py:420 #: conf/admin_templates/registration/password_change_done.html .py:121 #: conf/admin_templates/registration/password_reset_form.html .py:122 #: conf/admin_templates/registration/logged_out.html .py:123 #: conf/admin_templates/registration/password_reset_done.html .py:124 #: conf/admin_templates/registration/password_change_form.html .py:118 #: conf/admin_templates/admin_object_history.html:4 19 #: conf/admin_templates/base.html:28 20 #: conf/admin_templates/registration/password_change_done.html:3 21 #: conf/admin_templates/registration/password_reset_form.html:3 22 #: conf/admin_templates/registration/logged_out.html:3 23 #: conf/admin_templates/registration/password_reset_done.html:3 24 #: conf/admin_templates/registration/password_change_form.html:3 25 25 msgid "Home" 26 26 msgstr "Start" 27 27 28 #: conf/admin_templates/admin_object_history.html .py:228 #: conf/admin_templates/admin_object_history.html:4 29 29 msgid "History" 30 30 msgstr "Geschichte" 31 31 32 #: conf/admin_templates/admin_object_history.html .py:332 #: conf/admin_templates/admin_object_history.html:17 33 33 msgid "Date/time" 34 34 msgstr "Datum/Zeit" 35 35 36 #: conf/admin_templates/admin_object_history.html .py:436 #: conf/admin_templates/admin_object_history.html:18 37 37 msgid "User" 38 38 msgstr "Benutzer" 39 39 40 #: conf/admin_templates/admin_object_history.html .py:540 #: conf/admin_templates/admin_object_history.html:19 41 41 msgid "Action" 42 42 msgstr "Aktion" 43 43 44 #: conf/admin_templates/admin_object_history.html .py:644 #: conf/admin_templates/admin_object_history.html:35 45 45 msgid "" 46 46 "This object doesn't have a change history. It probably wasn't added via this " … … 50 50 "�iese Verwaltungsseiten angelegt." 51 51 52 #: conf/admin_templates/changelist_generic.html .py:153 #: conf/admin_templates/index.html .py:152 #: conf/admin_templates/changelist_generic.html:8 53 #: conf/admin_templates/index.html:26 54 54 msgid "Add" 55 55 msgstr "Zuf� 56 #: conf/admin_templates/changelist_generic.html .py:256 #: conf/admin_templates/changelist_generic.html:26 57 57 msgid "Click to change" 58 58 msgstr "Zur �derung klicken" 59 59 60 #: conf/admin_templates/base_site.html .py:160 #: conf/admin_templates/base_site.html:3 61 61 msgid "Django site admin" 62 62 msgstr "Django Systemverwaltung" 63 63 64 #: conf/admin_templates/base_site.html .py:264 #: conf/admin_templates/base_site.html:6 65 65 msgid "Django administration" 66 66 msgstr "Django Verwaltung" 67 67 68 #: conf/admin_templates/index.html .py:268 #: conf/admin_templates/index.html:32 69 69 msgid "Change" 70 70 msgstr "�dern" 71 71 72 #: conf/admin_templates/index.html .py:372 #: conf/admin_templates/index.html:42 73 73 msgid "You don't have permission to edit anything." 74 74 msgstr "Sie haben keine Berechtigung irgendwas zu �ern." 75 75 76 #: conf/admin_templates/index.html .py:476 #: conf/admin_templates/index.html:50 77 77 msgid "Recent Actions" 78 78 msgstr "K�he Aktionen" 79 79 80 #: conf/admin_templates/index.html .py:580 #: conf/admin_templates/index.html:51 81 81 msgid "My Actions" 82 82 msgstr "Meine Aktionen" 83 83 84 #: conf/admin_templates/index.html .py:684 #: conf/admin_templates/index.html:55 85 85 msgid "None available" 86 86 msgstr "Keine vorhanden" 87 87 88 #: conf/admin_templates/500.html .py:188 #: conf/admin_templates/500.html:5 89 89 msgid "Server error (500)" 90 90 msgstr "Serverfehler (500)" 91 91 92 #: conf/admin_templates/500.html .py:292 #: conf/admin_templates/500.html:8 93 93 msgid "Server Error <em>(500)</em>" 94 94 msgstr "Serverfehler <em>(500)</em>" 95 95 96 #: conf/admin_templates/500.html .py:396 #: conf/admin_templates/500.html:9 97 97 msgid "" 98 98 "There's been an error. It's been reported to the site administrators via e-" … … 103 103 "Verst�nis." 104 104 105 #: conf/admin_templates/404.html .py:1 conf/admin_templates/404.html.py:2105 #: conf/admin_templates/404.html:3 conf/admin_templates/404.html.py:7 106 106 msgid "Page not found" 107 107 msgstr "Seite nicht gefunden" 108 108 109 #: conf/admin_templates/404.html .py:3109 #: conf/admin_templates/404.html:9 110 110 msgid "We're sorry, but the requested page could not be found." 111 111 msgstr "" 112 112 "Es tut uns leid, aber die angeforderte Seite kann nicht gefunden werden." 113 113 114 #: conf/admin_templates/delete_confirmation_generic.html .py:1114 #: conf/admin_templates/delete_confirmation_generic.html:6 115 115 #, python-format 116 116 msgid "" … … 123 123 "folgenden abh�igen Daten zu l�en:" 124 124 125 #: conf/admin_templates/delete_confirmation_generic.html .py:2125 #: conf/admin_templates/delete_confirmation_generic.html:13 126 126 #, python-format 127 127 msgid "" … … 132 132 "werden zus�lich die folgenden abh�igen Daten mit gel�t:" 133 133 134 #: conf/admin_templates/delete_confirmation_generic.html .py:3134 #: conf/admin_templates/delete_confirmation_generic.html:17 135 135 msgid "Yes, I'm sure" 136 136 msgstr "Ja, ich bin sicher" 137 137 138 #: conf/admin_templates/login.html .py:1138 #: conf/admin_templates/login.html:14 139 139 msgid "Username:" 140 140 msgstr "Benutzername:" 141 141 142 #: conf/admin_templates/login.html .py:2142 #: conf/admin_templates/login.html:17 143 143 msgid "Password:" 144 144 msgstr "Passwort:" 145 145 146 #: conf/admin_templates/login.html .py:3146 #: conf/admin_templates/login.html:19 147 147 msgid "Have you <a href=\"/password_reset/\">forgotten your password</a>?" 148 148 msgstr "Haben Sie <a href=\"/password_reset/\">ihr Passwort vergessen</a>?" 149 149 150 #: conf/admin_templates/login.html .py:4150 #: conf/admin_templates/login.html:23 151 151 msgid "Log in" 152 152 msgstr "Anmelden" 153 153 154 #: conf/admin_templates/base.html .py:1154 #: conf/admin_templates/base.html:22 155 155 msgid "Welcome," 156 156 msgstr "Willkommen," 157 157 158 #: conf/admin_templates/base.html .py:2 conf/admin_templates/base.html.py:5158 #: conf/admin_templates/base.html:22 159 159 msgid "Change password" 160 160 msgstr "Passwort �ern" 161 161 162 #: conf/admin_templates/base.html .py:3 conf/admin_templates/base.html.py:5162 #: conf/admin_templates/base.html:22 163 163 msgid "Log out" 164 164 msgstr "Abmelden" 165 165 166 #: conf/admin_templates/registration/password_change_done.html.py:2 167 #: conf/admin_templates/registration/password_change_done.html.py:6 168 #: conf/admin_templates/registration/password_change_form.html.py:2 169 #: conf/admin_templates/registration/password_change_form.html.py:3 170 #: conf/admin_templates/registration/password_change_form.html.py:4 171 #: conf/admin_templates/registration/password_change_form.html.py:10 166 #: conf/admin_templates/registration/password_change_done.html:3 167 #: conf/admin_templates/registration/password_change_form.html:3 168 #: conf/admin_templates/registration/password_change_form.html:5 169 #: conf/admin_templates/registration/password_change_form.html:9 172 170 msgid "Password change" 173 171 msgstr "Kennwort �ern" 174 172 175 #: conf/admin_templates/registration/password_change_done.html .py:3176 #: conf/admin_templates/registration/password_change_done.html .py:4173 #: conf/admin_templates/registration/password_change_done.html:5 174 #: conf/admin_templates/registration/password_change_done.html:9 177 175 msgid "Password change successful" 178 176 msgstr "Erfolgreiche Kennwort�erung" 179 177 180 #: conf/admin_templates/registration/password_change_done.html .py:5178 #: conf/admin_templates/registration/password_change_done.html:11 181 179 msgid "Your password was changed." 182 180 msgstr "Ihr Kennwort wurde ge�ert." 183 181 184 #: conf/admin_templates/registration/password_reset_form.html.py:2 185 #: conf/admin_templates/registration/password_reset_form.html.py:3 186 #: conf/admin_templates/registration/password_reset_form.html.py:4 187 #: conf/admin_templates/registration/password_reset_form.html.py:8 188 #: conf/admin_templates/registration/password_reset_form.html.py:9 189 #: conf/admin_templates/registration/password_reset_done.html.py:2 190 #: conf/admin_templates/registration/password_reset_done.html.py:6 182 #: conf/admin_templates/registration/password_reset_form.html:3 183 #: conf/admin_templates/registration/password_reset_form.html:5 184 #: conf/admin_templates/registration/password_reset_form.html:9 185 #: conf/admin_templates/registration/password_reset_done.html:3 191 186 msgid "Password reset" 192 187 msgstr "Kennwort zur�zen" 193 188 194 #: conf/admin_templates/registration/password_reset_form.html .py:5189 #: conf/admin_templates/registration/password_reset_form.html:11 195 190 msgid "" 196 191 "Forgotten your password? Enter your e-mail address below, and we'll reset " … … 201 196 "Sie raus." 202 197 203 #: conf/admin_templates/registration/password_reset_form.html .py:6198 #: conf/admin_templates/registration/password_reset_form.html:15 204 199 msgid "E-mail address:" 205 200 msgstr "eMail-Adresse:" 206 201 207 #: conf/admin_templates/registration/password_reset_form.html .py:7202 #: conf/admin_templates/registration/password_reset_form.html:15 208 203 msgid "Reset my password" 209 204 msgstr "Mein Kennwort zur�zen" 210 205 211 #: conf/admin_templates/registration/logged_out.html .py:2206 #: conf/admin_templates/registration/logged_out.html:7 212 207 msgid "Thanks for spending some quality time with the Web site today." 213 208 msgstr "Danke, dass Sie eine Weile bei uns waren." 214 209 215 #: conf/admin_templates/registration/logged_out.html .py:3210 #: conf/admin_templates/registration/logged_out.html:9 216 211 msgid "Log in again" 217 212 msgstr "Neu anmelden" 218 213 219 #: conf/admin_templates/registration/password_reset_done.html .py:3220 #: conf/admin_templates/registration/password_reset_done.html .py:4214 #: conf/admin_templates/registration/password_reset_done.html:5 215 #: conf/admin_templates/registration/password_reset_done.html:9 221 216 msgid "Password reset successful" 222 217 msgstr "Erfolgreich Kennwort zur�etzt" 223 218 224 #: conf/admin_templates/registration/password_reset_done.html .py:5219 #: conf/admin_templates/registration/password_reset_done.html:11 225 220 msgid "" 226 221 "We've e-mailed a new password to the e-mail address you submitted. You " … … 230 225 "Sie uns gegeben haben. Es sollte in K�nkommen." 231 226 232 #: conf/admin_templates/registration/password_change_form.html .py:5227 #: conf/admin_templates/registration/password_change_form.html:11 233 228 msgid "" 234 229 "Please enter your old password, for security's sake, and then enter your new " … … 239 234 "neue Kennwort ein." 240 235 241 #: conf/admin_templates/registration/password_change_form.html .py:6236 #: conf/admin_templates/registration/password_change_form.html:16 242 237 msgid "Old password:" 243 238 msgstr "altes Kennwort:" 244 239 245 #: conf/admin_templates/registration/password_change_form.html .py:7240 #: conf/admin_templates/registration/password_change_form.html:18 246 241 msgid "New password:" 247 242 msgstr "neues Kennwort:" 248 243 249 #: conf/admin_templates/registration/password_change_form.html .py:8244 #: conf/admin_templates/registration/password_change_form.html:20 250 245 msgid "Confirm password:" 251 246 msgstr "Kennwortwiederholung:" 252 247 253 #: conf/admin_templates/registration/password_change_form.html .py:9248 #: conf/admin_templates/registration/password_change_form.html:22 254 249 msgid "Change my password" 255 250 msgstr "Mein Kennwort �ern" 256 251 257 #: conf/admin_templates/registration/password_reset_email.html .py:1252 #: conf/admin_templates/registration/password_reset_email.html:1 258 253 msgid "You're receiving this e-mail because you requested a password reset" 259 254 msgstr "Sie erhalten diese Mail, weil Sie ein neues Kennwort" 260 255 261 #: conf/admin_templates/registration/password_reset_email.html .py:2256 #: conf/admin_templates/registration/password_reset_email.html:2 262 257 #, python-format 263 258 msgid "for your user account at %(site_name)s" 264 259 msgstr "f�en Benutzer bei %(site_name)s angefordert haben." 265 260 266 #: conf/admin_templates/registration/password_reset_email.html .py:3261 #: conf/admin_templates/registration/password_reset_email.html:4 267 262 #, python-format 268 263 msgid "Your new password is: %(new_password)s" 269 264 msgstr "Ihr neues Kennwort ist: %(new_password)s" 270 265 271 #: conf/admin_templates/registration/password_reset_email.html .py:4266 #: conf/admin_templates/registration/password_reset_email.html:6 272 267 msgid "Feel free to change this password by going to this page:" 273 268 msgstr "Sie k�n das Kennwort auf folgender Seite �ern:" 274 269 275 #: conf/admin_templates/registration/password_reset_email.html .py:5270 #: conf/admin_templates/registration/password_reset_email.html:10 276 271 msgid "Your username, in case you've forgotten:" 277 272 msgstr "Ihr Benutzername, falls Sie ihn vergessen haben:" 278 273 279 #: conf/admin_templates/registration/password_reset_email.html .py:6274 #: conf/admin_templates/registration/password_reset_email.html:12 280 275 msgid "Thanks for using our site!" 281 276 msgstr "Vielen Dank, das Sie unsere Seiten benutzen!" 282 277 283 #: conf/admin_templates/registration/password_reset_email.html .py:7278 #: conf/admin_templates/registration/password_reset_email.html:14 284 279 #, python-format 285 280 msgid "The %(site_name)s team"
