Skip to content

Commit

Permalink
WIP Italian translation
Browse files Browse the repository at this point in the history
  • Loading branch information
redtide committed Mar 13, 2021
1 parent 5cfea85 commit 796514a
Show file tree
Hide file tree
Showing 23 changed files with 364 additions and 376 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ indent_size = 2
insert_final_newline = false
trim_trailing_whitespace = true

[*.yml]
[*.{yml,json}]
indent_style = space
7 changes: 7 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# TODO

## Localization

- Fix tooltips over links
- Fix table headers translation
- RSS icon not shown in localized dropdown menu?
42 changes: 38 additions & 4 deletions _data/devices.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,44 @@
[
{
"name": "Odroid N2/N2+",
"path": "/images/odroidn2"
"name": "Odroid C4/HC4",
"id": "odroidc4",
"images":
[
{
"name": "Gnome",
"url": "https://mega.nz/file/WFlAFRYZ#qznp4Kjn74fimAlb_NMI3RvOD4bKFD7RiIkm1QAbA2o"
},
{
"name": "Xfce",
"url": "https://mega.nz/file/3M92mD5K#IeP0HTWSM3Ditp_E6CUDsRoX__P_APOFk4EvE_GUIxA"
},
{
"name": "Wayfire",
"url": "https://mega.nz/file/CRll2KjB#0tSyAjs-2a2JZ7oF2XgZIjD1JjF41UT3uLDPKxIyvEY"
}
]
},
{
"name": "Odroid C4/HC4",
"path": "/images/odroidc4"
"name": "Odroid N2/N2+",
"id": "odroidn2",
"images":
[
{
"name": "Headless",
"url": "https://mega.nz/file/2Q9lTIbR#Kinzc-vlmI4c7IgUqn4-96E62GYvSH4hHqinzKJxOhw"
},
{
"name": "Gnome",
"url": "https://mega.nz/file/iIty1LhY#0DzhzmMhCqOujy1aUceywo8SWan9ox4_Wm23hDztYXM"
},
{
"name": "Xfce",
"url": "https://mega.nz/file/zEkw2Jgb#R14x4WXDvMtn3QaVNHlYIe9bq25kZoH-ddxYGTS5jdM"
},
{
"name": "Wayfire",
"url": "https://mega.nz/file/HMkEQZRR#ZFGNop8u9x_SIfCF4_wkC91UWfmt2hGPU7MpqA9APZc"
}
]
}
]
22 changes: 15 additions & 7 deletions _includes/archdroid/devices.liquid
Original file line number Diff line number Diff line change
@@ -1,20 +1,28 @@

<table
id="table-mirrors"
id="table-devices"
class="table table-sm table-hover"
data-toggle="table">
<thead>
<tr>
<th data-field="name" data-sortable="true">Device</th>
<th>Images</th>
<th
data-field="name"
data-sortable="true"
>
<span data-localize="devices_device">Device</span>
</th>
<th>
<span data-localize="devices_images">Images</span>
</th>
</tr>
</thead>
<tbody>
{%-for device in site.data.devices-%}
{%- for device in site.data.devices -%}
<tr>
<td>{{ device.name }}</td>
<td><a href="{{ device.path }}">View</a></td>
<td><span>{{ device.name }}</span></td>
<td><a href="{{ '/en/images/' | append: device.id | relative_url }}">
<span data-localize="devices_view">View</span></a></td>
</tr>
{%-endfor-%}
{%- endfor -%}
</tbody>
</table>
69 changes: 0 additions & 69 deletions _includes/archdroid/images-table-c4.liquid

This file was deleted.

87 changes: 0 additions & 87 deletions _includes/archdroid/images-table-n2.liquid

This file was deleted.

55 changes: 55 additions & 0 deletions _includes/archdroid/images-table.liquid
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@

<table
id="table-disk-images"
class="table table-hover"
data-toggle="table"
>
<thead>
<tr>
<th
data-field="name"
data-sortable="true"
>
<span data-localize="images_environment">Environment</span>
</th>
<th>
<span data-localize="images_info_download">Info &amp; Download</span>
</th>
</tr>
</thead>
<tbody>
{%-assign device = site.data.devices | where: "id", include.id | first-%}
{%-for image in device.images-%}
{%-assign image_name = image.name | downcase-%}
{%-assign env_page = "/en/env/" | append: image_name | relative_url-%}
{%-assign image_page = "/en/images/" | append: device.id | append: '/' |
append: image_name | relative_url-%}
<tr>
<td>
<a
href="{{ env_page }}"
title="Details about this environment"
{%comment%}data-localize="images_environment_tooltip"{%endcomment%}
>
{{ image.name }}
</a>
</td>
<td>
<a
href="{{ image_page }}"
title="Details about this image"
{%comment%}data-localize="images_info_download_tooltip"{%endcomment%}
>
<i class="fas fa-info-circle"></i>
</a>
<a
target="_blank"
href="{{ image.url }}"
>
<i class="fas fa-download"></i>
</a>
</td>
</tr>
{%-endfor-%}
</tbody>
</table>
9 changes: 6 additions & 3 deletions _includes/archdroid/mirrors.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@
<tr>
<th
data-field="name"
data-sortable="true"
data-localize="mirrors_header_name">Name</th>
<th data-localize="mirrors_header_url">URL</th>
data-sortable="true">
<span data-localize="mirrors_header_name">Name</span>
</th>
<th>
<span data-localize="mirrors_header_url">URL</span>
</th>
</tr>
</thead>
<tbody>
Expand Down
14 changes: 9 additions & 5 deletions _includes/archdroid/team.liquid
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
<h1>Team</h1>

<p>People that make the Archdroid project possible:</p>

<table
id="table-team"
class="table table-sm table-hover"
data-toggle="table">
<thead>
<tr>
<th data-field="name" data-sortable="true">Name</th>
<th>Contributions</th>
<th
data-field="name"
data-sortable="true"
>
<span data-localize="team_name">Name</span>
</th>
<th>
<span data-localize="team_contrib">Contributions</span>
</th>
</tr>
</thead>
<tbody>
Expand Down
6 changes: 6 additions & 0 deletions _includes/navigation.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ TODO: {% if site.logo %}
class="dropdown-item font-weight-bold"
href="{{ subitem.url | relative_url }}"
>
{%-if subitem.icon_type-%}
<i
class="{{ subitem.icon_category }} fa-{{ subitem.icon_type }} fa-fw"
aria-hidden="true"
></i>&nbsp;
{%-endif-%}
{{ subitem.label }}
</a>
{% endif %}
Expand Down
Loading

0 comments on commit 796514a

Please sign in to comment.