parent
4b1e7d71ae
commit
0c3bcf5072
@ -0,0 +1,2 @@
|
|||||||
|
-- Add down migration script here
|
||||||
|
DROP TABLE IF EXISTS supported_languages;
|
@ -0,0 +1,8 @@
|
|||||||
|
-- Add up migration script here
|
||||||
|
CREATE TABLE IF NOT EXISTS supported_languages (
|
||||||
|
id SERIAL PRIMARY KEY NOT NULL,
|
||||||
|
-- this will be used in the url, like "/en/...", or "/fr/..."
|
||||||
|
short_name VARCHAR(2) NOT NULL,
|
||||||
|
-- this will be the native name of the langauge on the page where you can select your language
|
||||||
|
native_name VARCHAR(32) NOT NULL
|
||||||
|
);
|
@ -0,0 +1,3 @@
|
|||||||
|
-- Add down migration script here
|
||||||
|
DELETE FROM supported_languages
|
||||||
|
WHERE id=1 OR id=2;
|
@ -0,0 +1,6 @@
|
|||||||
|
-- Add up migration script here
|
||||||
|
INSERT INTO supported_languages
|
||||||
|
(id, short_name, native_name)
|
||||||
|
VALUES
|
||||||
|
(1, 'en', 'English'),
|
||||||
|
(2, 'fr', 'Français');
|
@ -0,0 +1 @@
|
|||||||
|
hello: Tikkitakka
|
@ -0,0 +1,16 @@
|
|||||||
|
{% extends "master.html" %}
|
||||||
|
|
||||||
|
{% block title %}Select Your Language{% endblock %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
<h1>Select Your Language</h1>
|
||||||
|
{% if languages.len() > 0 %}
|
||||||
|
<ul>
|
||||||
|
{% for lang in languages %}
|
||||||
|
<li><a href="/{{ lang.short_name }}/">{{ lang.native_name }}</a></li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
{% else %}
|
||||||
|
<p>No languages were found. This is probably very.</p>
|
||||||
|
{% endif %}
|
||||||
|
{% endblock %}
|
@ -0,0 +1,5 @@
|
|||||||
|
test: 123
|
||||||
|
welcome: Welcome!
|
||||||
|
test2: 123123
|
||||||
|
message: Can we %{go} to the store?
|
||||||
|
hello: Hello World
|
@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
"phrases": {
|
|
||||||
"urlGame": "game",
|
|
||||||
"urlDivision": "division",
|
|
||||||
"urlLeague": "league",
|
|
||||||
"ibihfLeagues": "IBIHF Leagues",
|
|
||||||
"goals": "Goals",
|
|
||||||
"assists": "Assists",
|
|
||||||
"period": "Period"
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,10 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<resources>
|
|
||||||
<string name="urlGame">game</string>
|
|
||||||
<string name="urlDivision">division</string>
|
|
||||||
<string name="urlLeague">league</string>
|
|
||||||
<string name="ibihfLeagues">IBIHF Leagues</string>
|
|
||||||
<string name="goals">Goals</string>
|
|
||||||
<string name="assists">Assists</string>
|
|
||||||
<string name="period">Period</string>
|
|
||||||
</resources>
|
|
@ -0,0 +1,2 @@
|
|||||||
|
test: Test
|
||||||
|
welcome: Beinvenue
|
@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
"phrases": {
|
|
||||||
"urlGame": "match",
|
|
||||||
"urlDivision": "division",
|
|
||||||
"urlLeague": "league",
|
|
||||||
"ibihfLeagues": "Leagues de FIDHS",
|
|
||||||
"goals": "But",
|
|
||||||
"assists": "Assisté",
|
|
||||||
"period": "Période"
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,10 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<resources>
|
|
||||||
<string name="urlGame">match</string>
|
|
||||||
<string name="urlDivision">division</string>
|
|
||||||
<string name="urlLeague">league</string>
|
|
||||||
<string name="ibihfLeagues">Leagues de FIDHS</string>
|
|
||||||
<string name="goals">But</string>
|
|
||||||
<string name="assists">Assisté</string>
|
|
||||||
<string name="period">Période</string>
|
|
||||||
</resources>
|
|
Loading…
Reference in new issue