Changeset a4e4799 in OpenWorkouts-current


Ignore:
Timestamp:
Feb 26, 2019, 11:18:19 AM (5 years ago)
Author:
Borja Lopez <borja@…>
Branches:
current, feature/docs, master
Children:
1c54633
Parents:
fd6da93
Message:

(#56) Added i18n helper scripts and spanish (es) translations.
Done lots of translated strings fixes in templates.
Removed .mo and .pot files from the git ignore list.

Files:
5 added
8 edited

Legend:

Unmodified
Added
Removed
  • .gitignore

    rfd6da93 ra4e4799  
    2525
    2626# Translations
    27 *.mo
    28 *.pot
     27#*.mo
     28#*.pot
    2929
    3030# Environments
  • ow/templates/403.pt

    rfd6da93 ra4e4799  
    2121    <div id="userinfo" i18n:translate="">
    2222      We are sorry, but you do not have permissions to view these contents.
    23       Please <a href="" tal:attributes="href url">
    24         go back to your dashboard</a> and access the contents you have
    25         available from there.
     23      Please <a i18n:name="goback" i18n:translate="" href="" tal:attributes="href url">
     24      go back to your dashboard</a> and access the contents you have
     25      available from there.
    2626    </div>
    2727  </metal:content>
  • ow/templates/404.pt

    rfd6da93 ra4e4799  
    2121    <div id="userinfo" i18n:translate="">
    2222      We are sorry, but the contents you were looking for can not be found.
    23       Please <a href="" tal:attributes="href url">
     23      Please <a i18n:name="goback" i18n:translate="" href="" tal:attributes="href url">
    2424        go back to your dashboard</a> and, if the problem persist, let us know!
    2525    </div>
  • ow/templates/500.pt

    rfd6da93 ra4e4799  
    2121    <div id="userinfo" i18n:translate="">
    2222      Our support stuff has been notified already with all details about
    23       the problem, please
    24       <a href="" tal:attributes="href url">
     23      the problem. Please
     24      <a href="" i18n:name="goback" i18n:translate="" tal:attributes="href url">
    2525        go back to your dashboard</a> and be patient while we fix it.
    2626    </div>
  • ow/templates/add_manual_workout.pt

    rfd6da93 ra4e4799  
    1313
    1414  <metal:title metal:fill-slot="title" metal:define-slot="head-title">
    15     <tal:t i18n:translate="">Add workout Manually</tal:t>
     15    <tal:t i18n:translate="">Add workout manually</tal:t>
    1616  </metal:title>
    1717
  • ow/templates/base.pt

    rfd6da93 ra4e4799  
    6565              <li
    6666                  tal:attributes="class 'is-active' if 'dashboard' in renderer_name else ''">
    67                 <a class="icon-dashboard" href="" i18n:translate=""
     67                <a class="icon-dashboard" href=""
    6868                   tal:attributes="href request.resource_url(request.root)">
    69                   <span>Dashboard</span></a>
     69                  <span i18n:translate="">Dashboard</span></a>
    7070              </li>
    7171              <li
    7272                  tal:attributes="class 'is-active' if 'profile' in renderer_name else ''">
    73                 <a class="icon-profile" href="" i18n:translate=""
     73                <a class="icon-profile" href=""
    7474                   tal:attributes="href request.resource_url(request.root, current_user, 'profile')">
    75                   <span>My profile</span></a>
     75                  <span i18n:translate="">My profile</span></a>
    7676              </li>
    7777              <li class="add-workout">
     
    9191              </li>
    9292              <li>
    93                 <a class="icon-logout" href="" i18n:translate=""
     93                <a class="icon-logout" href=""
    9494                   tal:attributes="href request.resource_url(request.root, 'logout')">
    95                   <span>Log out</span>
     95                  <span i18n:translate="">Log out</span>
    9696                </a>
    9797              </li>
  • ow/templates/dashboard.pt

    rfd6da93 ra4e4799  
    121121              <span class="week-stats-distance">
    122122                <tal:d tal:content="round(totals['distance'])"></tal:d>
    123                 <tal:t i18n:translate="">kms</tal:t> |
     123                <tal:t i18n:translate="">km</tal:t> |
    124124              </span>
    125125              <span class="week-stats-time">
     
    152152                            <li>
    153153                              <span i18n:translate="">Distance:</span>
    154                               <span> <tal:kms tal:content="round(stats['distance'])"></tal:kms> km</span>
     154                              <span> <tal:km tal:content="round(stats['distance'])"></tal:km> km</span>
    155155                            </li>
    156156                            <li>
  • ow/templates/update_workout_from_file.pt

    rfd6da93 ra4e4799  
    2929      <h2 tal:content="context.title"></h2>
    3030
    31       <div tal:condition="context.has_tracking_file"
    32            i18n:translate="">
     31      <div tal:condition="context.has_tracking_file">
    3332
    34         <h3>Existing
     33        <h3 i18n:translate="">
     34          Existing
    3535          <tal:filetype i18n:name="filetype"
    3636                        tal:content="context.tracking_filetype"></tal:filetype>
    37           tracking file data</h3>
     37          tracking file data
     38        </h3>
    3839
    3940        <ul class="workout-activity-summary" id=""
Note: See TracChangeset for help on using the changeset viewer.