Commit baa78545 authored by Romain de Laage's avatar Romain de Laage
Browse files

Ajout thème picadrop

parent a9eca3b1
......@@ -16,4 +16,4 @@ RUN carton install --deployment --without=test --without=sqlite --without=mysql
CMD ["carton", "exec", "hypnotoad", "-f", "/lufi/script/lufi"]
COPY default.html.ep /lufi/themes/default/templates/layouts/default.html.ep
COPY picadrop /lufi/themes/picadrop
......@@ -38,7 +38,7 @@
# Choose a theme. See the available themes in `themes` directory
# Optional, default is 'default'
theme => 'default',
theme => 'picadrop',
# Length of the random URL
# optional, default is 8
......
EN=lib/Lufi/I18N/en.po
FR=lib/Lufi/I18N/fr.po
IT=lib/Lufi/I18N/it.po
OC=lib/Lufi/I18N/oc.po
SEDOPTS=-e "s@SOME DESCRIPTIVE TITLE@Lufi language file@" \
-e "s@YEAR THE PACKAGE'S COPYRIGHT HOLDER@2015 Luc Didry@" \
-e "s@CHARSET@utf8@" \
-e "s@the PACKAGE package@the Lufi package@" \
-e '/^\#\. (/{N;/\n\#\. (/{N;/\n.*\.\.\/default\//{s/\#\..*\n.*\#\./\#. (/g}}}' \
-e '/^\#\. (/{N;/\n.*\.\.\/default\//{s/\n/ /}}'
SEDOPTS2=-e '/^\#.*\.\.\/default\//,+3d'
XGETTEXT=carton exec ../../local/bin/xgettext.pl
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 $(IT) 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 $(IT)
sed $(SEDOPTS2) -i $(IT)
sed $(SEDOPTS) -i $(OC)
sed $(SEDOPTS2) -i $(OC)
# vim:set sw=4 ts=4 sts=4 ft=perl expandtab:
package Lufi::I18N;
use base 'Locale::Maketext';
use File::Basename qw/dirname/;
use Locale::Maketext::Lexicon {
_auto => 1,
_decode => 1,
_style => 'gettext',
'*' => [
Gettext => dirname(__FILE__) . '/I18N/*.po',
Gettext => dirname(__FILE__) . '/../../../default/lib/Lufi/I18N/*.po',
]
};
1;
Supports Markdown
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