Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

completed the gettext fields in templates

  • Loading branch information...
commit 10e12ffc8973c14fef6171a6dc3a66d643a25dcb 1 parent b1dd576
@n-kb n-kb authored
View
1  lib/core/build/conf/.gitignore
@@ -0,0 +1 @@
+datawrapper-conf.php
View
4 lib/core/build/conf/datawrapper-conf.php
@@ -9,9 +9,9 @@
'adapter' => 'mysql',
'connection' =>
array (
- 'dsn' => 'mysql:host=localhost;dbname=datawrapper',
+ 'dsn' => 'mysql:host=localhost;dbname=dw_new',
'user' => 'root',
- 'password' => '',
+ 'password' => 'root',
),
),
'default' => 'datawrapper',
View
0  locale/de_DE/LC_MESSAGES/messages.mo 100644 → 100755
File mode changed
View
0  locale/de_DE/LC_MESSAGES/messages.po 100644 → 100755
File mode changed
View
477 locale/messages.pot 100644 → 100755
@@ -1,8 +1,246 @@
-#: ../scripts/tmpl_cache/core.twig.php:119
+#: ../scripts/tmpl_cache/chart-describe.twig.php:122
+msgid "Check your data"
+msgstr ""
+
+#: ../scripts/tmpl_cache/chart-describe.twig.php:128
+msgid ""
+"Please check if the data format was recognized correctly. If not, please <a "
+"data-toggle='modal' href='/xhr/docs/describe'>help Datawrapper to understand "
+"your data</a>."
+msgstr ""
+
+#: ../scripts/tmpl_cache/chart-describe.twig.php:154
+msgid "Describe your data"
+msgstr ""
+
+#: ../scripts/tmpl_cache/chart-describe.twig.php:162
+msgid "Data series in rows"
+msgstr ""
+
+#: ../scripts/tmpl_cache/chart-describe.twig.php:166
+msgid "Data series in columns"
+msgstr ""
+
+#: ../scripts/tmpl_cache/chart-describe.twig.php:174
+msgid "First row as label"
+msgstr ""
+
+#: ../scripts/tmpl_cache/chart-describe.twig.php:178
+msgid "First column as label"
+msgstr ""
+
+#: ../scripts/tmpl_cache/chart-describe.twig.php:189
+msgid "Credit the source"
+msgstr ""
+
+#: ../scripts/tmpl_cache/chart-describe.twig.php:194
+msgid "Who published the data in the first place?"
+msgstr ""
+
+#: ../scripts/tmpl_cache/chart-describe.twig.php:201
+msgid "If possible, please provide a link the source data"
+msgstr ""
+
+#: ../scripts/tmpl_cache/chart-describe.twig.php:207
+msgid "Annotate data"
+msgstr ""
+
+#: ../scripts/tmpl_cache/chart-describe.twig.php:211
+msgid ""
+"To make the data more useful for your readers you can add details to "
+"individual data points or an entire series. This information will be "
+"displayed in the visualisations."
+msgstr ""
+
+#: ../scripts/tmpl_cache/chart-describe.twig.php:213
+msgid "Learn more"
+msgstr ""
+
+#: ../scripts/tmpl_cache/chart-describe.twig.php:217
+msgid "Annotate series"
+msgstr ""
+
+#: ../scripts/tmpl_cache/chart-describe.twig.php:219
+msgid "Annotate data point"
+msgstr ""
+
+#: ../scripts/tmpl_cache/chart-describe.twig.php:225 ../www/index.php:142
+msgid "Visualize"
+msgstr ""
+
+#: ../scripts/tmpl_cache/chart-describe.twig.php:229
+#: ../scripts/tmpl_cache/chart-visualize.twig.php:317
+msgid "Back"
+msgstr ""
+
+#: ../scripts/tmpl_cache/chart-publish.twig.php:58
+msgid ""
+"Congrats, you made it! Now is the time to check back everything. You can "
+"return to the previous steps."
+msgstr ""
+
+#: ../scripts/tmpl_cache/chart-publish.twig.php:63
+msgid "Link to this visualisation"
+msgstr ""
+
+#: ../scripts/tmpl_cache/chart-publish.twig.php:76
+msgid "Embed into your website"
+msgstr ""
+
+#: ../scripts/tmpl_cache/chart-publish.twig.php:80
+msgid "Just copy &amp; paste the following code into your website."
+msgstr ""
+
+#: ../scripts/tmpl_cache/chart-publish.twig.php:85
+msgid "Width"
+msgstr ""
+
+#: ../scripts/tmpl_cache/chart-publish.twig.php:89
+msgid "Height"
+msgstr ""
+
+#: ../scripts/tmpl_cache/chart-publish.twig.php:100
+msgid "Make it public"
+msgstr ""
+
+#: ../scripts/tmpl_cache/chart-publish.twig.php:104
+msgid ""
+"You can show some love to Datawrapper by agreeing to show your visualisation "
+"in our <a href='gallery.html'>public gallery</a>"
+msgstr ""
+
+#: ../scripts/tmpl_cache/chart-publish.twig.php:106
+msgid "This is absolutely optional."
+msgstr ""
+
+#: ../scripts/tmpl_cache/chart-publish.twig.php:111
+msgid "Yes, make it public!"
+msgstr ""
+
+#: ../scripts/tmpl_cache/chart-publish.twig.php:120
+msgid "Congrats, you created your first chart!"
+msgstr ""
+
+#: ../scripts/tmpl_cache/chart-publish.twig.php:125
+msgid ""
+"Now, to be able to embed the chart, we ask you to create an account. It's "
+"free and all you need is a valid email address. The chart you just created "
+"will be transfered to your new account."
+msgstr ""
+
+#: ../scripts/tmpl_cache/chart-publish.twig.php:130
+#: ../scripts/tmpl_cache/home-login.twig.php:57
+#: ../scripts/tmpl_cache/home-login.twig.php:74
+#: ../scripts/tmpl_cache/login.twig.php:95
+msgid "Sign Up"
+msgstr ""
+
+#: ../scripts/tmpl_cache/chart-publish.twig.php:152
+msgid "Congrats, you created a chart!"
+msgstr ""
+
+#: ../scripts/tmpl_cache/chart-publish.twig.php:157
+msgid "The chart is accessible under"
+msgstr ""
+
+#: ../scripts/tmpl_cache/chart-publish.twig.php:171
+msgid "or via your <a href='/mycharts'>My Charts</a> page."
+msgstr ""
+
+#: ../scripts/tmpl_cache/chart-publish.twig.php:176
+msgid ""
+"Now, to be able to publish and embed this chart into other websites, you "
+"need to activate the email address you entered during sign up process."
+msgstr ""
+
+#: ../scripts/tmpl_cache/chart-publish.twig.php:181
+msgid ""
+"If you did not get any email within 5 minutes, here's the trouble shooting "
+"guide:"
+msgstr ""
+
+#: ../scripts/tmpl_cache/chart-publish.twig.php:186
+msgid "At first, don't worry. Everything you created will wait patiently"
+msgstr ""
+
+#: ../scripts/tmpl_cache/chart-publish.twig.php:190
+msgid ""
+"Make sure that your spam filter didn't catch our activation email. They are "
+"sent from"
+msgstr ""
+
+#: ../scripts/tmpl_cache/chart-publish.twig.php:197
+msgid ""
+"Of course, you can also let us <a href='#resend'>resend the activation "
+"email</a>."
+msgstr ""
+
+#: ../scripts/tmpl_cache/chart-publish.twig.php:201
+msgid "If that didn't work either, please contact our support"
+msgstr ""
+
+#: ../scripts/tmpl_cache/chart-publish.twig.php:233
+msgid "Create another graphic"
+msgstr ""
+
+#: ../scripts/tmpl_cache/chart-publish.twig.php:237
+msgid "Return to visualise step"
+msgstr ""
+
+#: ../scripts/tmpl_cache/chart-upload.twig.php:78
+msgid "Upload Your Data"
+msgstr ""
+
+#: ../scripts/tmpl_cache/chart-upload.twig.php:90
+msgid "Upload and continue"
+msgstr ""
+
+#: ../scripts/tmpl_cache/chart-upload.twig.php:94
+msgid "...or pick a file from your disk"
+msgstr ""
+
+#: ../scripts/tmpl_cache/chart-upload.twig.php:104
+msgid "Help"
+msgstr ""
+
+#: ../scripts/tmpl_cache/chart-upload.twig.php:108
+msgid ""
+"We want to make getting data into Datawrapper as easy as possible. If you're "
+"working in Excel or OpenOffice, just select your data (including header row/"
+"column) and paste it in the following text field."
+msgstr ""
+
+#: ../scripts/tmpl_cache/chart-upload.twig.php:113
+msgid "Learn more about how to upload your data"
+msgstr ""
+
+#: ../scripts/tmpl_cache/chart-upload.twig.php:118
+msgid ""
+"If you simply want to play around with Datawrapper, you can use one of the "
+"following example datasets:"
+msgstr ""
+
+#: ../scripts/tmpl_cache/chart-visualize.twig.php:151
+msgid "Visualization:"
+msgstr ""
+
+#: ../scripts/tmpl_cache/chart-visualize.twig.php:210
+msgid "Title"
+msgstr ""
+
+#: ../scripts/tmpl_cache/chart-visualize.twig.php:261
+msgid "select a data series"
+msgstr ""
+
+#: ../scripts/tmpl_cache/core.twig.php:94
+msgid "Open Source Data Visualization"
+msgstr ""
+
+#: ../scripts/tmpl_cache/core.twig.php:122
msgid "Back to top"
msgstr ""
-#: ../scripts/tmpl_cache/core.twig.php:124
+#: ../scripts/tmpl_cache/core.twig.php:127
msgid ""
"Datawrapper is open source and hosted on <a href=\"http://github.com/"
"\">Github</a>. You can <a href=\"/docs/about\">learn more about Datawrapper</"
@@ -13,6 +251,93 @@ msgid ""
"\">terms of use</a>."
msgstr ""
+#: ../scripts/tmpl_cache/docs.twig.php:69
+msgid "Navigation"
+msgstr ""
+
+#: ../scripts/tmpl_cache/error.twig.php:50
+msgid "What should I do now?"
+msgstr ""
+
+#: ../scripts/tmpl_cache/error.twig.php:55
+msgid "Create a new chart or look in your charts"
+msgstr ""
+
+#: ../scripts/tmpl_cache/help-interpret-data.twig.php:31
+msgid "Help Datawrapper to Read your Data"
+msgstr ""
+
+#: ../scripts/tmpl_cache/help-interpret-data.twig.php:40
+msgid ""
+"<dt>Horizontal Headers</dt>\n"
+" <dd>Check this if the first row of your data table contain "
+"the names of the data columns. If not set, Datawrapper will auto-generate "
+"column names and will try not to use them in the charts. In general, it is a "
+"good advice to provide column names.</dd>\n"
+" <dt>Vertical Headers</dt>\n"
+" <dd>...</dd>\n"
+" <dt>Transpose Data</dt>\n"
+" <dd>...</dd>"
+msgstr ""
+
+#: ../scripts/tmpl_cache/home-login.twig.php:55
+#: ../scripts/tmpl_cache/home-login.twig.php:70
+#: ../scripts/tmpl_cache/login.twig.php:55
+msgid "Login"
+msgstr ""
+
+#: ../scripts/tmpl_cache/home-login.twig.php:62
+#: ../scripts/tmpl_cache/login.twig.php:47
+#: ../scripts/tmpl_cache/login.twig.php:78
+msgid "email"
+msgstr ""
+
+#: ../scripts/tmpl_cache/home-login.twig.php:66
+#: ../scripts/tmpl_cache/login.twig.php:51
+#: ../scripts/tmpl_cache/login.twig.php:84
+msgid "password"
+msgstr ""
+
+#: ../scripts/tmpl_cache/home-login.twig.php:80
+msgid "Not convinced yet?"
+msgstr ""
+
+#: ../scripts/tmpl_cache/home-login.twig.php:85
+msgid "Try Datawrapper now!"
+msgstr ""
+
+#: ../scripts/tmpl_cache/home-login.twig.php:93
+msgid "Welcome back!"
+msgstr ""
+
+#: ../scripts/tmpl_cache/home-login.twig.php:98 ../www/index.php:83
+msgid "My Charts"
+msgstr ""
+
+#: ../scripts/tmpl_cache/home-login.twig.php:100
+msgid "See what you've wrapped so far."
+msgstr ""
+
+#: ../scripts/tmpl_cache/home-login.twig.php:104
+msgid "Create New Chart"
+msgstr ""
+
+#: ../scripts/tmpl_cache/home-login.twig.php:106
+msgid "Wrap again!"
+msgstr ""
+
+#: ../scripts/tmpl_cache/home-login.twig.php:110 ../www/index.php:113
+msgid "Settings"
+msgstr ""
+
+#: ../scripts/tmpl_cache/home-login.twig.php:112
+msgid "Edit your personal informaiont."
+msgstr ""
+
+#: ../scripts/tmpl_cache/home-login.twig.php:116 ../www/index.php:117
+msgid "Logout"
+msgstr ""
+
#: ../scripts/tmpl_cache/home.twig.php:49
msgid ""
"<b class='dw-logo'>Datawrapper</b> is an open source tool helping everyone "
@@ -56,28 +381,148 @@ msgstr ""
msgid "Why this approach? See our Motivations..."
msgstr ""
-#: ../www/index.php:80 ../lib/templates/docs-pages.php:12
-msgid "About"
+#: ../scripts/tmpl_cache/login.twig.php:41
+msgid ""
+"We're glad to see you again. Login to access your charts, and create new "
+"ones."
msgstr ""
-#: ../www/index.php:81
-msgid "Create"
+#: ../scripts/tmpl_cache/login.twig.php:61
+msgid "Can't recall your password?"
msgstr ""
-#: ../www/index.php:83
-msgid "My Charts"
+#: ../scripts/tmpl_cache/login.twig.php:68
+msgid "Create a new account"
msgstr ""
-#: ../www/index.php:101
-msgid "Language"
+#: ../scripts/tmpl_cache/login.twig.php:72
+#, php-format
+msgid ""
+"Datawrapper is 100% free and creating an account takes less than a minute. "
+"Just enter your email and pick a password, and you're done!"
msgstr ""
-#: ../www/index.php:113
-msgid "Settings"
+#: ../scripts/tmpl_cache/login.twig.php:90
+msgid "repeat password"
msgstr ""
-#: ../www/index.php:117
-msgid "Logout"
+#: ../scripts/tmpl_cache/login.twig.php:105
+msgid "Close"
+msgstr ""
+
+#: ../scripts/tmpl_cache/login.twig.php:109
+#: ../scripts/tmpl_cache/settings.twig.php:83
+#: ../scripts/tmpl_cache/settings.twig.php:157
+msgid "Save changes"
+msgstr ""
+
+#: ../scripts/tmpl_cache/mycharts.twig.php:63
+msgid "Created"
+msgstr ""
+
+#: ../scripts/tmpl_cache/mycharts.twig.php:70
+msgid "Layout"
+msgstr ""
+
+#: ../scripts/tmpl_cache/mycharts.twig.php:88
+msgid "By Month"
+msgstr ""
+
+#: ../scripts/tmpl_cache/mycharts.twig.php:120
+msgid "By Visualisation"
+msgstr ""
+
+#: ../scripts/tmpl_cache/mycharts.twig.php:152
+msgid "By Layout"
+msgstr ""
+
+#: ../scripts/tmpl_cache/settings.twig.php:41
+msgid "Account Settings"
+msgstr ""
+
+#: ../scripts/tmpl_cache/settings.twig.php:47
+msgid "E-Mail"
+msgstr ""
+
+#: ../scripts/tmpl_cache/settings.twig.php:53
+msgid ""
+"This is the email address which you used to sign up. If you change your "
+"email, you will be asked to verify it again."
+msgstr ""
+
+#: ../scripts/tmpl_cache/settings.twig.php:60
+msgid "Password"
+msgstr ""
+
+#: ../scripts/tmpl_cache/settings.twig.php:69
+#: ../scripts/tmpl_cache/settings.twig.php:143
+msgid "Password (repeat)"
+msgstr ""
+
+#: ../scripts/tmpl_cache/settings.twig.php:75
+#: ../scripts/tmpl_cache/settings.twig.php:149
+msgid ""
+"Just leave the password fields blank if you don't want to change your "
+"password."
+msgstr ""
+
+#: ../scripts/tmpl_cache/settings.twig.php:87
+#: ../scripts/tmpl_cache/settings.twig.php:161
+msgid "Undo changes"
+msgstr ""
+
+#: ../scripts/tmpl_cache/settings.twig.php:100
+msgid "User Profile"
+msgstr ""
+
+#: ../scripts/tmpl_cache/settings.twig.php:106
+msgid "Name"
+msgstr ""
+
+#: ../scripts/tmpl_cache/settings.twig.php:112
+msgid ""
+"Filling out your profile is optional. If you do, you can display these "
+"information below the charts you publish."
+msgstr ""
+
+#: ../scripts/tmpl_cache/settings.twig.php:120
+msgid "Website"
+msgstr ""
+
+#: ../scripts/tmpl_cache/settings.twig.php:126
+msgid ""
+"Add a website that contains more information about you (e.g. your blog). "
+"Optionally you can display these information below you published charts."
+msgstr ""
+
+#: ../scripts/tmpl_cache/settings.twig.php:136
+msgid "Enter your Twitter-Name, if you like."
+msgstr ""
+
+#: ../scripts/tmpl_cache/settings.twig.php:176
+msgid "Delete Datawrapper Account"
+msgstr ""
+
+#: ../scripts/tmpl_cache/settings.twig.php:181
+msgid ""
+"This will remove your Datawrapper account and all the charts you created so "
+"far. They won't be visible in places where you embedded them."
+msgstr ""
+
+#: ../scripts/tmpl_cache/settings.twig.php:185
+msgid "Yes, delete my account!"
+msgstr ""
+
+#: ../www/index.php:80 ../lib/templates/docs-pages.php:12
+msgid "About"
+msgstr ""
+
+#: ../www/index.php:81
+msgid "Create"
+msgstr ""
+
+#: ../www/index.php:101
+msgid "Language"
msgstr ""
#: ../www/index.php:124
@@ -92,10 +537,6 @@ msgstr ""
msgid "Check & Describe"
msgstr ""
-#: ../www/index.php:142
-msgid "Visualize"
-msgstr ""
-
#: ../www/index.php:143
msgid "Publish"
msgstr ""
View
36 templates/chart-describe.twig
@@ -86,10 +86,10 @@ $(function() {
<div class="span8">
<div class="page-header">
- <h2>Check your data</h2>
+ <h2>{% trans "Check your data" %}</h2>
</div>
- <p>Please check if the data format was recognized correctly. If not, please <a data-toggle="modal" href="/xhr/docs/describe">help Datawrapper to understand your data</a>.</p>
+ <p>{% trans "Please check if the data format was recognized correctly. If not, please <a data-toggle='modal' href='/xhr/docs/describe'>help Datawrapper to understand your data</a>." %}</p>
<form class="form-inline">
@@ -112,47 +112,47 @@ $(function() {
<div class="span4">
<div class="page-header">
- <h2>Describe your data</h2>
+ <h2>{% trans "Describe your data" %}</h2>
</div>
<div class="row" style="margin-bottom:15px">
<div class="span2">
<p>
- <label class="radio"><input type="radio" name="transpose" value="yes" /> Data series in rows</label>
- <label class="radio"><input type="radio" name="transpose" value="no" /> Data series in columns</label>
+ <label class="radio"><input type="radio" name="transpose" value="yes" /> {% trans "Data series in rows" %}</label>
+ <label class="radio"><input type="radio" name="transpose" value="no" /> {% trans "Data series in columns" %}</label>
</p>
</div><div class="span2">
<p>
- <label class="checkbox"><input id="has-horizontal-headers" type="checkbox" checked="checked"> First row as label</label>
- <label class="checkbox"><input id="has-vertical-headers" type="checkbox"> First column as label</label>
+ <label class="checkbox"><input id="has-horizontal-headers" type="checkbox" checked="checked"> {% trans "First row as label" %}</label>
+ <label class="checkbox"><input id="has-vertical-headers" type="checkbox"> {% trans "First column as label" %}</label>
</p>
</div>
</div>
{# <p>
- <label>If possible, please specify the <i>number format</i></label>
+ <label>{% trans "If possible, please specify the <i>number format</i>" %}</label>
<select id="number-format">
- <option value="en">English (eg 1,234.56)</option>
- <option value="de">German/French (eg 1.234,56)</option>
+ <option value="en">{% trans "English (eg 1,234.56)" %}</option>
+ <option value="de">{% trans "German/French (eg 1.234,56)" %}</option>
</select>
</p> #}
- <h3>Credit the source</h3>
+ <h3>{% trans "Credit the source" %}</h3>
<p>
- <label>Who published the data in the first place?</label>
+ <label>{% trans "Who published the data in the first place?" %}</label>
<input id="describe-source-name" type="text" placeholder="name of the organisation">
</p>
<p>
- <label>If possible, please provide a link the source data</label>
+ <label>{% trans "If possible, please provide a link the source data" %}</label>
<input id="describe-source-url" type="text" placeholder="http://">
</p>
- <h3>Annotate data</h3>
- <p>To make the data more useful for your readers you can add details to individual data points or an entire series. This information will be displayed in the visualisations. <a href="#">Learn more..</a></p>
- <button class="btn"><i class="icon-th-list"></i> Annotate series</button> <button class="btn"><i class="icon-th"></i> Annotate data point</button>
+ <h3>{% trans "Annotate data" %}</h3>
+ <p>{% trans "To make the data more useful for your readers you can add details to individual data points or an entire series. This information will be displayed in the visualisations." %} <a href="#">{% trans "Learn more" %}</a></p>
+ <button class="btn"><i class="icon-th-list"></i> {% trans "Annotate series" %}</button> <button class="btn"><i class="icon-th"></i> {% trans "Annotate data point" %}</button>
<div class="form-actions">
- <a href="visualize" class="pull-right btn btn-primary" id="describe-proceed">Visualize <i class="icon-chevron-right icon-white"></i></a>
- <a class="btn" href="upload"><i class="icon-chevron-left"></i> Back</a>
+ <a href="visualize" class="pull-right btn btn-primary" id="describe-proceed">{% trans "Visualize" %} <i class="icon-chevron-right icon-white"></i></a>
+ <a class="btn" href="upload"><i class="icon-chevron-left"></i> {% trans "Back" %}</a>
</div>
</div>
</div>
View
44 templates/chart-publish.twig
@@ -18,31 +18,31 @@ $(function() {
{% if user.isAbleToPublish %}
- <p>Congrats, you made it! Now is the time to check back everything. You can return to the previous steps.</p>
+ <p>{% trans "Congrats, you made it! Now is the time to check back everything. You can return to the previous steps." %}</p>
- <h3>Link to this visualisation</h3>
+ <h3>{% trans "Link to this visualisation" %}</h3>
<p><a href="http://datawrapper.de/chart/{{ chart.id }}">http://datawrapper.de/chart/{{ chart.id }}</a></p>
- <h3>Embed into your website</h3>
- <p>Just copy &amp; paste the following code into your website.</p>
+ <h3>{% trans "Embed into your website" %}</h3>
+ <p>{% trans "Just copy &amp; paste the following code into your website." %}</p>
<form class="form-inline">
- <label>Width: <input type="text" class="input-small" style="width:4ex" value="600" /> px</label>&nbsp;&nbsp;
- <label>Height: <input type="text" class="input-small" style="width:4ex" value="400" /> px</label>
+ <label>{% trans "Width" %}: <input type="text" class="input-small" style="width:4ex" value="600" /> px</label>&nbsp;&nbsp;
+ <label>{% trans "Height" %}: <input type="text" class="input-small" style="width:4ex" value="400" /> px</label>
<textarea id="iframe-code" class="span4" rows="5"><iframe src="/chart/{{ chart.id }}/preview" frameborder="0" scrolling="no" allowtransparency="true" allowfullscreen webkitallowfullscreen mozallowfullscreen oallowfullscreen msallowfullscreen width="600" height="400"></iframe></textarea>
- <h3>Make it public</h3>
- <p>You can show some love to Datawrapper by agreeing to show your visualisation in our <a href="gallery.html">public gallery</a>. Absolutely optional :)</p>
+ <h3>{% trans "Make it public" %}</h3>
+ <p>{% trans "You can show some love to Datawrapper by agreeing to show your visualisation in our <a href='gallery.html'>public gallery</a>" %}. {% trans "This is absolutely optional." %}</p>
- <label class="checkbox"><input type="checkbox" id="make-public" /> Yes, make it public!</label>
+ <label class="checkbox"><input type="checkbox" id="make-public" /> {% trans "Yes, make it public!" %}</label>
{% elseif user.role == 'guest' %}
- <h3>Congrats, you created your first chart!</h3>
+ <h3>{% trans "Congrats, you created your first chart!" %}</h3>
- <p>Now, to be able to embed the chart, we ask you to create an account. It's free and all you need is a valid email address. The chart you just created will be transfered to your new account.</p>
+ <p>{% trans "Now, to be able to embed the chart, we ask you to create an account. It's free and all you need is a valid email address. The chart you just created will be transfered to your new account." %}</p>
- <h3>Sign Up</h3>
+ <h3>{% trans "Sign Up" %}</h3>
<div class="signup-form form-vertcal">
<div class="control-group">
@@ -59,18 +59,18 @@ $(function() {
{% elseif user.role == 'pending' %}
- <h3>Congrats, you created a chart!</h3>
+ <h3>{% trans "Congrats, you created a chart!" %}</h3>
- <p>The chart is accessible under <a href="{{ DW_DOMAIN }}/chart/{{ chart.id }}/edit">{{ DW_DOMAIN }}/chart/{{ chart.id }}/edit</a> or via your <a href="/mycharts">My Charts</a> page.
+ <p>{% trans "The chart is accessible under" %} <a href="{{ DW_DOMAIN }}/chart/{{ chart.id }}/edit">{{ DW_DOMAIN }}/chart/{{ chart.id }}/edit</a> {% trans "or via your <a href='/mycharts'>My Charts</a> page." %}
- <p>Now, to be able to publish and embed this chart into other websites, you need to activate the email address you entered during sign up process.</p>
+ <p>{% trans "Now, to be able to publish and embed this chart into other websites, you need to activate the email address you entered during sign up process." %}</p>
- <p>If you did not get any email within 5 minutes, here's the trouble shooting guide:</p>
+ <p>{% trans "If you did not get any email within 5 minutes, here's the trouble shooting guide:" %}</p>
<ol>
- <li>At first, don't worry. Everything you created will wait patiently</li>
- <li>Make sure that your spam filter didn't catch our activation email. They are sent from activate@{{ DW_DOMAIN }}.</li>
- <li>Of course, you can also let us <a href="#resend">resend the activation email</a>. (TODO)</li>
- <li>If that didn't work either, please contact our support</li>
+ <li>{% trans "At first, don't worry. Everything you created will wait patiently" %}</li>
+ <li>{% trans "Make sure that your spam filter didn't catch our activation email. They are sent from" %} activate@{{ DW_DOMAIN }}.</li>
+ <li>{% trans "Of course, you can also let us <a href='#resend'>resend the activation email</a>." %} (TODO)</li>
+ <li>{% trans "If that didn't work either, please contact our support" %}</li>
</ol>
{% else %}
@@ -87,8 +87,8 @@ $(function() {
<div class="row">
<div class="span12">
<div class="form-actions">
- <a class="pull-right btn" href="create.html"><i class="icon-pencil"></i> Create another graphic</a>
- <a class=" btn " href="describe.html"><i class="icon-chevron-left"></i> Return to visualise step</a>
+ <a class="pull-right btn" href="create.html"><i class="icon-pencil"></i> {% trans "Create another graphic" %}</a>
+ <a class=" btn " href="describe.html"><i class="icon-chevron-left"></i> {% trans "Return to visualise step" %}</a>
</div>
</div>
</div>
View
26 templates/chart-upload.twig
@@ -43,25 +43,25 @@
<div class="row">
<div class="span7">
- <h3>Upload Your Data..</h3>
+ <h3>{% trans "Upload Your Data" %}</h3>
<form class="well">
<textarea id="upload-data-text" placeholder="copy &amp; paste your data here">{{ chartData }}</textarea>
- <a id="upload-data" class="btn btn-primary pull-right" href="#">Upload and continue <i class="icon-chevron-right icon-white"></i></a>
- <button class="btn"><i class="icon-upload"></i>..or pick a file from your disk</button> <span class="label">Not Implemented</span>
+ <a id="upload-data" class="btn btn-primary pull-right" href="#">{% trans "Upload and continue" %} <i class="icon-chevron-right icon-white"></i></a>
+ <button class="btn"><i class="icon-upload"></i>{% trans "...or pick a file from your disk" %}</button> <span class="label">Not Implemented</span>
<br style="clear:both;margin:0" />
</form>
</div>
<div class="span5">
- <h3>Help</h3>
- <p>We want to make getting data into Datawrapper as easy as possible. If you're working in Excel or OpenOffice, just select your data (including header row/column) and paste it in the following text field.</p>
+ <h3>{% trans "Help" %}</h3>
+ <p>{% trans "We want to make getting data into Datawrapper as easy as possible. If you're working in Excel or OpenOffice, just select your data (including header row/column) and paste it in the following text field." %}</p>
- <p><a href="/xhr/docs/upload" data-toggle="modal">Learn more about how to upload your data</a>.</p>
+ <p><a href="/xhr/docs/upload" data-toggle="modal">{% trans "Learn more about how to upload your data" %}</a>.</p>
- <p>If you simply want to play around with Datawrapper, you can use one of the following example datasets:
+ <p>{% trans "If you simply want to play around with Datawrapper, you can use one of the following example datasets:" %}
<ul id="demo-datasets" class="">
{% for dataset in datasets %}
<li><a href="#{{ dataset.id }}" class="demo-dataset" data-data="{{ dataset.data }}">{{ dataset.title }}</a></li>
@@ -87,30 +87,30 @@
</div>
{# maybe we add this feature in 1.1
<div class="span4">
- <h3>Remote Data Source</h3>
- <p>If your data is stored on a datahub like CKAN, ScraperWiki or Google Docs, you can create visualisations directly. Your charts can be updated automatically as the data source changes. <a href="#">learn more</a></p>
+ <h3>{% trans "Remote Data Source" %}</h3>
+ <p>{% trans "If your data is stored on a datahub like CKAN, ScraperWiki or Google Docs, you can create visualisations directly. Your charts can be updated automatically as the data source changes." %} <a href="#">{% trans "learn more" %}</a></p>
<form class="well">
<label class="radio">
<input type="radio" name="remote-source" />
- OKFN DataHub (CKAN)<br />
+ {% trans "OKFN DataHub (CKAN)" %}<br />
<input type="text" placeholder="CKAN-URL" />
</label>
<label class="radio">
<input type="radio" name="remote-source" />
- Google Docs<br />
+ {% trans "Google Docs" %}<br />
<input type="text" placeholder="Google Docs URL" />
</label>
<label class="radio">
<input type="radio" name="remote-source" />
- ScraperWiki<br />
+ {% trans "ScraperWiki" %}<br />
<input type="text" placeholder="Insert the name of your scraper" />
</label>
<p class="pull-right">
- <a class="btn" href="describe.html">Check and continue <i class="icon-chevron-right"></i></a>
+ <a class="btn" href="describe.html">{% trans "Check and continue" %} <i class="icon-chevron-right"></i></a>
</p>
<br class="clearfix" />
</form>
View
12 templates/chart-visualize.twig
@@ -95,7 +95,7 @@ $(function() {
<div class="row">
<div class="span2">
- <label for="select-vis">Visualization:</label>
+ <label for="select-vis">{% trans "Visualization:" %}</label>
<select id="select-vis" class="span2">
{% for vis in visualizations %}{% if vis.title %}
<option value="{{ vis.id }}">{{ vis.title.en }}</option>
@@ -114,7 +114,7 @@ $(function() {
</div>
- <label for="text-title">Title</label>
+ <label for="text-title">{% trans "Title" %}</label>
<input type="text" id="text-title" class="input-xlarge span4" />
{# add introduction #}
@@ -132,7 +132,7 @@ $(function() {
<div class="collapse{% if vismeta['highlighted-series'] %} in{% endif %}" id="c-highlight">
<div>
<select id="highlight-series" class="span2">
- <option value="---">- select a data series -</option>
+ <option value="---">- {% trans "select a data series" %} -</option>
</select>
</div>
<p class="highlighted-series">
@@ -155,9 +155,9 @@ $(function() {
{# customize tooltips }
- <label><a data-toggle="collapse" data-target="#c-tooltips">Customize Tooltips</a></label>
+ <label><a data-toggle="collapse" data-target="#c-tooltips">{% trans "Customize Tooltips" %}</a></label>
<div class="collapse" id="c-tooltips">
- <label class="control-label">Tooltip content</label>
+ <label class="control-label">{% trans "Tooltip content" %}</label>
<div class="controls">
<textarea style="width:100%" placeholder="not implemented yet"></textarea>
</div>
@@ -181,7 +181,7 @@ $(function() {
<div class="form-actions">
<a href="publish" class="pull-right btn btn-primary" id="visualize-proceed">Publish <i class="icon-chevron-right icon-white"></i></a>
- <a class="btn" href="describe"><i class="icon-chevron-left"></i> Back</a>
+ <a class="btn" href="describe"><i class="icon-chevron-left"></i> {% trans "Back" %}</a>
</div>
</div>
View
2  templates/core.twig
@@ -46,7 +46,7 @@
<div class="row topnav">
<div class="span3">
<div class="dw-logo-type dw-logo"><i class="wrap">[&nbsp;</i><a href="/">Datawrapper</a><i class="wrap">&nbsp;]</i></div>
- <div class="dw-logo-sub">Open Source Data Visualization</div>
+ <div class="dw-logo-sub">{% trans "Open Source Data Visualization" %}</div>
</div>
{% use "login.twig" %}
View
2  templates/docs.twig
@@ -22,7 +22,7 @@
</div>
<div class="span4 nav">
- <h3>Navigation</h3>
+ <h3>{% trans "Navigation" %}</h3>
<ul class="nav nav-pills nav-stacked">
{% for page in navigation %}
View
4 templates/error.twig
@@ -10,9 +10,9 @@
</div>
<p>{{ message|raw }}</p>
- <h3>What should I do now?</h3>
+ <h3>{% trans "What should I do now?" %}</h3>
- <p>Create a new chart or look in your charts</p>
+ <p>{% trans "Create a new chart or look in your charts" %}</p>
</div>
</div>
View
4 templates/help-interpret-data.twig
@@ -2,18 +2,20 @@
<div class="modal hide" id="helpInterpretData">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
- <h2>Help Datawrapper to Read your Data</h2>
+ <h2>{% trans "Help Datawrapper to Read your Data" %}</h2>
</div>
<div class="modal-body">
<p>
</p>
<dl class="dl-horizontal">
+ {% trans %}
<dt>Horizontal Headers</dt>
<dd>Check this if the first row of your data table contain the names of the data columns. If not set, Datawrapper will auto-generate column names and will try not to use them in the charts. In general, it is a good advice to provide column names.</dd>
<dt>Vertical Headers</dt>
<dd>...</dd>
<dt>Transpose Data</dt>
<dd>...</dd>
+ {% endtrans %}
</dl>
</div>
<div class="modal-footer">
View
24 templates/home-login.twig
@@ -9,25 +9,25 @@
{% if not user.isLoggedIn %}
<div class="well clearfix">
- <h3>Login / Sign Up</h3>
+ <h3>{% trans "Login" %} / {% trans "Sign Up" %}</h3>
<div class="login-form form-vertical">
- <input class="login-email input-large" type="text" value="" placeholder="email" />
- <input class="login-pwd input-large" type="password" value="" placeholder="password" /><br />
- <p class="pull-right" style="margin-bottom:0"><a class="btn btn-primary btn-large btn-login"><i class="icon-user icon-white"></i> Login</a>
- <span style="padding:0 1ex">or</span> <a href="#login" class="btn btn-large"><i class="icon-pencil"></i> Sign Up</a></p>
+ <input class="login-email input-large" type="text" value="" placeholder="{% trans "email" %}" />
+ <input class="login-pwd input-large" type="password" value="" placeholder="{% trans "password" %}" /><br />
+ <p class="pull-right" style="margin-bottom:0"><a class="btn btn-primary btn-large btn-login"><i class="icon-user icon-white"></i> {% trans "Login" %}</a>
+ <span style="padding:0 1ex">or</span> <a href="#login" class="btn btn-large"><i class="icon-pencil"></i> {% trans "Sign Up" %}</a></p>
</div>
</div>
- <p>Not convinced, yet?</p>
+ <p>{% trans "Not convinced yet?" %}</p>
<p>
- <a href="/chart/create"><big><i class="icon-chevron-right"></i> Try Datawrapper now!</a></big></p>
+ <a href="/chart/create"><big><i class="icon-chevron-right"></i> {% trans "Try Datawrapper now!" %}</a></big></p>
{% else %}
<div class="well">
- <h3>Welcome, back!</h3>
+ <h3>{% trans "Welcome back!" %}</h3>
<ul class="unstyled link-list">
- <li><h3><a href="/mycharts"><i class="icon-signal"></i> My Charts</a><br /><small>See what you've wrapped so far..</small></h3></li>
- <li><h3><a href="/chart/create"><i class="icon-pencil"></i> Create New Chart</a><br /><small>See what you've wrapped so far..</small></h3></li>
- <li><h3><a href="/account/settings"><i class="icon-cog"></i> Settings</a><br /><small>Change E-Mail, Password, etc.</small></h3></li>
- <li><h3><a href="#logout"><i class="icon-off"></i> Logout</a></h3></li>
+ <li><h3><a href="/mycharts"><i class="icon-signal"></i> {% trans "My Charts" %}</a><br /><small>{% trans "See what you've wrapped so far." %}</small></h3></li>
+ <li><h3><a href="/chart/create"><i class="icon-pencil"></i> {% trans "Create New Chart" %}</a><br /><small>{% trans "Wrap again!" %}</small></h3></li>
+ <li><h3><a href="/account/settings"><i class="icon-cog"></i> {% trans "Settings" %}</a><br /><small>{% trans "Edit your personal informaiont." %}</small></h3></li>
+ <li><h3><a href="#logout"><i class="icon-off"></i> {% trans "Logout" %}</a></h3></li>
</ul>
</div>
View
26 templates/login.twig
@@ -12,39 +12,39 @@
<h3>Login</h3>
- <p>We're glad to see you again. Login to access your charts, and create new ones.</p>
+ <p>{% trans "We're glad to see you again. Login to access your charts, and create new ones." %}</p>
<div class="login-form form-vertical">
- <input class="login-email" type="text" class="input-xxlarge span3" value="" placeholder="email" />
- <input class="login-pwd" type="password" class="input-xxlarge span3" value="" placeholder="password" /><br />
- <a class="btn btn-login btn-primary btn-large"><i class="icon-user icon-white"></i> Login</a>
+ <input class="login-email" type="text" class="input-xxlarge span3" value="" placeholder="{% trans "email" %}" />
+ <input class="login-pwd" type="password" class="input-xxlarge span3" value="" placeholder="{% trans "password" %}" /><br />
+ <a class="btn btn-login btn-primary btn-large"><i class="icon-user icon-white"></i> {% trans "Login" %}</a>
</div>
<hr />
- <a id="forgot-password">Can't recall your Password?</a>
+ <a id="forgot-password">{% trans "Can't recall your password?" %}</a>
</div>
<div class="span3">
- <h3>Create a new account</h3>
- <p>Datawrapper is 100% free and creating an account takes less than a minute. Just enter your email and pick a password, and you're done!</p>
+ <h3>{% trans "Create a new account" %}</h3>
+ <p>{% trans "Datawrapper is 100% free and creating an account takes less than a minute. Just enter your email and pick a password, and you're done!" %}</p>
<div class="signup-form form-vertcal">
<div class="control-group">
- <input id="register-email" type="text" class="input-xlarge span2" placeholder="email" />
+ <input id="register-email" type="text" class="input-xlarge span2" placeholder="{% trans "email" %}" />
</div>
<div class="control-group">
- <input id="register-pwd" type="password" class="input-xlarge span2" placeholder="password" />
+ <input id="register-pwd" type="password" class="input-xlarge span2" placeholder="{% trans "password" %}" />
</div>
<div class="control-group">
- <input id="register-pwd-2" type="password" class="input-xlarge span2" placeholder="repeat password" />
+ <input id="register-pwd-2" type="password" class="input-xlarge span2" placeholder="{% trans "repeat password" %}" />
</div>
- <a id="btn-register" class="btn btn-large"><i class="icon-pencil"></i> Sign Up</a>
+ <a id="btn-register" class="btn btn-large"><i class="icon-pencil"></i> {% trans "Sign Up" %}</a>
</div>
</div>
</div>
</div>
<!--<div class="modal-footer">
- <a href="#" class="btn" data-dismiss="modal">Close</a>
- <a href="#" class="btn btn-primary">Save changes</a>
+ <a href="#" class="btn" data-dismiss="modal">{% trans "Close" %}</a>
+ <a href="#" class="btn btn-primary">{% trans "Save changes" %}</a>
</div>-->
</div>
View
10 templates/mycharts.twig
@@ -14,15 +14,15 @@
<a href="#delete" class="delete" data-chart="{{ chart.id }}"><i class="icon-remove"></i></a>
</p>
<h3><a href="chart/{{ chart.id }}/edit">{{ chart.title }}</a></h3>
- <p>Created: {{ chart.createdAt|date() }}<br/>
- Layout: {{ chart.theme }} </p>
+ <p>{% trans "Created" %}: {{ chart.createdAt|date() }}<br/>
+ {% trans "Layout" %}: {{ chart.theme }} </p>
</div>
</li>
{% endfor %}
</ul>
</div>
<div class="span3">
- <h3>By Month</h3>
+ <h3>{% trans "By Month" %}</h3>
<span class="label label-info">Not Implemented</span>
<ul class="unstyled">
@@ -31,7 +31,7 @@
{% endfor %}
</ul>
- <h3>By Visualisation</h3>
+ <h3>{% trans "By Visualisation" %}</h3>
<span class="label label-info">Not Implemented</span>
<ul class="unstyled">
@@ -40,7 +40,7 @@
{% endfor %}
</ul>
- <h3>By Layout</h3>
+ <h3>{% trans "By Layout" %}</h3>
<span class="label label-info">Not Implemented</span>
<ul class="unstyled">
View
42 templates/settings.twig
@@ -9,32 +9,32 @@
<div class="span6">
<div class="form-horizontal">
<fieldset>
- <legend>Account Settings</legend>
+ <legend>{% trans "Account Settings" %}</legend>
<div class="control-group">
- <label class="control-label" for="input01">E-Mail</label>
+ <label class="control-label" for="input01">{% trans "E-Mail" %}</label>
<div class="controls">
<input type="text" class="input-xlarge" id="input01">
- <p class="help-block">This is the email address which you used to sign up. If you change your email, you will be asked to verify it again.</p>
+ <p class="help-block">{% trans "This is the email address which you used to sign up. If you change your email, you will be asked to verify it again." %}</p>
</div>
</div>
<div class="control-group">
- <label class="control-label" for="input01">Password</label>
+ <label class="control-label" for="input01">{% trans "Password" %}</label>
<div class="controls">
<input type="text" class="input-xlarge" id="input01">
</div>
</div>
<div class="control-group">
- <label class="control-label" for="input01">Password (repeat)</label>
+ <label class="control-label" for="input01">{% trans "Password (repeat)" %}</label>
<div class="controls">
<input type="text" class="input-xlarge" id="input01">
- <p class="help-block">Just leave the password fields blank if you don't want to change your password.</p>
+ <p class="help-block">{% trans "Just leave the password fields blank if you don't want to change your password." %}</p>
</div>
</div>
<div class="form-actions">
- <button class="btn btn-primary" type="submit">Save changes</button>
- <button class="btn">Undo changes</button>
+ <button class="btn btn-primary" type="submit">{% trans "Save changes" %}</button>
+ <button class="btn">{% trans "Undo changes" %}</button>
</div>
</fieldset>
@@ -44,41 +44,41 @@
<div class="span6">
<div class="form-horizontal">
<fieldset>
- <legend>User Profile</legend>
+ <legend>{% trans "User Profile" %}</legend>
<div class="control-group">
- <label class="control-label" for="input01">Name</label>
+ <label class="control-label" for="input01">{% trans "Name" %}</label>
<div class="controls">
<input type="text" class="input-xlarge" id="input01" placeholder="">
- <p class="help-block">Filling out your profile is optional. If you do, you can display these information below the charts you publish.</p>
+ <p class="help-block">{% trans "Filling out your profile is optional. If you do, you can display these information below the charts you publish." %}</p>
</div>
</div>
<div class="control-group">
- <label class="control-label" for="input01">Website</label>
+ <label class="control-label" for="input01">{% trans "Website" %}</label>
<div class="controls">
<input type="text" class="input-xlarge" id="input01" placeholder="http://">
- <p class="help-block">Add a website that contains more information about you (e.g. your blog). Optionally you can display these information below you published charts.</p>
+ <p class="help-block">{% trans "Add a website that contains more information about you (e.g. your blog). Optionally you can display these information below you published charts." %}</p>
</div>
</div>
<div class="control-group">
<label class="control-label" for="input01">Twitter</label>
<div class="controls">
<input type="text" class="input-xlarge" id="input01">
- <p class="help-block">Enter your Twitter-Name, if you like.</p>
+ <p class="help-block">{% trans "Enter your Twitter-Name, if you like." %}</p>
</div>
</div>
<div class="control-group">
- <label class="control-label" for="input01">Password (repeat)</label>
+ <label class="control-label" for="input01">{% trans "Password (repeat)" %}</label>
<div class="controls">
<input type="text" class="input-xlarge" id="input01">
- <p class="help-block">Just leave the password fields blank if you don't want to change your password.</p>
+ <p class="help-block">{% trans "Just leave the password fields blank if you don't want to change your password." %}</p>
</div>
</div>
<div class="form-actions">
- <button class="btn btn-primary" type="submit">Save changes</button>
- <button class="btn">Undo changes</button>
+ <button class="btn btn-primary" type="submit">{% trans "Save changes" %}</button>
+ <button class="btn">{% trans "Undo changes" %}</button>
</div>
</fieldset>
@@ -90,10 +90,10 @@
<div class="span6">
<div class="form-horizontal" style="margin-top:4em">
<fieldset>
- <legend>Delete Datawrapper Account</legend>
+ <legend>{% trans "Delete Datawrapper Account" %}</legend>
- <p>This will remove your Datawrapper account and all the charts you created so far. They won't be visible in places where you embedded them.</p>
- <button class="btn btn-danger">Yes, delete my account!</button>
+ <p>{% trans "This will remove your Datawrapper account and all the charts you created so far. They won't be visible in places where you embedded them." %}</p>
+ <button class="btn btn-danger">{% trans "Yes, delete my account!" %}</button>
</fieldset>
Please sign in to comment.
Something went wrong with that request. Please try again.