Changeset 737eb6c in OpenWorkouts-current
- Timestamp:
- Feb 26, 2019, 5:13:49 PM (5 years ago)
- Branches:
- current, feature/docs, master
- Children:
- 723588b
- Parents:
- 1c54633
- Location:
- ow
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
ow/locale/OpenWorkouts.pot
r1c54633 r737eb6c 7 7 msgstr "" 8 8 "Project-Id-Version: PACKAGE 1.0\n" 9 "POT-Creation-Date: 2019-02-2 5 13:14+0100\n"9 "POT-Creation-Date: 2019-02-26 17:08+0100\n" 10 10 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 11 11 "Last-Translator: FULL NAME <EMAIL@ADDRESS\n" … … 33 33 msgstr "" 34 34 35 #: ./ow/utilities.py:309 36 msgid "English" 37 msgstr "" 38 39 #: ./ow/utilities.py:310 40 msgid "Spanish" 41 msgstr "" 42 35 43 #: ./ow/mail.py:42 ./ow/templates/mail_verify_account_txt.pt:5 36 44 msgid "Welcome to OpenWorkouts" … … 41 49 msgstr "" 42 50 43 #: ./ow/schemas/user.py:1 251 #: ./ow/schemas/user.py:13 44 52 msgid "The given password does not match the existing one " 45 53 msgstr "" 46 54 47 #: ./ow/schemas/user.py:2 455 #: ./ow/schemas/user.py:25 48 56 msgid "Another user is already using the nickname %(name)s" 49 57 msgstr "" 50 58 51 #: ./ow/schemas/user.py:3 659 #: ./ow/schemas/user.py:37 52 60 msgid "Another user is already registered with the email %(email)s" 53 61 msgstr "" … … 147 155 msgstr "" 148 156 157 #: ./ow/templates/add_manual_workout.pt:187 ./ow/templates/add_workout.pt:93 158 #: ./ow/templates/edit_profile.pt:255 159 #: ./ow/templates/update_workout_from_file.pt:139 160 msgid "Save" 161 msgstr "" 162 149 163 #: ./ow/templates/add_user.pt:11 ./ow/templates/add_user.pt:15 150 164 msgid "Add user" … … 214 228 215 229 #: ./ow/templates/change_password.pt:11 ./ow/templates/change_password.pt:15 216 #: ./ow/templates/change_password.pt:24 230 #: ./ow/templates/change_password.pt:24 ./ow/templates/change_password.pt:109 217 231 msgid "Change password" 218 232 msgstr "" … … 301 315 #: ./ow/templates/update_workout_from_file.pt:48 302 316 msgid "Duration:" 317 msgstr "" 318 319 #: ./ow/templates/delete_workout.pt:55 320 msgid "Are you sure you want to delete this workout?" 321 msgstr "" 322 323 #: ./ow/templates/delete_workout.pt:58 324 msgid "Yes, delete" 303 325 msgstr "" 304 326 … … 322 344 msgstr "" 323 345 324 #: ./ow/templates/edit_profile.pt:4 9346 #: ./ow/templates/edit_profile.pt:48 325 347 msgid "Current picture:" 326 348 msgstr "" 327 349 328 #: ./ow/templates/edit_profile.pt:5 7350 #: ./ow/templates/edit_profile.pt:56 329 351 msgid "Picture (jpg, jpeg, png or gif):" 330 352 msgstr "" 331 353 332 #: ./ow/templates/edit_profile.pt:6 5354 #: ./ow/templates/edit_profile.pt:64 333 355 msgid "First name:" 334 356 msgstr "" 335 357 336 #: ./ow/templates/edit_profile.pt: 70358 #: ./ow/templates/edit_profile.pt:69 337 359 msgid "Last name:" 338 360 msgstr "" 339 361 340 #: ./ow/templates/edit_profile.pt:7 5./ow/templates/profile.pt:165362 #: ./ow/templates/edit_profile.pt:74 ./ow/templates/profile.pt:165 341 363 msgid "Gender:" 342 364 msgstr "" 343 365 344 #: ./ow/templates/edit_profile.pt:8 3./ow/templates/profile.pt:169366 #: ./ow/templates/edit_profile.pt:82 ./ow/templates/profile.pt:169 345 367 msgid "Birth date:" 346 368 msgstr "" 347 369 348 #: ./ow/templates/edit_profile.pt:8 8370 #: ./ow/templates/edit_profile.pt:87 349 371 msgid "Height (meters):" 350 372 msgstr "" 351 373 352 #: ./ow/templates/edit_profile.pt:9 3374 #: ./ow/templates/edit_profile.pt:92 353 375 msgid "Weight (kg):" 354 376 msgstr "" 355 377 356 #: ./ow/templates/edit_profile.pt:9 9378 #: ./ow/templates/edit_profile.pt:98 357 379 msgid "Bio/About you:" 358 380 msgstr "" … … 362 384 msgstr "" 363 385 364 #: ./ow/templates/edit_profile.pt:10 5386 #: ./ow/templates/edit_profile.pt:106 365 387 msgid "All dates and times will be formatted for this timezone" 388 msgstr "" 389 390 #: ./ow/templates/edit_profile.pt:114 391 msgid "Language:" 392 msgstr "" 393 394 #: ./ow/templates/edit_profile.pt:116 395 msgid "All texts in the user interface will appear in this language" 366 396 msgstr "" 367 397 … … 384 414 #: ./ow/templates/login.pt:40 385 415 msgid "Your password..." 416 msgstr "" 417 418 #: ./ow/templates/login.pt:44 ./ow/templates/verify.pt:21 419 msgid "Login" 386 420 msgstr "" 387 421 … … 490 524 msgstr "" 491 525 526 #: ./ow/templates/signup.pt:64 527 msgid "Sign up!" 528 msgstr "" 529 492 530 #: ./ow/templates/update_workout_from_file.pt:11 493 531 #: ./ow/templates/update_workout_from_file.pt:16 … … 590 628 msgstr "" 591 629 592 #: ./ow/templates/verify.pt:21593 msgid "Login"594 msgstr ""595 596 630 #: ./ow/templates/mail_verify_account_html.pt:17 597 631 msgid "Welcome" … … 616 650 msgstr "" 617 651 618 #: ./ow/views/user.py:5 5652 #: ./ow/views/user.py:59 619 653 msgid "User has been verified already" 620 654 msgstr "" 621 655 622 #: ./ow/views/user.py: 56656 #: ./ow/views/user.py:60 623 657 msgid "Verification link sent, please check your inbox" 624 658 msgstr "" 625 659 626 #: ./ow/views/user.py: 57660 #: ./ow/views/user.py:61 627 661 msgid "We already sent you the verification link more than three times" 628 662 msgstr "" 629 663 630 #: ./ow/views/user.py: 82664 #: ./ow/views/user.py:96 631 665 msgid "Wrong password" 632 666 msgstr "" 633 667 634 #: ./ow/views/user.py: 84668 #: ./ow/views/user.py:98 635 669 msgid "You have to verify your account first" 636 670 msgstr "" 637 671 638 #: ./ow/views/user.py: 89672 #: ./ow/views/user.py:103 639 673 msgid "Wrong email address" 640 674 msgstr "" -
ow/locale/es/LC_MESSAGES/OpenWorkouts.po
r1c54633 r737eb6c 7 7 msgstr "" 8 8 "Project-Id-Version: PACKAGE 1.0\n" 9 "POT-Creation-Date: 2019-02-2 5 13:14+0100\n"10 "PO-Revision-Date: 2019-02-2 5 13:24+0100\n"9 "POT-Creation-Date: 2019-02-26 17:08+0100\n" 10 "PO-Revision-Date: 2019-02-26 17:09+0100\n" 11 11 "Last-Translator: Wu <info@openworkouts.org>\n" 12 12 "Language-Team: Spanish\n" … … 34 34 msgstr "Noche" 35 35 36 #: ow/utilities.py:309 37 msgid "English" 38 msgstr "Inglés" 39 40 #: ow/utilities.py:310 41 msgid "Spanish" 42 msgstr "Español" 43 36 44 #: ow/mail.py:42 ow/templates/mail_verify_account_txt.pt:5 37 45 msgid "Welcome to OpenWorkouts" … … 42 50 msgstr "Por favor, adjunta un fichero válido." 43 51 44 #: ow/schemas/user.py:1 252 #: ow/schemas/user.py:13 45 53 msgid "The given password does not match the existing one " 46 54 msgstr "La clave no coincide" 47 55 48 #: ow/schemas/user.py:2 456 #: ow/schemas/user.py:25 49 57 msgid "Another user is already using the nickname %(name)s" 50 58 msgstr "Otro usuario está usando el apodo %(name)s" 51 59 52 #: ow/schemas/user.py:3 660 #: ow/schemas/user.py:37 53 61 msgid "Another user is already registered with the email %(email)s" 54 62 msgstr "Otro usuario ya está registrado con el email %(email)s" … … 131 139 #: ow/templates/add_manual_workout.pt:58 132 140 msgid "Start date (dd/mm/yyyy)" 133 msgstr "Fecha de inicio(dd/mm/yyyy)"141 msgstr "Fecha (dd/mm/yyyy)" 134 142 135 143 #: ow/templates/add_manual_workout.pt:63 136 144 msgid "Start time (HH:MM)" 137 msgstr "Hora de inicio(HH:MM)"145 msgstr "Hora (HH:MM)" 138 146 139 147 #: ow/templates/add_manual_workout.pt:71 … … 152 160 msgid "Notes:" 153 161 msgstr "Notas:" 162 163 #: ow/templates/add_manual_workout.pt:187 ow/templates/add_workout.pt:93 164 #: ow/templates/edit_profile.pt:255 165 #: ow/templates/update_workout_from_file.pt:139 166 msgid "Save" 167 msgstr "Guardar" 154 168 155 169 #: ow/templates/add_user.pt:11 ow/templates/add_user.pt:15 … … 185 199 #: ow/templates/add_workout.pt:23 186 200 msgid "Upload workout file" 187 msgstr "Subir fichero del entreno"201 msgstr "Subir fichero (gpx, fit)" 188 202 189 203 #: ow/templates/add_workout.pt:34 … … 220 234 221 235 #: ow/templates/change_password.pt:11 ow/templates/change_password.pt:15 222 #: ow/templates/change_password.pt:24 236 #: ow/templates/change_password.pt:24 ow/templates/change_password.pt:109 223 237 msgid "Change password" 224 238 msgstr "Cambiar clave de acceso" … … 308 322 msgid "Duration:" 309 323 msgstr "Duración:" 324 325 #: ow/templates/delete_workout.pt:55 326 msgid "Are you sure you want to delete this workout?" 327 msgstr "Quieres eliminar este entreno?" 328 329 #: ow/templates/delete_workout.pt:58 330 msgid "Yes, delete" 331 msgstr "Sí, eliminar" 310 332 311 333 #: ow/templates/edit_manual_workout.pt:16 … … 328 350 msgstr "Apodo:" 329 351 330 #: ow/templates/edit_profile.pt:4 9352 #: ow/templates/edit_profile.pt:48 331 353 msgid "Current picture:" 332 354 msgstr "Foto actual:" 333 355 334 #: ow/templates/edit_profile.pt:5 7356 #: ow/templates/edit_profile.pt:56 335 357 msgid "Picture (jpg, jpeg, png or gif):" 336 358 msgstr "Foto (jpg, jpeg, png o gif):" 337 359 338 #: ow/templates/edit_profile.pt:6 5360 #: ow/templates/edit_profile.pt:64 339 361 msgid "First name:" 340 362 msgstr "Nombre:" 341 363 342 #: ow/templates/edit_profile.pt: 70364 #: ow/templates/edit_profile.pt:69 343 365 msgid "Last name:" 344 366 msgstr "Apellidos:" 345 367 346 #: ow/templates/edit_profile.pt:7 5ow/templates/profile.pt:165368 #: ow/templates/edit_profile.pt:74 ow/templates/profile.pt:165 347 369 msgid "Gender:" 348 370 msgstr "Género:" 349 371 350 #: ow/templates/edit_profile.pt:8 3ow/templates/profile.pt:169372 #: ow/templates/edit_profile.pt:82 ow/templates/profile.pt:169 351 373 msgid "Birth date:" 352 374 msgstr "Fecha de nacimiento:" 353 375 354 #: ow/templates/edit_profile.pt:8 8376 #: ow/templates/edit_profile.pt:87 355 377 msgid "Height (meters):" 356 378 msgstr "Altura (metros):" 357 379 358 #: ow/templates/edit_profile.pt:9 3380 #: ow/templates/edit_profile.pt:92 359 381 msgid "Weight (kg):" 360 382 msgstr "Peso (kg):" 361 383 362 #: ow/templates/edit_profile.pt:9 9384 #: ow/templates/edit_profile.pt:98 363 385 msgid "Bio/About you:" 364 386 msgstr "Bio/Acerca de ti:" … … 368 390 msgstr "Zona horaria:" 369 391 370 #: ow/templates/edit_profile.pt:10 5392 #: ow/templates/edit_profile.pt:106 371 393 msgid "All dates and times will be formatted for this timezone" 372 394 msgstr "Todas las fechas serán formateadas para esta zona horaria" 395 396 #: ow/templates/edit_profile.pt:114 397 msgid "Language:" 398 msgstr "Idioma:" 399 400 #: ow/templates/edit_profile.pt:116 401 msgid "All texts in the user interface will appear in this language" 402 msgstr "Todos los textos de la interfaz aparecerán en este idioma" 373 403 374 404 #: ow/templates/login.pt:27 … … 391 421 msgid "Your password..." 392 422 msgstr "Tu clave..." 423 424 #: ow/templates/login.pt:44 ow/templates/verify.pt:21 425 msgid "Login" 426 msgstr "Inicia sesión" 393 427 394 428 #: ow/templates/login.pt:46 … … 462 496 #: ow/templates/signup.pt:22 463 497 msgid "We need a valid email address" 464 msgstr " Necesitamos una dirección de correo electrónico válida"498 msgstr "Tu dirección de correo electrónico" 465 499 466 500 #: ow/templates/signup.pt:30 … … 495 529 msgid "Confirm your password" 496 530 msgstr "Vuelve a escribir tu clave" 531 532 #: ow/templates/signup.pt:64 533 msgid "Sign up!" 534 msgstr "Registrarme!" 497 535 498 536 #: ow/templates/update_workout_from_file.pt:11 … … 607 645 "de verificación." 608 646 609 #: ow/templates/verify.pt:21610 msgid "Login"611 msgstr "Inicia sesión"612 613 647 #: ow/templates/mail_verify_account_html.pt:17 614 648 msgid "Welcome" … … 635 669 "y pegarlo en la barra de navegación de tu navegador web:" 636 670 637 #: ow/views/user.py:5 5671 #: ow/views/user.py:59 638 672 msgid "User has been verified already" 639 673 msgstr "La cuenta ya ha sido verificada" 640 674 641 #: ow/views/user.py: 56675 #: ow/views/user.py:60 642 676 msgid "Verification link sent, please check your inbox" 643 677 msgstr "" … … 646 680 "buzón de correo electrónico" 647 681 648 #: ow/views/user.py: 57682 #: ow/views/user.py:61 649 683 msgid "We already sent you the verification link more than three times" 650 684 msgstr "Ya te hemos enviado el enlace de verificación más de tres veces" 651 685 652 #: ow/views/user.py: 82686 #: ow/views/user.py:96 653 687 msgid "Wrong password" 654 688 msgstr "Clave incorrecta" 655 689 656 #: ow/views/user.py: 84690 #: ow/views/user.py:98 657 691 msgid "You have to verify your account first" 658 692 msgstr "Tienes que verificar tu cuenta primero" 659 693 660 #: ow/views/user.py: 89694 #: ow/views/user.py:103 661 695 msgid "Wrong email address" 662 696 msgstr "Dirección de correo electrónico incorrecta" -
ow/template_helpers.py
r1c54633 r737eb6c 1 1 from pyramid.events import subscriber, BeforeRender 2 from pyramid.i18n import TranslationStringFactory, get_localizer 2 3 3 4 from ow.utilities import timedelta_to_hms 5 6 _ = TranslationStringFactory('OpenWorkouts') 4 7 5 8 … … 7 10 def add_renderer_globals(event): # pragma: no cover 8 11 event['timedelta_to_hms'] = timedelta_to_hms 12 event['_'] = _ 13 event['get_localizer'] = get_localizer -
ow/templates/add_manual_workout.pt
r1c54633 r737eb6c 89 89 ${form.textarea('notes', rows=10, cols=50)} 90 90 </div> 91 </fieldset>91 </fieldset> 92 92 93 ${form.submit("submit", "Save", **{'class':"button button-normal"})} 93 <tal:with-localizer tal:define="localizer get_localizer(request)"> 94 ${form.submit("submit", localizer.translate(_('Save')), **{'class':"button button-normal"})} 95 </tal:with-localizer> 94 96 95 97 ${form.end()} -
ow/templates/add_workout.pt
r1c54633 r737eb6c 37 37 </p> 38 38 <p> 39 40 41 42 39 <label for="tracking_file" i18n:translate=""> 40 Workout file (gpx, fit)</label> 41 ${form.errorlist('tracking_file')} 42 ${form.file('tracking_file')} 43 43 </p> 44 44 </fieldset> 45 45 46 ${form.submit("submit", "Save", **{'class':"button button-normal"})} 46 <tal:with-localizer tal:define="localizer get_localizer(request)"> 47 ${form.submit("submit", localizer.translate(_('Save')), **{'class':"button button-normal"})} 48 </tal:with-localizer> 47 49 48 50 ${form.end()} -
ow/templates/change_password.pt
r1c54633 r737eb6c 52 52 53 53 <p> 54 ${form.submit("submit", "Change password", **{'class':"button button-normal"})} 55 54 <tal:with-localizer tal:define="localizer get_localizer(request)"> 55 ${form.submit("submit", localizer.translate(_('Change password')), **{'class':"button button-normal"})} 56 </tal:with-localizer> 56 57 </p> 57 58 ${form.end()} -
ow/templates/delete_workout.pt
r1c54633 r737eb6c 53 53 54 54 <div> 55 <p >Are you sure you want to delete this workout?</p>55 <p i18n:translate="">Are you sure you want to delete this workout?</p> 56 56 </div> 57 57 <div> 58 <input class="button button-normal" type="submit" name="submit" value="Yes, delete" /> 58 <input class="button button-normal" type="submit" name="submit" value="Yes, delete" 59 i18n:attributes="value" /> 59 60 </div> 60 61 </form> -
ow/templates/edit_profile.pt
r1c54633 r737eb6c 125 125 126 126 <p> 127 ${form.submit("submit", "Save", **{'class':"button button-normal"})} 127 <tal:with-localizer tal:define="localizer get_localizer(request)"> 128 ${form.submit("submit", localizer.translate(_('Save')), **{'class':"button button-normal"})} 129 </tal:with-localizer> 128 130 </p> 129 131 ${form.end()} -
ow/templates/login.pt
r1c54633 r737eb6c 42 42 </div> 43 43 <div> 44 <input class="button button-action" type="submit" name="submit" value="Login" >44 <input class="button button-action" type="submit" name="submit" value="Login" i18n:attributes="value"> 45 45 </div> 46 46 <a class="login-remember" href="#" i18n:translate=""> -
ow/templates/signup.pt
r1c54633 r737eb6c 62 62 </fieldset> 63 63 64 <input class="button button-action" type="submit" name="submit" value="Sign up!"> 64 <input class="button button-action" type="submit" name="submit" value="Sign up!" 65 i18n:attributes="value"> 65 66 66 67 </form> -
ow/templates/update_workout_from_file.pt
r1c54633 r737eb6c 21 21 <div id="update_workout_file" class="ow-forms"> 22 22 23 <a class="back" href="" tal:attributes="href request.resource_url( request.root)"23 <a class="back" href="" tal:attributes="href request.resource_url(context)" 24 24 i18n:translate="">Back</a> 25 25 … … 67 67 </fieldset> 68 68 69 ${form.submit("submit", "Save", **{'class':"button button-normal"})} 69 <tal:with-localizer tal:define="localizer get_localizer(request)"> 70 ${form.submit("submit", localizer.translate(_('Save')), **{'class':"button button-normal"})} 71 </tal:with-localizer> 72 70 73 ${form.end()} 71 74 </div> -
ow/tests/views/test_user.py
r1c54633 r737eb6c 68 68 user = john 69 69 request = DummyRequest() 70 request.registry.settings = { 71 'pyramid.default_locale_name': 'en' 72 } 70 73 request.root = root 71 74 request.method = 'POST'
Note: See TracChangeset
for help on using the changeset viewer.