-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
first stab at localization too which I'll probably end up discarding
- Loading branch information
Showing
4 changed files
with
99 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<% local source_lang = params.source_lang or 'en' %> | ||
<h1>Localization tool</h1> | ||
<span>Source: </span> | ||
<script>var url = new URL(location.href);</script> | ||
<select onchange=" | ||
url.searchParams.set('source_lang', this.value); | ||
location.href = url.href; | ||
"> | ||
<% for k, _ in pairs(locale.locales) do %> | ||
<option | ||
<%= (k == source_lang) and 'selected' or '' %> | ||
value="<%= k %>"><%= k %></option> | ||
<% end %> | ||
</select> | ||
<br> | ||
<br> | ||
|
||
<% for _, entry in ipairs(locale.sorted_keys()) do %> | ||
<% if entry.key then %> | ||
<div class="locale-entry"> | ||
<h3><%= entry.key %></h3> | ||
<label><%= source_lang %> : <input readonly value="<%= locale.locales[source_lang][entry.key] or '' %>"></input></label> | ||
<% if entry.comment then %> <span><%= entry.comment %></span> <% end %> | ||
<br> | ||
<label for="<%=entry.key%>"><%=locale.language%> : </label><input for="<%= entry.key %>" value="<%= locale.at(entry.key) %>"></input> | ||
</div> | ||
<% elseif entry.comment then %> | ||
<div class="locale-comment"> | ||
<p><%= entry.comment %></p> | ||
</div> | ||
<% end %> | ||
<% end %> | ||
|
||
<br> | ||
<a class="pure-button" onclick="alert('yes')">Download</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,27 @@ | ||
TODO | ||
==== | ||
TWEAKS | ||
====== | ||
[ ] unify self.per_page, self.items_per_page and self.params.items_per_page | ||
[ ] rethink rate limiting for the site, maybe using CRLF protection? | ||
|
||
[ ] localization | ||
[ ] user admin | ||
[ ] flagged projects | ||
[ ] titles of curated collections | ||
[ ] errors | ||
[ ] all static pages | ||
[ ] all errors | ||
[ ] all okay messages and titles | ||
LOCALIZATION | ||
============ | ||
[ ] user admin | ||
[ ] flagged projects | ||
[ ] titles of curated collections | ||
[ ] errors | ||
[ ] all static pages | ||
[ ] all errors | ||
[ ] all okay messages and titles | ||
|
||
[ ] rethink rate limiting for the site, maybe using CRLF protection? | ||
MISSING FUNCTIONALITY | ||
===================== | ||
[ ] edit project notes | ||
[ ] edit project title | ||
[ ] front page management | ||
[ ] upload TOTM image, set TOTM | ||
[ ] [un]feature collection carousel | ||
[ ] follow user | ||
|
||
TODO AFTER DEPLOYING | ||
==================== | ||
MISSING PAGES | ||
============= | ||
[ ] zombie_admin | ||
[ ] project | ||
[ ] edit notes | ||
[ ] edit title |