Commit 57c2175d authored by Luc Didry's avatar Luc Didry

Improve make locales

parent bb683e82
EXTRACTFILES=utilities/locales_files.txt
EXTRACTDIR=-D lib -D themes/default
EN=themes/default/lib/Lstu/I18N/en.po
FR=themes/default/lib/Lstu/I18N/fr.po
OC=themes/default/lib/Lstu/I18N/oc.po
......@@ -8,9 +8,10 @@ REAL_LSTU=script/application
LSTU=script/lstu
locales:
$(XGETTEXT) -f $(EXTRACTFILES) -o $(EN) 2>/dev/null
$(XGETTEXT) -f $(EXTRACTFILES) -o $(FR) 2>/dev/null
$(XGETTEXT) -f $(EXTRACTFILES) -o $(OC) 2>/dev/null
$(XGETTEXT) $(EXTRACTDIR) -o $(EN) 2>/dev/null
$(XGETTEXT) $(EXTRACTDIR) -o $(FR) 2>/dev/null
$(XGETTEXT) $(EXTRACTDIR) -o $(OC) 2>/dev/null
cd ./themes/milligram && make locales
podcheck:
podchecker lib/Lstu/DB/Ban.pm lib/Lstu/DB/Session.pm lib/Lstu/DB/URL.pm
......
# Lstu
# Copyright (C) 2013 - 2015 Luc Didry
# Copyright (C) 2013 Luc Didry
# This file is distributed under the same license as the Lstu package.
#
# Translators:
......@@ -20,7 +20,7 @@ msgstr ""
"X-Poedit-SourceCharset: UTF-8\n"
#. ($url)
#: lib/Lstu/Controller/Lstu.pm:109
#: lib/Lstu/Controller/Lstu.pm:98
msgid "%1 is not a valid URL."
msgstr ""
......@@ -32,7 +32,7 @@ msgstr ""
msgid "Admin password"
msgstr ""
#: lib/Lstu/Controller/Admin.pm:61 lib/Lstu/Controller/Admin.pm:94
#: lib/Lstu/Controller/Admin.pm:100 lib/Lstu/Controller/Admin.pm:60
msgid "Bad password"
msgstr ""
......@@ -96,6 +96,10 @@ msgstr ""
msgid "License:"
msgstr ""
#: themes/default/templates/login.html.ep:8
msgid "Login"
msgstr ""
#: themes/default/templates/layouts/default.html.ep:62
msgid "Logout"
msgstr ""
......@@ -109,7 +113,7 @@ msgid "Next"
msgstr ""
#. ($c->config('contact')
#: lib/Lstu/Controller/Lstu.pm:101
#: lib/Lstu/Controller/Lstu.pm:92
msgid "No shortened URL available. Please retry or contact the administrator at %1. Your URL to shorten: %2"
msgstr ""
......@@ -117,7 +121,11 @@ msgstr ""
msgid "Parameters:"
msgstr ""
#: lib/Lstu.pm:354
#: themes/default/templates/login.html.ep:12
msgid "Password"
msgstr ""
#: lib/Lstu.pm:232
msgid "Please, check your credentials: unable to authenticate."
msgstr ""
......@@ -137,7 +145,7 @@ msgstr ""
msgid "Shortened URL"
msgstr ""
#: themes/default/templates/layouts/default.html.ep:64
#: themes/default/templates/layouts/default.html.ep:64 themes/default/templates/login.html.ep:16 themes/default/templates/logout.html.ep:5
msgid "Signin"
msgstr ""
......@@ -146,31 +154,31 @@ msgid "Statistics"
msgstr ""
#. ($url->host)
#: lib/Lstu.pm:227
#: lib/Lstu/Plugin/Helpers.pm:126
msgid "The URL host or one of its redirection(s) (%1) is blacklisted at Spamhaus. I refuse to shorten it."
msgstr ""
#. ($url->host)
#: lib/Lstu.pm:240
#: lib/Lstu/Plugin/Helpers.pm:139
msgid "The URL redirects 3 times or most. It's most likely a dangerous URL (spam, phishing, etc.). I refuse to shorten it."
msgstr ""
#. ($c->url_for('/')
#: lib/Lstu/Controller/Admin.pm:83 lib/Lstu/Controller/Lstu.pm:279
#: lib/Lstu/Controller/Admin.pm:89 lib/Lstu/Controller/Lstu.pm:279
msgid "The shortened URL %1 doesn't exist."
msgstr ""
#. ($custom_url)
#: lib/Lstu/Controller/Lstu.pm:53
#: lib/Lstu/Controller/Lstu.pm:56
msgid "The shortened text (%1) is already used. Please choose another one."
msgstr ""
#. ($url)
#: lib/Lstu/Controller/Lstu.pm:51
#: lib/Lstu/Controller/Lstu.pm:54
msgid "The shortened text can contain only numbers, letters and the - and _ character, can't be \"a\", \"api\", \"d\" or \"stats\" or end with \".json\". Your URL to shorten: %1"
msgstr ""
#: lib/Lstu/Controller/Admin.pm:26
#: lib/Lstu/Controller/Admin.pm:29
msgid "Too many bad passwords. You're banned."
msgstr ""
......@@ -183,10 +191,14 @@ msgid "URL to shorten"
msgstr ""
#. ($penalty/3600)
#: lib/Lstu/Controller/Lstu.pm:27
#: lib/Lstu/Controller/Lstu.pm:30
msgid "You asked to shorten too many URLs too quickly. You're banned for %1 hour(s)."
msgstr ""
#: themes/default/templates/logout.html.ep:3
msgid "You have been successfully logged out."
msgstr ""
#: themes/default/templates/api.html.ep:22
msgid "You will be redirected to the Lstu interface with a message giving the shortened URL"
msgstr ""
......
# Lstu
# Copyright (C) 2013 - 2015 Luc Didry
# Copyright (C) 2013 Luc Didry
# This file is distributed under the same license as the Lstu package.
#
# Translators:
......@@ -23,7 +23,7 @@ msgstr ""
"X-Poedit-SourceCharset: UTF-8\n"
#. ($url)
#: lib/Lstu/Controller/Lstu.pm:109
#: lib/Lstu/Controller/Lstu.pm:98
msgid "%1 is not a valid URL."
msgstr "%1 n’est pas une URL valide."
......@@ -35,7 +35,7 @@ msgstr "À propos"
msgid "Admin password"
msgstr "Mot de passe administrateur"
#: lib/Lstu/Controller/Admin.pm:61 lib/Lstu/Controller/Admin.pm:94
#: lib/Lstu/Controller/Admin.pm:100 lib/Lstu/Controller/Admin.pm:60
msgid "Bad password"
msgstr "Mot de passe incorrect"
......@@ -99,6 +99,10 @@ msgstr "JSON : succès"
msgid "License:"
msgstr "Licence :"
#: themes/default/templates/login.html.ep:8
msgid "Login"
msgstr "Connexion"
#: themes/default/templates/layouts/default.html.ep:62
msgid "Logout"
msgstr "Déconnexion"
......@@ -112,7 +116,7 @@ msgid "Next"
msgstr "Suivant"
#. ($c->config('contact')
#: lib/Lstu/Controller/Lstu.pm:101
#: lib/Lstu/Controller/Lstu.pm:92
msgid "No shortened URL available. Please retry or contact the administrator at %1. Your URL to shorten: %2"
msgstr "Il n’y a plus d’URL raccourcie disponible. Veuillez réessayer ou contactez l’administrateur sur %1. Rappel de l’URL à raccourcir : %2"
......@@ -120,7 +124,11 @@ msgstr "Il n’y a plus d’URL raccourcie disponible. Veuillez réessayer ou co
msgid "Parameters:"
msgstr "Paramètres :"
#: lib/Lstu.pm:354
#: themes/default/templates/login.html.ep:12
msgid "Password"
msgstr "Mot de passe"
#: lib/Lstu.pm:232
msgid "Please, check your credentials: unable to authenticate."
msgstr "Impossible de s’authentifier, veuillez vérifier vos identifiants"
......@@ -140,7 +148,7 @@ msgstr "Réponse :"
msgid "Shortened URL"
msgstr "URL raccourcie"
#: themes/default/templates/layouts/default.html.ep:64
#: themes/default/templates/layouts/default.html.ep:64 themes/default/templates/login.html.ep:16 themes/default/templates/logout.html.ep:5
msgid "Signin"
msgstr "Connexion"
......@@ -149,31 +157,31 @@ msgid "Statistics"
msgstr "Statistiques"
#. ($url->host)
#: lib/Lstu.pm:227
#: lib/Lstu/Plugin/Helpers.pm:126
msgid "The URL host or one of its redirection(s) (%1) is blacklisted at Spamhaus. I refuse to shorten it."
msgstr "L'hôte de l'URL ou d'une de ses redirections (%1) est considéré comme nocif par Spamhaus. Je refuse de la raccourcir."
#. ($url->host)
#: lib/Lstu.pm:240
#: lib/Lstu/Plugin/Helpers.pm:139
msgid "The URL redirects 3 times or most. It's most likely a dangerous URL (spam, phishing, etc.). I refuse to shorten it."
msgstr "L'URL redirige 3 fois ou plus vers un autre site. Il est probable qu'il s'agisse d'une URL dangereuse (pourriel, hameçonnage, etc.). Je refuse de la raccourcir."
#. ($c->url_for('/')
#: lib/Lstu/Controller/Admin.pm:83 lib/Lstu/Controller/Lstu.pm:279
#: lib/Lstu/Controller/Admin.pm:89 lib/Lstu/Controller/Lstu.pm:279
msgid "The shortened URL %1 doesn't exist."
msgstr "L’URL raccourcie %1 n’existe pas"
#. ($custom_url)
#: lib/Lstu/Controller/Lstu.pm:53
#: lib/Lstu/Controller/Lstu.pm:56
msgid "The shortened text (%1) is already used. Please choose another one."
msgstr "Le texte du raccourci (%1) est déjà utilisé. Veuillez en choisir un autre"
#. ($url)
#: lib/Lstu/Controller/Lstu.pm:51
#: lib/Lstu/Controller/Lstu.pm:54
msgid "The shortened text can contain only numbers, letters and the - and _ character, can't be \"a\", \"api\", \"d\" or \"stats\" or end with \".json\". Your URL to shorten: %1"
msgstr "Le texte du raccourci ne doit contenir que des chiffres, des lettres et les caractères - et _, ne peut être \"a\", \"api\", \"d\" ou \"stats\" ou se terminer par \".json\". Rappel de l’URL à raccourcir : %1"
#: lib/Lstu/Controller/Admin.pm:26
#: lib/Lstu/Controller/Admin.pm:29
msgid "Too many bad passwords. You're banned."
msgstr "Trop de mauvais mots de passe. Vous êtes banni."
......@@ -186,10 +194,14 @@ msgid "URL to shorten"
msgstr "URL à raccourcir"
#. ($penalty/3600)
#: lib/Lstu/Controller/Lstu.pm:27
#: lib/Lstu/Controller/Lstu.pm:30
msgid "You asked to shorten too many URLs too quickly. You're banned for %1 hour(s)."
msgstr "Vous avez demandé à réduire trop d’URLs en trop peu de temps. Vous êtes banni pour %1 heure(s)."
#: themes/default/templates/logout.html.ep:3
msgid "You have been successfully logged out."
msgstr "Vous avez été déconnecté avec succès."
#: themes/default/templates/api.html.ep:22
msgid "You will be redirected to the Lstu interface with a message giving the shortened URL"
msgstr "Vous aurez l’interface normale de Lstu avec un message indiquant l’URL raccourcie"
......
# Lstu
# Copyright (C) 2013 - 2015 Luc Didry
# Copyright (C) 2013 Luc Didry
# This file is distributed under the same license as the Lstu package.
#
# Translators:
......@@ -23,7 +23,7 @@ msgstr ""
"X-Poedit-SourceCharset: UTF-8\n"
#. ($url)
#: lib/Lstu/Controller/Lstu.pm:109
#: lib/Lstu/Controller/Lstu.pm:98
msgid "%1 is not a valid URL."
msgstr "%1 es pas una URL valida."
......@@ -35,7 +35,7 @@ msgstr "A prepaus"
msgid "Admin password"
msgstr "Senhal administrator"
#: lib/Lstu/Controller/Admin.pm:61 lib/Lstu/Controller/Admin.pm:94
#: lib/Lstu/Controller/Admin.pm:100 lib/Lstu/Controller/Admin.pm:60
msgid "Bad password"
msgstr "Senhal incorrèct"
......@@ -99,6 +99,10 @@ msgstr "JSON : succès"
msgid "License:"
msgstr "Licéncia :"
#: themes/default/templates/login.html.ep:8
msgid "Login"
msgstr ""
#: themes/default/templates/layouts/default.html.ep:62
msgid "Logout"
msgstr "Desconnexion"
......@@ -112,7 +116,7 @@ msgid "Next"
msgstr "Seguent"
#. ($c->config('contact')
#: lib/Lstu/Controller/Lstu.pm:101
#: lib/Lstu/Controller/Lstu.pm:92
msgid "No shortened URL available. Please retry or contact the administrator at %1. Your URL to shorten: %2"
msgstr "I a pas mai d’URL acorchadas disponiblas. Mercés de tornar ensejar o de contactar l’administrator sus %1. Recòrd de l’URL per acorchar : %2"
......@@ -120,7 +124,11 @@ msgstr "I a pas mai d’URL acorchadas disponiblas. Mercés de tornar ensejar o
msgid "Parameters:"
msgstr "Paramètres :"
#: lib/Lstu.pm:354
#: themes/default/templates/login.html.ep:12
msgid "Password"
msgstr ""
#: lib/Lstu.pm:232
msgid "Please, check your credentials: unable to authenticate."
msgstr ""
......@@ -140,7 +148,7 @@ msgstr "Responsa :"
msgid "Shortened URL"
msgstr "URL acorchada"
#: themes/default/templates/layouts/default.html.ep:64
#: themes/default/templates/layouts/default.html.ep:64 themes/default/templates/login.html.ep:16 themes/default/templates/logout.html.ep:5
msgid "Signin"
msgstr "Connexion"
......@@ -149,31 +157,31 @@ msgid "Statistics"
msgstr "Estatisticas"
#. ($url->host)
#: lib/Lstu.pm:227
#: lib/Lstu/Plugin/Helpers.pm:126
msgid "The URL host or one of its redirection(s) (%1) is blacklisted at Spamhaus. I refuse to shorten it."
msgstr "L’òste de l’URL o d’una de sas redireccions (%1) es considerat coma nociu per Spamhaus. Refusi de l’acorchar."
#. ($url->host)
#: lib/Lstu.pm:240
#: lib/Lstu/Plugin/Helpers.pm:139
msgid "The URL redirects 3 times or most. It's most likely a dangerous URL (spam, phishing, etc.). I refuse to shorten it."
msgstr "L’URL endralha 3 còps o mai cap a un a autre site. Pòt èsser una URL dangerossa (porrièl, pesca electronica, etc). Refusi de l’acorchar"
#. ($c->url_for('/')
#: lib/Lstu/Controller/Admin.pm:83 lib/Lstu/Controller/Lstu.pm:279
#: lib/Lstu/Controller/Admin.pm:89 lib/Lstu/Controller/Lstu.pm:279
msgid "The shortened URL %1 doesn't exist."
msgstr "L’URL acorchada %1 existís pas"
#. ($custom_url)
#: lib/Lstu/Controller/Lstu.pm:53
#: lib/Lstu/Controller/Lstu.pm:56
msgid "The shortened text (%1) is already used. Please choose another one."
msgstr "Lo tèxte de l’acorchi (%1) es ja utilizat. Mercés de ne causir un autre"
#. ($url)
#: lib/Lstu/Controller/Lstu.pm:51
#: lib/Lstu/Controller/Lstu.pm:54
msgid "The shortened text can contain only numbers, letters and the - and _ character, can't be \"a\", \"api\", \"d\" or \"stats\" or end with \".json\". Your URL to shorten: %1"
msgstr "Lo tèxte de l’acorchi deu pas que contenir de chifras, letras e los caractèrs - e _, èsser \"a\", \"api\", \"d\" o \"stats\" o acabar per \".json\". Recòrd de l’URL per acorchar : %1"
#: lib/Lstu/Controller/Admin.pm:26
#: lib/Lstu/Controller/Admin.pm:29
msgid "Too many bad passwords. You're banned."
msgstr "Tròp de marrits senhals. Sètz bandit."
......@@ -186,10 +194,14 @@ msgid "URL to shorten"
msgstr "URL per acorchar"
#. ($penalty/3600)
#: lib/Lstu/Controller/Lstu.pm:27
#: lib/Lstu/Controller/Lstu.pm:30
msgid "You asked to shorten too many URLs too quickly. You're banned for %1 hour(s)."
msgstr "Avètz demandat d’acorchar tròp d'URL en pauc de temps. Sètz bandit per %1 ora(s)."
#: themes/default/templates/logout.html.ep:3
msgid "You have been successfully logged out."
msgstr ""
#: themes/default/templates/api.html.ep:22
msgid "You will be redirected to the Lstu interface with a message giving the shortened URL"
msgstr "Auretz l’interfàcia normala de Lstu amb un messatge qu’indica l’URL acorchada"
......
EN=lib/Lstu/I18N/en.po
FR=lib/Lstu/I18N/fr.po
OC=lib/Lstu/I18N/oc.po
SEDOPTS=-e "s@SOME DESCRIPTIVE TITLE@Lstu language file@" \
-e "s@YEAR THE PACKAGE'S COPYRIGHT HOLDER@2015 Luc Didry@" \
-e "s@CHARSET@utf8@" \
......@@ -13,7 +14,10 @@ CARTON=carton exec
locales:
$(XGETTEXT) -D templates -D ../default/templates -o $(EN) 2>/dev/null
$(XGETTEXT) -D templates -D ../default/templates -o $(FR) 2>/dev/null
$(XGETTEXT) -D templates -D ../default/templates -o $(OC) 2>/dev/null
sed $(SEDOPTS) -i $(EN)
sed $(SEDOPTS2) -i $(EN)
sed $(SEDOPTS) -i $(FR)
sed $(SEDOPTS2) -i $(FR)
sed $(SEDOPTS) -i $(OC)
sed $(SEDOPTS2) -i $(OC)
# Lstu language file.
# Copyright (C) 2013 Luc Didry
# This file is distributed under the same license as the Lstu package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Lstu\n"
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Luc Didry <luc@didry.org>\n"
"Language-Team: English (http://www.transifex.com/projects/p/lstu/language/en/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: en\n"
# Lstu language file.
# Copyright (C) 2013 Luc Didry
# This file is distributed under the same license as the Lstu package.
# Luc Didry <luc@didry.org>, 2015
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Lstu\n"
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Luc <luc@fiat-tux.fr>\n"
"Language-Team: French (http://www.transifex.com/projects/p/lstu/language/fr/)"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf8\n"
"Content-Transfer-Encoding: 8bit\n"
# Lstu language file.
# Copyright (C) 2013 Luc Didry
# This file is distributed under the same license as the Lstu package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf8\n"
"Content-Transfer-Encoding: 8bit\n"
themes/default/templates/api.html.ep
themes/default/templates/index.html.ep
themes/default/templates/stats.html.ep
themes/default/templates/layouts/default.html.ep
lib/Lstu.pm
lib/Lstu/Controller/Admin.pm
lib/Lstu/Controller/Lstu.pm
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment